From 921ef7c03da1cd1596288a9390aa23f78f5a233b Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 4 Sep 2019 19:06:55 +0800 Subject: [PATCH] =?UTF-8?q?desc:=20=E8=B0=83=E6=95=B4=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/management/userexam.js | 2 +- src/jmap/map.js | 1 - src/views/exam/detail/examDetail.vue | 9 ++++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/api/management/userexam.js b/src/api/management/userexam.js index 85cc0588c..2efb026f6 100644 --- a/src/api/management/userexam.js +++ b/src/api/management/userexam.js @@ -1,6 +1,6 @@ import request from '@/utils/request'; -/** 获取考题列表*/ +/** 获取用户试题列表*/ export function generateExamList(examId) { return request({ url: `/api/userExam/${examId}/generate`, diff --git a/src/jmap/map.js b/src/jmap/map.js index bff6c1392..fb303e8f1 100644 --- a/src/jmap/map.js +++ b/src/jmap/map.js @@ -153,7 +153,6 @@ class Jlmap { const type = elem._type; const oDevice = this.mapDevice[code] || deviceFactory(type, elem); const nDevice = Object.assign(oDevice || {}, elem); - console.log(oDevice, nDevice, 111); this.$painter.delete(oDevice); if (!elem._dispose) { this.mapDevice[code] = nDevice; diff --git a/src/views/exam/detail/examDetail.vue b/src/views/exam/detail/examDetail.vue index 7a5ea2e4d..dd7d274f3 100644 --- a/src/views/exam/detail/examDetail.vue +++ b/src/views/exam/detail/examDetail.vue @@ -146,9 +146,7 @@ export default { } }); }); - const resp = await generateExamList(this.examDetails.id); - this.examList = resp.data.userExamQuestionsVOs; - this.userExam = resp.data; + } }, buy() { @@ -168,6 +166,7 @@ export default { const data = this.examDetails; try { const response = await generateExamList(data.id); + this.examList = response.data.userExamQuestionsVOs; this.userExam = response.data; const list = response.data.userExamQuestionsVOs; await this.$store.dispatch('exam/setUsedTime', this.userExam.usedTime); @@ -191,9 +190,9 @@ export default { } } }, - exmaStart() { + async exmaStart() { this.loading = true; - this.examDetail(); + await this.examDetail(); if (this.examList.length) { examNotify({ examId: this.$route.params.examId }).then(resp => { const query = {