diff --git a/src/renderer/src/views/classTask/classTask.vue b/src/renderer/src/views/classTask/classTask.vue
index 46e22c0..055fa37 100644
--- a/src/renderer/src/views/classTask/classTask.vue
+++ b/src/renderer/src/views/classTask/classTask.vue
@@ -237,7 +237,7 @@ const getStudentClassWorkData = async() => {
// deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// 进行中:明天,已结束:选择的日期
// deaddate: EndDate.value,// 进行中:明天,已结束:选择的日期
// //status: '1', // 作业状态:1-已发布
- // orderby: "deaddate DESC",// TODO: 这里是否加 deaddate 的排序,后续看
+ // orderby: "deaddate DESC",//
// pageSize: 1000,
// })
@@ -401,7 +401,8 @@ const onClickItem = (item) => {
clearInterval(pollingST.value)
console.log('防抖开启弹窗')
- sessionStore.set('teachClassWorkItem', item); // 缓存点击的item
+ // sessionStore.set('teachClassWorkItem', item); // 缓存点击的item
+ localStorage.setItem('teachClassWorkItem', JSON.stringify(item));
debounceOpenWin();
}
diff --git a/src/renderer/src/views/classTask/classTaskAssign.vue b/src/renderer/src/views/classTask/classTaskAssign.vue
index 4baf8a3..eb27a23 100644
--- a/src/renderer/src/views/classTask/classTaskAssign.vue
+++ b/src/renderer/src/views/classTask/classTaskAssign.vue
@@ -147,7 +147,7 @@
-
+
@@ -476,7 +476,8 @@ const debounceOpenWin = debounce(() => {
// 批改作业
const onClickItem = (item) => {
console.log('防抖开启弹窗')
- sessionStore.set('teachClassWorkItem', item); // 缓存点击的item
+ // sessionStore.set('teachClassWorkItem', item); // 缓存点击的item
+ localStorage.setItem('teachClassWorkItem', JSON.stringify(item));
debounceOpenWin();
}
diff --git a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue
index 8a3efe0..ff1265e 100644
--- a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue
+++ b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue
@@ -652,16 +652,7 @@ const handleClassWorkSave = async () => {
// 情况选择的资源缓存
classWorkForm.chooseWorkLists = []; // 框架梳理list
classWorkForm.whiteboardObj = ''; // ? // 清空白板
- // refresh the list
- //这里分离了,所以不需要更新表单数据了
- // this.getClassWorkAllList();
-
- // TODO 后续看是否跳转到 作业布置页面
-
- //TODO 下面3个后续看是啥
- // this.newWorkSpace = false;
- // this.newWorkSpaceEdit = false;
- // this.workEdit = false;
+
boardLoading.value = false
})
} finally {
@@ -685,16 +676,6 @@ const handleClassWorkSave = async () => {
classWorkForm.chooseWorkLists = []; // 框架梳理list
classWorkForm.whiteboardObj = ''; // ? // 清空白板
classWorkForm.fileHomeworkList = []; // 常规作业list
- // refresh the list
- //这里分离了,所以不需要更新表单数据了
- // this.getClassWorkAllList();
-
- // TODO 后续看是否跳转到 作业布置页面
-
- //TODO 下面3个后续看是啥
- // this.newWorkSpace = false;
- // this.newWorkSpaceEdit = false;
- // this.workEdit = false;
fileLoading.value = false
})
diff --git a/src/renderer/src/views/classTask/teachClassTask.vue b/src/renderer/src/views/classTask/teachClassTask.vue
index 9ad1ad0..e87e553 100644
--- a/src/renderer/src/views/classTask/teachClassTask.vue
+++ b/src/renderer/src/views/classTask/teachClassTask.vue
@@ -634,8 +634,9 @@ const closeDialog = () => {
onMounted(() => {
- // const data = JSON.parse(localStorage.getItem('teachClassWorkItem'));
- const data = sessionStore.get('teachClassWorkItem');
+ const data = JSON.parse(localStorage.getItem('teachClassWorkItem'));
+ // const data = sessionStore.get('teachClassWorkItem');
+ // const data = localStorage.getItem('teachClassWorkItem');
console.log(data,'????????????????????' )
if(data){
openDialog(data)
diff --git a/src/renderer/src/views/desktop/container/work-trend.vue b/src/renderer/src/views/desktop/container/work-trend.vue
index 79a9bcd..d723e5a 100644
--- a/src/renderer/src/views/desktop/container/work-trend.vue
+++ b/src/renderer/src/views/desktop/container/work-trend.vue
@@ -96,7 +96,8 @@ const debounceOpenWin = debounce(() => {
// 批改作业
const onClickItem = (item) => {
console.log('防抖开启弹窗')
- sessionStore.set('teachClassWorkItem', item); // 缓存点击的item
+ // sessionStore.set('teachClassWorkItem', item); // 缓存点击的item
+ localStorage.setItem('teachClassWorkItem', JSON.stringify(item));
debounceOpenWin();
}