From 8b8a6a8bd54349f18cf9ffbd1702f80938f9448b Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Mon, 16 Sep 2024 21:18:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat=20:=20=E8=AF=9D=E5=8A=A1=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/phone-traffic-config/index.js | 36 ++ .../phone-traffic-config/index.vue | 339 ++++++++++++++---- 2 files changed, 312 insertions(+), 63 deletions(-) create mode 100644 src/api/phone-traffic-config/index.js diff --git a/src/api/phone-traffic-config/index.js b/src/api/phone-traffic-config/index.js new file mode 100644 index 0000000..9c53096 --- /dev/null +++ b/src/api/phone-traffic-config/index.js @@ -0,0 +1,36 @@ +import request from '@/utils/request.js' + +// 获取参数配置表详情 +export const getConfigDetails = (configId,extraConfigType) => { + return request({ + url: `/extra/config/${configId}/${extraConfigType}`, + method: 'get' + }) +} + +// 新增参数配置表 +export const addConfig = (data) => { + return request({ + url: '/extra/config', + method: 'post', + data + }) +} + +// 修改参数配置表 +export const editConfig = (data) => { + return request({ + url: '/extra/config', + method: 'put', + data + }) +} + +// 删除参数配置表 +export const delConfig =(configIdList,extraConfigType) => { + return request({ + url: `/extra/config/${configIdList}/${extraConfigType}`, + method: 'delete' + }) +} + diff --git a/src/views/phone-traffic-management/phone-traffic-config/index.vue b/src/views/phone-traffic-management/phone-traffic-config/index.vue index 0180f05..a3aad88 100644 --- a/src/views/phone-traffic-management/phone-traffic-config/index.vue +++ b/src/views/phone-traffic-management/phone-traffic-config/index.vue @@ -1,72 +1,142 @@ From 8811172d1ee27cb191c9a6cedfc99d6ae37cbab4 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Mon, 16 Sep 2024 21:25:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E8=AF=9D?= =?UTF-8?q?=E5=8A=A1=E9=85=8D=E7=BD=AE=E7=AE=A1=E7=90=86=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/liveCall/index.vue | 6 +++--- .../phone-traffic-management/phone-traffic-config/index.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/liveCall/index.vue b/src/components/liveCall/index.vue index 9c49219..f2fd824 100644 --- a/src/components/liveCall/index.vue +++ b/src/components/liveCall/index.vue @@ -122,13 +122,13 @@ const initWebSocket = () => { console.log("服务器返回的信息: ", data); if(data.type=='1'){ recordLeftObj.value.content.push(data.content) - console.info("🚀 ~method:onmessage -----", recordLeftObj.value) + // console.info("🚀 ~method:onmessage -----", recordLeftObj.value) nextTick(() => { scrollToBottom(recordLeftRef.value) }) }else { recordRightObj.value.content.push(data.content) - console.info("🚀 ~method:onmessage -----", recordRightObj.value) + // console.info("🚀 ~method:onmessage -----", recordRightObj.value) nextTick(() => { scrollToBottom(recordRightRef.value); }) @@ -138,7 +138,7 @@ const initWebSocket = () => { } //连接关闭的回调方法 socket.onclose = function () { - initWebSocket() + // initWebSocket() console.log("ws连接关闭"); } setInterval(() => { diff --git a/src/views/phone-traffic-management/phone-traffic-config/index.vue b/src/views/phone-traffic-management/phone-traffic-config/index.vue index a3aad88..64ea87f 100644 --- a/src/views/phone-traffic-management/phone-traffic-config/index.vue +++ b/src/views/phone-traffic-management/phone-traffic-config/index.vue @@ -222,7 +222,7 @@ const phoneTrafficTableConfig = reactive({ ] }) const searchPhoneTraffic = (val) => { - let obj = {...val} + let obj = {...val,extraConfigType:extraConfigType.value} if (obj.dateValue) { obj.startTime = obj.dateValue[0] obj.endTime = obj.dateValue[1]