fix:修改项目详情下案例外联已完成状态

This commit is contained in:
wyx
2022-12-30 14:31:40 +08:00
parent 1605258d06
commit 65f19cb014

View File

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