diff --git a/src/views/kc/jiaoshi/index.vue b/src/views/kc/jiaoshi/index.vue index d047dcd..dd9db14 100644 --- a/src/views/kc/jiaoshi/index.vue +++ b/src/views/kc/jiaoshi/index.vue @@ -125,7 +125,7 @@ const currentItem:Ref = ref({}); const showAllLiveKey:Ref = ref('showAllLiveKey'); const isShowAllLive:Ref = ref(false); const loading:Ref = ref(false); -const { createMessage } = useMessage(); +const { createMessage, createInfoModal } = useMessage(); const queryParam:Ref = ref({}); onMounted(() => { @@ -258,6 +258,7 @@ function ylLive(record){ } function changeLive(record, isEnable){ + console.log('createInfoModal ->',createInfoModal); loading.value = true; let ids:any = []; let changeLiveEnd:any = []; @@ -290,10 +291,22 @@ function changeLive(record, isEnable){ // loading.value = false; // }); 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.resText + "
" + }); + createInfoModal({ width:'50%', title: '结果',content }) }).catch(e => { console.error(e); loading.value = false; + createInfoModal({title: '错误结果',content:e}) })