diff --git a/src/views/investigat/InvestigatPage.vue b/src/views/investigat/InvestigatPage.vue index 13b27ca..87cfa10 100644 --- a/src/views/investigat/InvestigatPage.vue +++ b/src/views/investigat/InvestigatPage.vue @@ -316,6 +316,21 @@ const { data } = useRequest( path: "/NotProject2", }); } + if (e.code === 13) { + router.push({ + path: "/NotPublish", + }); + } + if (e.code === 14) { + router.push({ + path: "/AssessmentBegin", + }); + } + if (e.code === 15) { + router.push({ + path: "/AssessmentEnd", + }); + } if(e.data && e.data.projectInfoList.length == 0){ e.data.projectInfoList=[ {teacherName: '', courseName: '', projectName: ''} @@ -326,32 +341,35 @@ const { data } = useRequest( e.data.falseS = true } } - useRequest( - checkStudentExist, - { - targetId: infoId, - type: type, - chapterId: chapterOrStageId, - courseId: taskId, - }, - (res) => { - console.log("判断任务是否删除", res); - if (res.code === 7) { - router.push({ - path: "/loseefficacy", - query: { - msg: res.message, + + if (e.code !== 13 && e.code !== 14 && e.code !== 15) { + useRequest( + checkStudentExist, + { + targetId: infoId, + type: type, + chapterId: chapterOrStageId, + courseId: taskId, + }, + (res) => { + console.log("判断任务是否删除", res); + if (res.code === 7) { + router.push({ + path: "/loseefficacy", + query: { + msg: res.message, + } + }); + } else { + if (res.code === 6) { + router.push({ + path: "/notpath", + }); + } } - }); - } else { - if (res.code === 6) { - router.push({ - path: "/notpath", - }); } - } - } - ); + ); + } } ); diff --git a/src/views/nottask/AssessmentBegin.vue b/src/views/nottask/AssessmentBegin.vue new file mode 100644 index 0000000..2207a47 --- /dev/null +++ b/src/views/nottask/AssessmentBegin.vue @@ -0,0 +1,21 @@ + + + diff --git a/src/views/nottask/AssessmentEnd.vue b/src/views/nottask/AssessmentEnd.vue new file mode 100644 index 0000000..6f2386a --- /dev/null +++ b/src/views/nottask/AssessmentEnd.vue @@ -0,0 +1,21 @@ + + + diff --git a/src/views/nottask/NotPublish.vue b/src/views/nottask/NotPublish.vue new file mode 100644 index 0000000..e3e3834 --- /dev/null +++ b/src/views/nottask/NotPublish.vue @@ -0,0 +1,21 @@ + + +