+
+
@@ -367,10 +368,10 @@ function submit() {
if (1 > 0) {
console.log(data)
console.log('我是提交的数据', {
- targetId: taskId, // 项目、路径图或开课的Id
- chapterOrStageId: chapterOrStageId, // 关卡或者阶段Id 关卡Id不允许为空
+ targetId: taskId ? taskId : taskIds ? taskIds : 0, // 项目、路径图或开课的Id
+ chapterOrStageId: chapterOrStageId ? chapterOrStageId : 0, // 关卡或者阶段Id 关卡Id不允许为空
assessmentId: courseId,
- taskId,
+ taskId: taskId ? taskId : taskIds ? taskIds : 0,
type,
result: JSON.stringify(data.value),
})
@@ -419,12 +420,13 @@ function submit() {
return ElMessage.warning("您有未填写的评估题干");
}
}
+
data.value.isSubmit = !data.value.isSubmit;
request(ASSESSMENT_SUBMIT, {
- targetId: taskId, // 项目、路径图或开课的Id
- chapterOrStageId: chapterOrStageId, // 关卡或者阶段Id 关卡Id不允许为空
+ targetId: taskId ? taskId : taskIds ? taskIds : 0, // 项目、路径图或开课的Id
+ chapterOrStageId: chapterOrStageId ? chapterOrStageId : 0, // 关卡或者阶段Id 关卡Id不允许为空
assessmentId: courseId,
- taskId,
+ taskId: taskId ? taskId : taskIds ? taskIds : 0,
type,
result: JSON.stringify(data.value),
}).then(() => {