From 7322056dad51bb1499f38af864410544c8744f7d 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, 20 Dec 2024 16:01:46 +0800 Subject: [PATCH] 1 --- .../classTask/newClassTaskAssign/index.vue | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/index.vue index 7af5ff9..8a07913 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/index.vue @@ -200,7 +200,7 @@ const fileLoading = ref(false); // 常规作业loading onMounted(() => { console.log("----onMounted-------") - currentRow.value = {id:0}; + currentRow.value.id = 0 if(propsQueryCourseObj){ if(JSON.parse(propsQueryCourseObj)){ courseObj.textbookId = JSON.parse(propsQueryCourseObj).bookObj // 版本 @@ -235,7 +235,7 @@ const isInToMyQuestion = () => { if(useClassTaskStores.isOpenQuestUploadView){ useClassTaskStores.isOpenQuestUploadView = false; - currentRow.value = {id:1}; // 作业设计 + currentRow.value.id = 1; // 作业设计 activeAptTab.value = "个人题库"; //提交内容清空 重置 classWorkForm.id = 0; @@ -282,7 +282,7 @@ const handleItemClick = (itemName) => { return; } - currentRow.value = {id:1}; // 作业设计 + currentRow.value.id = 1; // 作业设计 /** * 智能推荐?AI设计作业? * 习题训练: 自主搜题 校本题库 个人题库 @@ -325,7 +325,7 @@ const initHomeWork = async()=> { const handleNewAllClass = () => { taskTable.value.setCurrentRow({});// 清除表格选中项背景色 - currentRow.value = {id:0}; // 作业设计 + currentRow.value.id = 0; // 作业设计 //-------- classWorkForm.id = 0; classWorkForm.uniquekey = ""; // 作业唯一标识 作业名称 @@ -352,7 +352,7 @@ const handleDelete =() => { return delClasswork(ids.join(',')); }).then(() => { taskTable.value.setCurrentRow({});// 清除表格选中项背景色 - currentRow.value = {id:0}; // 作业设计 + currentRow.value.id = 0; // 作业设计 taskList.value = []; // initHomeWork(); setTimeout(() => { @@ -670,9 +670,9 @@ const handleClassWorkFormQuizRemove = (index) =>{ console.log('该清空左侧列表数据了'); // 清空左侧 选中的布置列表 并刷新列表 if(isShow.value){ - currentRow.value = {id:1}; + currentRow.value.id = 1; }else{ - currentRow.value = {id:0}; + currentRow.value.id = 0; } initHomeWork(); @@ -814,7 +814,11 @@ const editWork = async (cform) =>{ if (res.code == 200) { ElMessage.success('更新成功'); // 清空左侧 选中的布置列表 并刷新列表 - currentRow.value = {id:0}; + if(isShow.value){ + currentRow.value.id = 1; + }else{ + currentRow.value.id = 0; + } initHomeWork(); // // 返回上一页 // router.back() -- 2.44.0.windows.1