From 6aa954ed1070c5413b6d3e99de6f2375e9f80c71 Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Fri, 29 Nov 2024 00:03:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(verbal-trick):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E8=AF=9D=E6=9C=AF=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 1 - components.d.ts | 4 + src/api/verbal-trick/index.js | 7 + src/components/liveCall/LiveCallItemHome.vue | 146 ++++++-- src/components/liveCall/index.vue | 10 +- src/views/enhance-speech/index.vue | 369 +++++++++++++++++++ 6 files changed, 507 insertions(+), 30 deletions(-) create mode 100644 src/views/enhance-speech/index.vue diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 2a75f2e..fd24bdc 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -6,7 +6,6 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] const ElMessage: typeof import('element-plus/es')['ElMessage'] - const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const computed: typeof import('vue')['computed'] const createApp: typeof import('vue')['createApp'] const customRef: typeof import('vue')['customRef'] diff --git a/components.d.ts b/components.d.ts index 9fafc1a..8af693e 100644 --- a/components.d.ts +++ b/components.d.ts @@ -17,7 +17,9 @@ declare module '@vue/runtime-core' { ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElCol: typeof import('element-plus/es')['ElCol'] + ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElContainer: typeof import('element-plus/es')['ElContainer'] + ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] ElEmpty: typeof import('element-plus/es')['ElEmpty'] @@ -44,9 +46,11 @@ declare module '@vue/runtime-core' { ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTag: typeof import('element-plus/es')['ElTag'] + ElText: typeof import('element-plus/es')['ElText'] ElTimeline: typeof import('element-plus/es')['ElTimeline'] ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] + ElTree: typeof import('element-plus/es')['ElTree'] ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] FvCheckbox: typeof import('./src/fvcomponents/fvCheckbox/index.vue')['default'] FvForm: typeof import('./src/fvcomponents/fvForm/index.vue')['default'] diff --git a/src/api/verbal-trick/index.js b/src/api/verbal-trick/index.js index f05b0fe..0fb1148 100644 --- a/src/api/verbal-trick/index.js +++ b/src/api/verbal-trick/index.js @@ -7,6 +7,13 @@ export const addVerbal = (data) => { data }) } +export const addEnhanceVerbal = (data) => { + return request({ + url: '/verbal/add/enhance', + method: 'post', + data + }) +} export const getVerbalDetail = (verbalId) => { return request({ url: `/verbal/${verbalId}`, diff --git a/src/components/liveCall/LiveCallItemHome.vue b/src/components/liveCall/LiveCallItemHome.vue index d6799cf..9b3b3f8 100644 --- a/src/components/liveCall/LiveCallItemHome.vue +++ b/src/components/liveCall/LiveCallItemHome.vue @@ -3,50 +3,66 @@
{{ recordObj.name }} - 电话号码:{{ recordObj.phone ||'--'}} + 电话号码:{{ recordObj.phone || '--' }} +
+
工单名称:{{ recordObj.orderName || '--' }}
+
+ {{ recordObj.type == '1' ? '线路一' : recordObj.type == '2' ? '线路二' : '' }} +
+
+ {{ lineName }}
-
工单名称:{{ recordObj.orderName||'--' }}
-
{{ recordObj.type=='1'?'线路一':recordObj.type=='2'?'线路二':'' }}
-
{{ lineName }}
- +
- {{item.lineMsg}} + {{ item.lineMsg }}
{{ item.conversationTimestamp || '6月5日 12:05' }}
-

{{ item.speaker==0?recordObj.name:'运维助手' }}

-
{{ item.message }}
+

{{ item.speaker == 0 ? recordObj.name : '运维助手' }}

+ +
{{ item.message }}
+
- {{ item.speaker==0?recordObj.name:'运维助手' }} + {{ item.speaker == 0 ? recordObj.name : '运维助手' }}
- {{ item.speaker==0?recordObj.name:'运维助手' }} + {{ item.speaker == 0 ? recordObj.name : '运维助手' }}
-

{{ item.speaker==0?recordObj.name:'运维助手' }}

+

{{ item.speaker == 0 ? recordObj.name : '运维助手' }}

{{ item.message }}
- +
+ +