fix:无阶段任务参数传递

This commit is contained in:
wuyx
2022-12-23 21:29:15 +08:00
parent 2871128f4a
commit ccc5c237ef
2 changed files with 4 additions and 4 deletions

View File

@@ -469,8 +469,8 @@ function toFinish(d, sName, chapterOrStageId) {
query: {
id: d.projectTaskId,
type: 2,
taskId: projectId,
taskIds: projectId,
taskId: data.value.projectId,
taskIds: data.value.projectId,
courseId: d.courseId,
pName: data.value.name,
sName,

View File

@@ -423,10 +423,10 @@ function submit() {
data.value.isSubmit = !data.value.isSubmit;
request(ASSESSMENT_SUBMIT, {
targetId: taskId ? taskId : taskIds ? taskIds : 0, // 项目、路径图或开课的Id
targetId: taskIds ? taskIds : 0, // 项目、路径图或开课的Id
chapterOrStageId: chapterOrStageId ? chapterOrStageId : 0, // 关卡或者阶段Id 关卡Id不允许为空
assessmentId: courseId,
taskId: taskId ? taskId : taskIds ? taskIds : 0,
taskId: taskIds ? taskIds : 0,
type,
result: JSON.stringify(data.value),
}).then(() => {