From 2bcf780b7b1c6a1cd0012476860c482b351357aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com> Date: Fri, 18 Oct 2024 10:16:25 +0800 Subject: [PATCH 1/2] 1 --- .../src/views/classTask/classTask.vue | 2 +- .../src/views/classTask/classTaskAssign.vue | 2 +- .../container/newTask/taskTypeView.vue | 21 +------------------ 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/src/renderer/src/views/classTask/classTask.vue b/src/renderer/src/views/classTask/classTask.vue index 46e22c0..d738094 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, // }) diff --git a/src/renderer/src/views/classTask/classTaskAssign.vue b/src/renderer/src/views/classTask/classTaskAssign.vue index 4baf8a3..6d198fa 100644 --- a/src/renderer/src/views/classTask/classTaskAssign.vue +++ b/src/renderer/src/views/classTask/classTaskAssign.vue @@ -147,7 +147,7 @@ - +
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 }) From 1a671d7dd2ddca6bb7d7236fa9c45ebb98d1c362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com> Date: Sat, 19 Oct 2024 15:04:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=89=B9=E6=94=B9?= =?UTF-8?q?=EF=BC=9Asession=E7=BC=93=E5=AD=98=E5=87=BA=E7=8E=B0=E8=8E=AB?= =?UTF-8?q?=E5=90=8D=E7=BC=93=E5=AD=98=E6=95=B0=E6=8D=AEbug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/classTask/classTask.vue | 3 ++- src/renderer/src/views/classTask/classTaskAssign.vue | 3 ++- src/renderer/src/views/classTask/teachClassTask.vue | 5 +++-- src/renderer/src/views/desktop/container/work-trend.vue | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/views/classTask/classTask.vue b/src/renderer/src/views/classTask/classTask.vue index d738094..055fa37 100644 --- a/src/renderer/src/views/classTask/classTask.vue +++ b/src/renderer/src/views/classTask/classTask.vue @@ -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 6d198fa..eb27a23 100644 --- a/src/renderer/src/views/classTask/classTaskAssign.vue +++ b/src/renderer/src/views/classTask/classTaskAssign.vue @@ -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/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(); }