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(() => {