diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index 0e2988f..f1443fc 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -404,6 +404,7 @@ function judgeTaskIsEnd(type, endTimes, status) { function toFinish(d, sName, chapterOrStageId) { console.log("dddddd", d, sName, chapterOrStageId); + if(judgeTaskIsEnd(d.type ,data.value.endTime, data.value.status)){ ElMessage.error("当前任务已结束") return @@ -491,14 +492,17 @@ function toFinish(d, sName, chapterOrStageId) { return; } if (d.type == 3 || d.type == 7) { - d.status || request(STUDY_RECORD, { - studentId: data.value.userInfoBo.userId, - targetId: data.value.routerId, - logo: 2, - stageOrChapterId: chapterOrStageId, - taskId: d.projectTaskId, - }); + if(d.status!==1){ + request(STUDY_RECORD, { + studentId: data.value.userInfoBo.userId, + targetId: data.value.routerId, + logo: 2, + stageOrChapterId: chapterOrStageId, + taskId: d.projectTaskId, + }); + } } + if (typeof types.value.path[d.type] === "string") { types.value.path[d.type] && types.value.path[d.type].startsWith("http") &&