From ae579d637f9c8626c9d4b8aa1f243d1b5eec087b Mon Sep 17 00:00:00 2001 From: lbw_9527443 <780139497@qq.com> Date: Wed, 20 Aug 2025 15:20:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0API=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=B9=B6=E4=BC=98=E5=8C=96SOP=E5=88=86?= =?UTF-8?q?=E6=9E=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将API基础路径从192.168.15.54更新为192.168.15.60 - 优化CustomerDetail组件中的SOP分析按钮状态控制 - 在SalesTimelineWithTaskList组件中添加直播发言展示功能 - 重构RawDataCards组件的查看原文逻辑,触发SOP分析并显示通话记录 --- my-vue-app/src/utils/https.js | 2 +- .../person/components/CustomerDetail.vue | 18 ++----- .../views/person/components/RawDataCards.vue | 50 ++++++------------- .../components/SalesTimelineWithTaskList.vue | 33 ++++++++++++ 4 files changed, 53 insertions(+), 50 deletions(-) diff --git a/my-vue-app/src/utils/https.js b/my-vue-app/src/utils/https.js index 0e58a60..af2011b 100644 --- a/my-vue-app/src/utils/https.js +++ b/my-vue-app/src/utils/https.js @@ -5,7 +5,7 @@ import { useUserStore } from '@/stores/user' // 创建axios实例 const service = axios.create({ - baseURL: 'http://192.168.15.54:8890' || '', // API基础路径,支持完整URL + baseURL: 'http://192.168.15.60:8890' || '', // API基础路径,支持完整URL timeout: 100000, // 请求超时时间 headers: { 'Content-Type': 'application/json;charset=UTF-8' diff --git a/my-vue-app/src/views/person/components/CustomerDetail.vue b/my-vue-app/src/views/person/components/CustomerDetail.vue index 13c63b8..15bbc7d 100644 --- a/my-vue-app/src/views/person/components/CustomerDetail.vue +++ b/my-vue-app/src/views/person/components/CustomerDetail.vue @@ -15,7 +15,7 @@ @@ -280,23 +280,15 @@ ${callInfoText} }; // SOP通话分析 -const startSopAnalysis = async () => { +const startSopAnalysis = async (recordContext) => { if (!props.selectedContact) return; isSopAnalysisLoading.value = true; sopAnalysisResult.value = ''; - const query = `请对客户 ${props.selectedContact.name} 进行SOP通话分析: - -基于标准销售流程(SOP),分析以下方面: -1. 通话质量评估 -2. 销售流程执行情况 -3. 客户响应度分析 -4. 沟通效果评价 -5. 改进建议 - -客户当前状态:${props.selectedContact.salesStage || '未知'} -健康度:${props.selectedContact.health || '未知'}%`; + const query = callData.value + + console.log(888888, recordContext); try { await chatService.sendMessage( diff --git a/my-vue-app/src/views/person/components/RawDataCards.vue b/my-vue-app/src/views/person/components/RawDataCards.vue index 03a31b1..8a841b5 100644 --- a/my-vue-app/src/views/person/components/RawDataCards.vue +++ b/my-vue-app/src/views/person/components/RawDataCards.vue @@ -116,6 +116,7 @@ diff --git a/my-vue-app/src/views/person/components/SalesTimelineWithTaskList.vue b/my-vue-app/src/views/person/components/SalesTimelineWithTaskList.vue index 26f0704..edf5cea 100644 --- a/my-vue-app/src/views/person/components/SalesTimelineWithTaskList.vue +++ b/my-vue-app/src/views/person/components/SalesTimelineWithTaskList.vue @@ -106,6 +106,10 @@