From 71f94855a14c75db498f36536734f609d96412c8 Mon Sep 17 00:00:00 2001 From: sunhonglai Date: Wed, 2 Apr 2025 20:08:25 +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 | 84 ++++++++++---------- src/views/nottask/AssessmentBegin.vue | 2 +- src/views/nottask/AssessmentEnd.vue | 2 +- src/views/nottask/NotPublish.vue | 2 +- src/views/sign/signTimeNotPublish.vue | 2 +- src/views/sign/signTimeProjectEnd.vue | 13 +++ src/views/sign/signTimeProjectNotStarted.vue | 13 +++ 7 files changed, 74 insertions(+), 44 deletions(-) create mode 100644 src/views/sign/signTimeProjectEnd.vue create mode 100644 src/views/sign/signTimeProjectNotStarted.vue diff --git a/src/views/investigat/InvestigatPage.vue b/src/views/investigat/InvestigatPage.vue index 87cfa10..7f4005e 100644 --- a/src/views/investigat/InvestigatPage.vue +++ b/src/views/investigat/InvestigatPage.vue @@ -316,21 +316,6 @@ 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: ''} @@ -342,34 +327,53 @@ const { data } = useRequest( } } - 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", - }); + useRequest( + checkStudentExist, + { + targetId: infoId, + type: type, + chapterId: chapterOrStageId, + courseId: taskId, + }, + (res) => { + console.log("判断任务是否删除", res); + if(res.code === 13){ + router.push({ + path: "/NotPublish", + query: { + msg: res.message, } + }); + }else if(res.code === 14){ + router.push({ + path: "/AssessmentBegin", + query: { + msg: res.message, + } + }); + }else if(res.code === 15){ + router.push({ + path: "/AssessmentEnd", + query: { + msg: res.message, + } + }); + }else if (res.code === 7) { + router.push({ + path: "/loseefficacy", + query: { + msg: res.message, + } + }); + } else { + if (res.code === 6) { + router.push({ + path: "/notpath", + }); } } - ); - } + } + ); } ); diff --git a/src/views/nottask/AssessmentBegin.vue b/src/views/nottask/AssessmentBegin.vue index 2207a47..22ef1a3 100644 --- a/src/views/nottask/AssessmentBegin.vue +++ b/src/views/nottask/AssessmentBegin.vue @@ -7,7 +7,7 @@ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE -->