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;