fix:案例、外链状态修改,以及外部考试参数传递及增加

This commit is contained in:
wyx
2023-02-26 15:58:22 +08:00
parent afd4b1ea5b
commit 9ec289fa12
2 changed files with 39 additions and 2 deletions

View File

@@ -507,6 +507,8 @@ async function toFinish(d, sName, chapterOrStageId) {
// 点击即更新状态 进行中
request(SubmitExternalExam, {
"type": 1,
"taskId": d.id,
"chapterId": chapterOrStageId,
"externalId": d.courseId,
"externalName": d.name,
@@ -665,9 +667,10 @@ async function toFinish(d, sName, chapterOrStageId) {
//更新学员当前任务
await request(UPDATE_CURRENT_TASK, { id: d.id, type: PROJECT, pid: projectId, name: d.name })
if (d.type == 3 || d.type == 7 || (d.type === 5 && d.examType === 2)) {
console.log(d, data.value)
d.status !== 1 && await request(STUDY_RECORD, {
studentId: userInfo.value.id,
targetId: data.value.routerId,
targetId: data.value.projectId,
logo: PROJECT,
type: PROJECT,
stageOrChapterId: chapterOrStageId,