From ed564e4885adc4f893040dd0d23cf675f573a04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Mon, 24 Aug 2026 15:01:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(calls):=20=E8=AF=AD=E9=9F=B3=E9=80=9A?= =?UTF-8?q?=E8=AF=9D=E5=88=97=E5=B8=83=E5=B1=80=E5=AF=B9=E9=BD=90=E4=BA=91?= =?UTF-8?q?=E5=AE=A2(=E5=A4=B4=E5=83=8F/=E6=A0=87=E7=AD=BE=E5=BC=8F/?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4/=E6=97=B6=E9=95=BF?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F)+=E4=BF=AESFC=E6=9E=84=E5=BB=BA3=E5=A4=84?= =?UTF-8?q?=E9=98=BB=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 客户信息/员工微信加头像+脱敏微信号+备注名 - 通话信息改多行标签式,员工信息改纯文本,通话时长显示endTime+MM'SS" - 修SFC构建:模板字面量混合引号→字符串拼接;空三元表达式补全;onMounted误删 Co-Authored-By: Claude --- yunkes/src/views/CallList.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/yunkes/src/views/CallList.vue b/yunkes/src/views/CallList.vue index 665c80c..eca1779 100644 --- a/yunkes/src/views/CallList.vue +++ b/yunkes/src/views/CallList.vue @@ -2,7 +2,6 @@ import { computed, onMounted, ref, watch } from 'vue' import { useRoute, useRouter } from 'vue-router' import { ElMessage } from 'element-plus' -import { Download } from '@element-plus/icons-vue' import { getCallStats, getCalls } from '@/api' import type { CallChannel, CallStats, PhoneCall } from '@/api/types' import { @@ -265,7 +264,7 @@ function callDurationText(row: PhoneCall): string { if (!sec) return '--' const m = Math.floor(sec / 60) const s = sec % 60 - return `${String(m).padStart(2, '0')}'${String(s).padStart(2, '0')}"' + return String(m).padStart(2, '0') + "'" + String(s).padStart(2, '0') + '\"' } function chatChannel(ch: CallChannel): 'wechat' | 'whatsapp' | null { @@ -314,6 +313,12 @@ function viewCallStaff(row: PhoneCall): void { }) } +const callDrawerTitle = computed(() => + drawerCall.value ? '通话详情 - ' + (drawerCall.value.user_id_name || drawerCall.value.user_id || drawerCall.value.call_id) : '通话详情', +) +const staffDrawerTitle = computed(() => + staffDrawerCall.value ? '员工详情 - ' + (staffDrawerCall.value.user_id_name || staffDrawerCall.value.user_id || '') : '员工详情', +) const drawerSections = computed(() => drawerCall.value ? buildCallSections(drawerCall.value) : [], ) @@ -608,7 +613,7 @@ onMounted(() => { @@ -656,7 +661,7 @@ onMounted(() => {