Merge pull request 'baigl' (#291) from baigl into main
Reviewed-on: #291
This commit is contained in:
commit
bac959c0bb
|
@ -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;
|
||||||
// 1、本地缓存item数据,2、打开子窗口 3、子窗口加载item数据
|
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; // 设置打开批改窗口
|
||||||
|
sessionStore.set('teachClassWorkItem', item); // 缓存点击的item
|
||||||
|
// 调用新窗口批改页面
|
||||||
createWindow('open-taskwin',{url:'/teachClassTask'})
|
createWindow('open-taskwin',{url:'/teachClassTask'})
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
openDialogTime.value = setTimeout(() => {
|
||||||
|
openDialogTime.value = null;
|
||||||
|
toolState.isTaskWin=true; // 设置打开批改窗口
|
||||||
|
sessionStore.set('teachClassWorkItem', item); // 缓存点击的item
|
||||||
// 调用新窗口批改页面
|
// 调用新窗口批改页面
|
||||||
sessionStore.set('teachClassWorkItem', item)
|
|
||||||
toolState.isTaskWin=true //设置打开批改窗口
|
|
||||||
createWindow('open-taskwin',{url:'/teachClassTask'})
|
createWindow('open-taskwin',{url:'/teachClassTask'})
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
const tagType = (time) => {
|
const tagType = (time) => {
|
||||||
|
|
Loading…
Reference in New Issue