From 6ded0b99ac64de3d89ce389c1ef8f6ca8343d7a9 Mon Sep 17 00:00:00 2001 From: wuyx Date: Fri, 23 Dec 2022 20:52:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E9=9D=A2=E6=8E=88?= =?UTF-8?q?=E8=AF=BE=E4=BC=A0=E9=80=92=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/faceteach/FaceTeach.vue | 140 ++++++++++++------------------ src/views/survey/SurveyDetail.vue | 36 ++++---- 2 files changed, 75 insertions(+), 101 deletions(-) diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index fd6fe76..9fc1790 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -5,11 +5,12 @@
课程列表
/
课程详情
- +
- 返回 + 返回
@@ -50,94 +51,62 @@ - -
-
-
-
-
- -
课程详情
-
-
-
-
-
-
-
-
- - -
+
+
+
+
+ +
课程详情
+
+
+
+
+
+
+
+
+ + +
- 此课程无附件 -
-
-
-
- -
{{ el.name }}
-
-
- -
- 下载 -
-
-
- -
- 下载 -
-
-
-
-
- -
+ 此课程无附件 +
+
+
+
+ +
{{ el.name }}
+
+
+ +
+ 下载 +
+
+
+ +
+ 下载 +
+
+
+
+
+ +
--> -
+
- 返回 + 返回
-
- - -
【评估】{{data.assessmentName}}
- - -
-
- + +
【评估】{{ data.assessmentName }}
+ + +
+
+ @@ -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(() => {