From b71c948854188085d972e8fed9f01c07e1269733 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Wed, 25 Sep 2024 17:55:21 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BC=98=E5=8C=96=E9=80=9A=E8=AF=9D?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=A1=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/infoLiveCall/index.vue | 93 +++++---- src/components/liveCall/LiveCallItem.vue | 52 ++--- src/components/liveCall/LiveCallItemHome.vue | 201 +++++++++++++++++++ src/components/liveCall/index.vue | 8 +- src/views/home/index.vue | 22 +- 5 files changed, 288 insertions(+), 88 deletions(-) create mode 100644 src/components/liveCall/LiveCallItemHome.vue diff --git a/src/components/infoLiveCall/index.vue b/src/components/infoLiveCall/index.vue index 8574160..79af9cc 100644 --- a/src/components/infoLiveCall/index.vue +++ b/src/components/infoLiveCall/index.vue @@ -1,78 +1,87 @@ diff --git a/src/components/liveCall/LiveCallItem.vue b/src/components/liveCall/LiveCallItem.vue index 1084c5c..c27172b 100644 --- a/src/components/liveCall/LiveCallItem.vue +++ b/src/components/liveCall/LiveCallItem.vue @@ -3,30 +3,35 @@
{{ headData.username }} - {{ headData.phone }} + 电话号码:{{ headData.phone }}
工单名称:{{ headData.orderName }}
-
-
{{ item.conversationTimestamp || '6月5日 12:05' }}
- -
-
-

{{ item.speaker==0?headData.username:'AI助手' }}

-
{{ item.message }}
-
- -
- -
- -
-

{{ item.speaker==0?headData.username:'AI助手' }}

-
{{ item.message }}
+
+
+
{{ key || '6月5日 12:05' }}
+
+ +
+
+

{{ recordItem.speaker == 0 ? recordItem.callIdNumber : 'AI助手' }}

+
{{ recordItem.message }}
+
+ +
+ +
+ +
+

{{ recordItem.speaker == 0 ? recordItem.callIdNumber : 'AI助手' }}

+
{{ recordItem.message }}
+
+
+ 一轮通话结束~~
@@ -35,19 +40,20 @@ + + diff --git a/src/components/liveCall/index.vue b/src/components/liveCall/index.vue index 5b9ace5..39d2b09 100644 --- a/src/components/liveCall/index.vue +++ b/src/components/liveCall/index.vue @@ -1,8 +1,8 @@ @@ -108,8 +108,8 @@ const handleLogout = () => { const initWebSocket = () => { try { // const wsUrl=setWsUrl(`/ws/text/${token}`) - // const wsUrl = `ws://frp.feashow.cn:31800/ws/text/${token}` - const wsUrl = `ws://112.19.165.99:20002/api/ws/text/${token}` + const wsUrl = `ws://frp.feashow.cn:31800/ws/text/${token}` + // const wsUrl = `ws://112.19.165.99:20002/api/ws/text/${token}` socket = new WebSocket(wsUrl) // 2. ws.send()给服务器发送信息 //连接发生错误的回调方法 diff --git a/src/views/home/index.vue b/src/views/home/index.vue index edefe69..48a8c2f 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -5,7 +5,7 @@

历史通话记录

- +
@@ -20,19 +20,6 @@ const rowData = ref() const infoLiveCallRef=ref() const voiceRef=ref() const tableIns = ref() -const mockData = ref([ - { - workOrderNumber: 1211, - workOrderTime: '2022-02-09 00 : 12', - state: 0, - callState: '01' - }, - { - workOrderNumber: 232, - state: 1, - callState: '02' - } -]) const auths = reactive({ report: ['mosr:collect:reported'], }) @@ -77,7 +64,7 @@ const tableConfig = reactive({ }, { prop: 'workOrderNumber', - label: '号码', + label: '电话号码', align: 'center' }, { @@ -133,10 +120,7 @@ const tableConfig = reactive({ api: '/order/list', params: { orderState:'2' - }, - btns: [ - // {name: '新增', key: 'add',type:'primary',icon:'Plus'}, - ] + } }) const handleVoice = (row) => { voiceRef.value.open(true)