mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 11:26:49 +08:00
fix:修改项目详情下案例外联已完成状态
This commit is contained in:
@@ -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") &&
|
||||||
|
|||||||
Reference in New Issue
Block a user