From b76f31c2c7c9a226e1a1cea9c91cf92aeb47d5a9 Mon Sep 17 00:00:00 2001 From: sunhonglai Date: Wed, 2 Apr 2025 14:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9D=A2=E6=8E=88=E8=AF=BE?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/investigat/InvestigatPage.vue | 66 ++++++++++++++++--------- src/views/nottask/AssessmentBegin.vue | 21 ++++++++ src/views/nottask/AssessmentEnd.vue | 21 ++++++++ src/views/nottask/NotPublish.vue | 21 ++++++++ 4 files changed, 105 insertions(+), 24 deletions(-) create mode 100644 src/views/nottask/AssessmentBegin.vue create mode 100644 src/views/nottask/AssessmentEnd.vue create mode 100644 src/views/nottask/NotPublish.vue 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 @@ + + +