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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user