mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-13 04:46:48 +08:00
fix -- 完成任务bug
This commit is contained in:
@@ -714,32 +714,16 @@ async function toFinish(d, sName, chapterOrStageId) {
|
|||||||
}
|
}
|
||||||
//更新学员当前任务
|
//更新学员当前任务
|
||||||
await request(UPDATE_CURRENT_TASK, {id: d.id, type: PROJECT, pid: projectId, name: d.name})
|
await request(UPDATE_CURRENT_TASK, {id: d.id, type: PROJECT, pid: projectId, name: d.name})
|
||||||
if (d.type == 3 || d.type == 7) {
|
if (d.type == 3 || d.type == 7 || (d.type === 5 && d.examType === 2)) {
|
||||||
d.status !== 1 && await request(STUDY_RECORD, {
|
d.status !== 1 && await request(STUDY_RECORD, {
|
||||||
studentId: userInfo.value.projectId,
|
studentId: userInfo.value.projectId,
|
||||||
targetId: data.value.routerId,
|
targetId: data.value.routerId,
|
||||||
logo: PROJECT,
|
logo: PROJECT,
|
||||||
|
type: PROJECT,
|
||||||
stageOrChapterId: chapterOrStageId,
|
stageOrChapterId: chapterOrStageId,
|
||||||
taskId: d.id,
|
taskId: d.id,
|
||||||
taskType: d.type,
|
taskType: d.type,
|
||||||
});
|
});
|
||||||
// 此处判断外链跳转详情界面
|
|
||||||
if (d.type == 7) {
|
|
||||||
router.push({
|
|
||||||
path: '/outerchain',
|
|
||||||
query: {
|
|
||||||
id: d.id,
|
|
||||||
type: PROJECT,
|
|
||||||
infoId: data.value.projectId,
|
|
||||||
courseId: d.courseId,
|
|
||||||
pName: data.value.name,
|
|
||||||
sName,
|
|
||||||
chapterOrStageId,
|
|
||||||
exname: d.name, // 外链名称
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof TASK_TYPES.path[d.type] === "string") {
|
if (typeof TASK_TYPES.path[d.type] === "string") {
|
||||||
|
|||||||
Reference in New Issue
Block a user