From ef1f3e4fd5a69e7a5918bef92aaee491f5e7d33d Mon Sep 17 00:00:00 2001 From: bai <1643359946@qq.com> Date: Fri, 20 Oct 2023 22:16:10 +0800 Subject: [PATCH] =?UTF-8?q?2023=E5=B9=B410=E6=9C=8820=E6=97=A5=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=99=BA=E6=85=A7=E6=95=99=E5=AE=A4=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=B5=81=E7=A8=8B=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?log=E9=A1=B5=E5=AD=97=E6=AE=B5=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jiaoshi/KcZhihuijiaoshiOperateLog.data.ts | 24 +++++++++---------- src/views/kc/jiaoshi/index.vue | 18 ++++++++++---- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/src/views/kc/jiaoshi/KcZhihuijiaoshiOperateLog.data.ts b/src/views/kc/jiaoshi/KcZhihuijiaoshiOperateLog.data.ts index c94e6cb..4728f22 100644 --- a/src/views/kc/jiaoshi/KcZhihuijiaoshiOperateLog.data.ts +++ b/src/views/kc/jiaoshi/KcZhihuijiaoshiOperateLog.data.ts @@ -38,7 +38,7 @@ export const columns: BasicColumn[] = [ align:"center", dataIndex: 'operateType', customRender: ({ text }) => { - let map = ['','开启', '关闭'] + let map = ['关闭','开启'] return map[text] }, @@ -107,17 +107,17 @@ export const searchFormSchema: FormSchema[] = [ colProps: {span: 6}, componentProps: { options: [ + { + label: '关闭', + value: '0', + key: '0', + }, { label: '开启', value: '1', key: '1', }, - { - label: '关闭', - value: '2', - key: '2', - }, - ], + ], }, }, { @@ -183,16 +183,16 @@ export const formSchema: FormSchema[] = [ component: 'Select', componentProps: { options: [ + { + label: '关闭', + value: '0', + key: '0', + }, { label: '开启', value: '1', key: '1', }, - { - label: '关闭', - value: '2', - key: '2', - }, ], }, }, diff --git a/src/views/kc/jiaoshi/index.vue b/src/views/kc/jiaoshi/index.vue index 0420674..038fc56 100644 --- a/src/views/kc/jiaoshi/index.vue +++ b/src/views/kc/jiaoshi/index.vue @@ -316,15 +316,13 @@ function changeLive(record, isEnable){ }); changeAvyLiveApi({ ids:ids.join(','), type: isEnable?1:0 }).then(res => { - console.log(`🚀 -------------------------------------------------------🚀`); console.log(`🚀 ~ file: index.vue:295 ~ changeAvyLiveApi ~ res:`, res); console.log(`🚀 -------------------------------------------------------🚀`); - - loadData(); let content = ''; res.forEach(x => { - content += x.jsmc + "-" + x.xm + // content += x.jsmc + "-" + x.xm + content += x.jsmc let text = ''; if(x.resText){ if(x.resText.includes('ok')){ @@ -335,7 +333,17 @@ function changeLive(record, isEnable){ } content += " " + text + "
" }); - createInfoModal({ width:'50%', title: '结果',content }) + if(content.includes('直播-操作成功!')){ + //延迟12秒 + setTimeout(() => { + loadData(); + createInfoModal({ width:'50%', title: '结果',content }) + }, 12*1000); + }else{ + loadData(); + createInfoModal({ width:'50%', title: '结果',content }) + } + }).catch(e => { console.error(e); loading.value = false;