From d0b815927423681e04e19c014941b7fdd782c3c1 Mon Sep 17 00:00:00 2001 From: lbw_9527443 <780139497@qq.com> Date: Tue, 26 Aug 2025 22:10:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(QualityCalls):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B8=BAComposition=20API=E5=B9=B6=E7=AE=80?= =?UTF-8?q?=E5=8C=96UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(https): 将API基础路径从http改为https fix(topone): 修正优秀录音数据处理逻辑 fix(CenterOverview): 修改默认显示值为0 --- my-vue-app/src/utils/https.js | 2 +- .../secondTop/components/CenterOverview.vue | 4 +- .../views/topOne/components/QualityCalls.vue | 604 +++++++++--------- my-vue-app/src/views/topOne/topone.vue | 16 +- 4 files changed, 305 insertions(+), 321 deletions(-) diff --git a/my-vue-app/src/utils/https.js b/my-vue-app/src/utils/https.js index 00878ef..b793261 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://mldash.nycjy.cn/' || '', // API基础路径,支持完整URL + baseURL: 'https://mldash.nycjy.cn/' || '', // API基础路径,支持完整URL timeout: 100000, // 请求超时时间 headers: { 'Content-Type': 'application/json;charset=UTF-8' diff --git a/my-vue-app/src/views/secondTop/components/CenterOverview.vue b/my-vue-app/src/views/secondTop/components/CenterOverview.vue index 7f70c87..bd79905 100644 --- a/my-vue-app/src/views/secondTop/components/CenterOverview.vue +++ b/my-vue-app/src/views/secondTop/components/CenterOverview.vue @@ -67,8 +67,8 @@ {{ props.overallData.TotalCallCount?.total_call_count_vs_yesterday}} vs 上期 -
{{ props.overallData.TotalCallCount?.total_call_count || '1,247' }} 次
-
有效通话: {{ props.overallData.TotalCallCount?.center_effective_call_count || '892' }}次
+
{{ props.overallData.TotalCallCount?.total_call_count || '0' }} 次
+
有效通话: {{ props.overallData.TotalCallCount?.center_effective_call_count || '0' }}次
diff --git a/my-vue-app/src/views/topOne/components/QualityCalls.vue b/my-vue-app/src/views/topOne/components/QualityCalls.vue index e4dc780..b2817e4 100644 --- a/my-vue-app/src/views/topOne/components/QualityCalls.vue +++ b/my-vue-app/src/views/topOne/components/QualityCalls.vue @@ -4,14 +4,6 @@

优秀录音

-
@@ -29,7 +21,6 @@
{{ recording.name.length > 10 ? recording.name.substring(0, 10) + '...' : recording.name }}
- {{ formatFileSize(recording.size) }} {{ recording.uploadTime }}
@@ -67,9 +58,8 @@
-

{{ isConverting ? '正在转换...' : (currentViewType === 'transcript' ? '转换文本' : '录音分析') }}

@@ -90,7 +80,7 @@
-