From 7c8f01d95e172a92c2635e28811bdf3babf2a574 Mon Sep 17 00:00:00 2001 From: gengxin Date: Wed, 19 Mar 2025 18:42:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E7=BA=BF=E4=B8=8A=20BUG=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 94f62387..61260f04 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -3940,6 +3940,8 @@ function onFocusEnd(){ }] state.changeName = true state.xjkkinputV3 = [moment().format('YYYY-MM-DD HH:mm'),''] + + state.examInfo = {}; //清除缓存 state.cstm_hs = true; }; @@ -4028,7 +4030,7 @@ function onFocusEnd(){ // teacher: state.member.name, offteachers: state.offteachers, workInfo: state.workInfo, //提交的作业信息 - examInfo: !state.kk_eidt?{}:state.examInfo, //提交的考试信息 + examInfo: state.examInfo, //提交的考试信息 beforeStart: state.beforeValue, //考勤 开始前 afterStart: state.afterStartValue, //考勤 开始后 score: state.scoreParams, @@ -4118,18 +4120,13 @@ function onFocusEnd(){ if (item.homeWorkId) { queryWorkDetailById({ workId: item.homeWorkId }).then( - (res) => {state.workInfo = res.data.data} + (res) => (state.workInfo = res.data.data) ); } if (item.testId) { - console.log("queryExaminationDetailById res.data.data",item.testId); - queryExaminationDetailById({ examinationId: item.testId }).then( - (res) => { - console.log("queryExaminationDetailById res.data.data",res.data.data) - state.examInfo = res.data.data - console.log("queryExaminationDetailById state.examInfo",state.examInfo) - } + (res) => (state.examInfo = res.data.data) + ); } // if(item.evalFlag){