From f01efcc20e4a2856fbe0c453e9db655c3f520a16 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 20 Oct 2024 18:04:34 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E5=B1=8F=E8=94=BD=E8=AF=9D=E5=8A=A1?= =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E9=85=8D=E7=BD=AE=E7=9A=84=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=88=A0=E9=99=A4,=20=E4=BF=AE=E5=A4=8D=E6=89=80=E6=9C=89?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/phone-traffic-config/index.js | 8 ++--- src/views/home/index.vue | 17 ++++++---- .../address-book-management/index.vue | 16 +++++++--- .../phone-traffic-config/index.vue | 31 +++++++++++-------- .../task-management/all-work-order/index.vue | 13 ++++---- .../historical-work-order/index.vue | 12 ++++--- .../pending-work-order/index.vue | 10 +++--- .../sensitive-words/index.vue | 17 ++++++---- .../voice-management/verbal-trick/index.vue | 16 +++++++--- .../voice-management/voice-config/index.vue | 31 +++++++++++-------- 10 files changed, 104 insertions(+), 67 deletions(-) diff --git a/src/api/phone-traffic-config/index.js b/src/api/phone-traffic-config/index.js index 9c53096..9e9293b 100644 --- a/src/api/phone-traffic-config/index.js +++ b/src/api/phone-traffic-config/index.js @@ -1,9 +1,9 @@ import request from '@/utils/request.js' // 获取参数配置表详情 -export const getConfigDetails = (configId,extraConfigType) => { +export const getConfigDetails = (configId) => { return request({ - url: `/extra/config/${configId}/${extraConfigType}`, + url: `/extra/config/${configId}`, method: 'get' }) } @@ -27,9 +27,9 @@ export const editConfig = (data) => { } // 删除参数配置表 -export const delConfig =(configIdList,extraConfigType) => { +export const delConfig =(configIdList) => { return request({ - url: `/extra/config/${configIdList}/${extraConfigType}`, + url: `/extra/config/${configIdList}`, method: 'delete' }) } diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 730561b..b980a6c 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -23,7 +23,7 @@ const infoLiveCallRef = ref() const voiceRef = ref() const tableIns = ref() const auths = reactive({ - report: ['mosr:collect:reported'], + record: ['order:dialogue:list'], }) const tableConfig = reactive({ columns: [ @@ -97,21 +97,26 @@ const tableConfig = reactive({ currentRender: ({ row, index }) => { // console.log(row); let btn = [] - btn.push({ label: '播放语音', prem: auths.detail, func: () => handleVoice(row), type: 'primary' }) - btn.push({ label: '通话记录', prem: auths.detail, func: () => handleInfo(row), type: 'primary' }) + btn.push({ label: '播放语音', func: () => handleVoice(row), type: 'primary' }) + btn.push({ label: '通话记录', prem: auths.record, func: () => handleInfo(row), type: 'primary' }) return (