From d9a9e87492a2a0baa28bef00842a174bc3825971 Mon Sep 17 00:00:00 2001 From: cgd_mac <349008059@qq.com> Date: Wed, 23 Feb 2022 14:54:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=80=83=E8=AF=95=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/myexam/index.vue | 2 +- src/views/myexamDetail/index.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/myexam/index.vue b/src/views/myexam/index.vue index 6bd74a2..758ddfa 100644 --- a/src/views/myexam/index.vue +++ b/src/views/myexam/index.vue @@ -211,7 +211,7 @@ export default { content: '确定要预约考试吗?', onOk () { reqExamSubscribe({ projectId: data.id }).then(res => { - this.$message.success('预约成功!') + _this.$message.success('预约成功!') _this.handleRefresh() }) }, diff --git a/src/views/myexamDetail/index.vue b/src/views/myexamDetail/index.vue index 6ca1f22..3e11657 100644 --- a/src/views/myexamDetail/index.vue +++ b/src/views/myexamDetail/index.vue @@ -86,7 +86,7 @@ export default { if (type === 'practice' || type === 'operation') { this.submitPractice(result) } - if (type === 'exam') { + if (type === 'exam' || type === 'test') { this.submitExam(result) } // if (type === 'operation') { @@ -166,6 +166,7 @@ export default { courseId: query.courseId, answerTime: 0, type: query.practiceType, + examType: query.type === 'test' ? 1 : 2, questionList: this.formatSubmit(result) } reqExamSubmit(params).then(() => {