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){