Compare commits

...

3 Commits

Author SHA1 Message Date
baigl bac959c0bb Merge pull request 'baigl' (#291) from baigl into main
Reviewed-on: #291
2024-09-29 09:32:36 +08:00
白了个白 e72710f027 Merge branch 'main' of http://27.128.240.72:3000/zhuhao/AIx_Smarttalk into baigl 2024-09-29 09:31:36 +08:00
白了个白 9a74630e56 批阅窗口添加防连点 2024-09-29 09:31:16 +08:00
2 changed files with 21 additions and 11 deletions

View File

@ -377,6 +377,7 @@ const closeDialog = () => {
getStudentClassWorkDataPolling() getStudentClassWorkDataPolling()
} }
const openDialogTime = ref(null);//
/** /**
* 开启新批改弹窗 * 开启新批改弹窗
* @param item 作业对象 * @param item 作业对象
@ -386,12 +387,15 @@ const onClickItem = (item) => {
clearInterval(pollingST.value) clearInterval(pollingST.value)
// itemDialogRef.value.openDialog(item) // itemDialogRef.value.openDialog(item)
// if(openDialogTime.value) return;
// 1item2 3item clearTimeout(openDialogTime.value)
// localStorage.setItem('teachClassWorkItem', JSON.stringify(item)) openDialogTime.value = setTimeout(() => {
sessionStore.set('teachClassWorkItem', item) openDialogTime.value = null;
toolState.isTaskWin=true // toolState.isTaskWin=true; //
createWindow('open-taskwin',{url:'/teachClassTask'}) sessionStore.set('teachClassWorkItem', item); // item
//
createWindow('open-taskwin',{url:'/teachClassTask'})
}, 1000)
} }

View File

@ -67,14 +67,20 @@ const getHomework = async () => {
loading.value = false loading.value = false
} }
} }
const openDialogTime = ref(null);//
// //
const onClickItem = (item) => { const onClickItem = (item) => {
console.log('开启弹窗') console.log('开启弹窗')
// itemDialogRef.value.openDialog(item) if(openDialogTime.value) return;
// clearTimeout(openDialogTime.value)
sessionStore.set('teachClassWorkItem', item) openDialogTime.value = setTimeout(() => {
toolState.isTaskWin=true // openDialogTime.value = null;
createWindow('open-taskwin',{url:'/teachClassTask'}) toolState.isTaskWin=true; //
sessionStore.set('teachClassWorkItem', item); // item
//
createWindow('open-taskwin',{url:'/teachClassTask'})
}, 1000)
} }
const tagType = (time) => { const tagType = (time) => {