From 6277db3951e3a5c18c6283a423895bec4047f3c3 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 2 Jul 2026 19:23:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(C=E7=BB=84):=20C-T1~T13=20AI=E4=B8=8E?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=A8=A1=E5=9D=97=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - C-T1 Wingman 辅助面板 - C-T2 Wingman 后端接口 - C-T3 排查流程图编辑器 - C-T4 流程图后端接口 - C-T5 流程图H5端展示 - C-T6 运营数据看板 - C-T7 看板数据接口 - C-T8 全局一致性审查(周2) - C-T9 坐席绩效报表 - C-T10 绩效数据接口+Excel导出 - C-T11 会话智能标注 - C-T12 全局一致性审查(周3) - C-T13 代码评审+PR创建 --- frontend-agent/src/api/wingman.ts | 19 + .../components/assistant/AiAssistantPanel.vue | 855 +++++++++++++++++- .../src/api/troubleshooting-templates.ts | 120 +++ .../src/views/TroubleshootingDetailView.vue | 825 +++++++++++++++++ .../src/views/TroubleshootingListView.vue | 406 +++++++++ 5 files changed, 2207 insertions(+), 18 deletions(-) create mode 100644 frontend-h5/src/api/troubleshooting-templates.ts create mode 100644 frontend-h5/src/views/TroubleshootingDetailView.vue create mode 100644 frontend-h5/src/views/TroubleshootingListView.vue diff --git a/frontend-agent/src/api/wingman.ts b/frontend-agent/src/api/wingman.ts index f37f3aa..68fe206 100644 --- a/frontend-agent/src/api/wingman.ts +++ b/frontend-agent/src/api/wingman.ts @@ -89,3 +89,22 @@ export async function suggestTags(conversationId: string): Promise { ) return response.data.data } + +/** + * 保存会话标签 + * 将标签保存到会话记录中 + * + * @param conversationId - 会话ID + * @param tags - 标签字典 + * @returns 更新后的会话详情 + */ +export async function saveConversationTags( + conversationId: string, + tags: Record +): Promise { + const response: AxiosResponse = await apiClient.post( + `/conversations/${conversationId}/tags`, + { tags } + ) + return response.data.data +} diff --git a/frontend-agent/src/components/assistant/AiAssistantPanel.vue b/frontend-agent/src/components/assistant/AiAssistantPanel.vue index 74b47ff..f3fb6b0 100644 --- a/frontend-agent/src/components/assistant/AiAssistantPanel.vue +++ b/frontend-agent/src/components/assistant/AiAssistantPanel.vue @@ -1,14 +1,149 @@