From be269e482736ccd86aaba0de888c051109b63cc9 Mon Sep 17 00:00:00 2001 From: bai <1643359946@qq.com> Date: Mon, 4 Sep 2023 22:59:11 +0800 Subject: [PATCH] =?UTF-8?q?2023=E5=B9=B49=E6=9C=884=E6=97=A5=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=B0=83=E7=94=A8=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=86=85=E5=AE=B9=EF=BC=8C=E5=AE=9A=E6=97=B6=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=9C=AA=E4=B8=8A=E7=BA=BF=E7=9B=B4=E6=92=AD=E9=97=B4=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E7=82=B9=E5=87=BB=E6=8C=89=E9=92=AE=E6=8B=89?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kc/jiaoshi/index.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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}) })