From cf99172f6a07ccfdb3cbd8e00ad4f627092c2f45 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 11 May 2021 14:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=A2=E6=88=B7=E6=89=80?= =?UTF-8?q?=E6=8F=90=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/testPaperDetail/index.vue | 1 + src/pages/achievement/list/wrongBook.vue | 10 +++- src/pages/assessment/detail/index.vue | 1 + src/pages/assessment/doReview/index.vue | 1 + src/pages/assessment/list/index.vue | 2 +- src/pages/index/list/index.vue | 2 + src/pages/practice/detail/index.vue | 1 + src/pages/practice/doReview/index.vue | 1 + src/pages/practice/list/index.vue | 2 +- src/pages/quesBank/list/globalQuesBank.vue | 53 ++++++++++++++++--- src/pages/quesBank/list/myQuesBank.vue | 59 +++++++++++++++++----- src/pages/quesBank/list/quesBankType.vue | 16 +++--- src/pages/quesBank/list/quesDialog.vue | 8 +-- src/pages/system/list/organization.vue | 5 +- src/pages/system/list/role.vue | 6 +-- src/pages/testPaper/add/index.vue | 6 +-- src/pages/testPaper/list/allTestPaper.vue | 2 +- src/pages/testPaper/list/myTestPaper.vue | 17 +++---- src/setting.js | 2 +- src/store/modules/testpaper.js | 2 +- src/store/modules/user.js | 2 - src/styles/common.scss | 22 +++++--- src/styles/pages/messageBoard.scss | 1 + src/styles/pages/testPaperDetail.scss | 2 +- 24 files changed, 155 insertions(+), 69 deletions(-) diff --git a/src/components/testPaperDetail/index.vue b/src/components/testPaperDetail/index.vue index 836ddef..9fca11f 100644 --- a/src/components/testPaperDetail/index.vue +++ b/src/components/testPaperDetail/index.vue @@ -133,6 +133,7 @@ export default { } } n.answer = answer.join(',') + n.questionStem = n.questionStem.replace(/\(\)\(\)\(\)/g,`______`) } }) } diff --git a/src/pages/achievement/list/wrongBook.vue b/src/pages/achievement/list/wrongBook.vue index bb10697..181ee3a 100644 --- a/src/pages/achievement/list/wrongBook.vue +++ b/src/pages/achievement/list/wrongBook.vue @@ -81,7 +81,7 @@

-
+

选项:

{{i}}.{{quesInfo.options[i]}}

@@ -234,6 +234,14 @@ export default { options[i.replace('option','')] = info[i] } } + if(info.name == '填空题'){ + let answer = [] + for(let i in info){ + if(i.includes('option') && info[i]) answer.push(info[i]) + } + info.answer = answer.join(',') + info.questionStem = info.questionStem.replace(/\(\)\(\)\(\)/g,`______`) + } info.options = options this.quesInfo = info }).catch(err => {}) diff --git a/src/pages/assessment/detail/index.vue b/src/pages/assessment/detail/index.vue index bfe6d36..b9124ad 100644 --- a/src/pages/assessment/detail/index.vue +++ b/src/pages/assessment/detail/index.vue @@ -193,6 +193,7 @@ export default { if(n.typeName == '填空题'){ n.answer = answer.join(',') n.user_answer = n.user_answer ? n.user_answer.split('<>').filter(n => n).join(',') : '' + n.question_stem = n.question_stem.replace(/\(\)\(\)\(\)/g,`______`) } n.options = options } diff --git a/src/pages/assessment/doReview/index.vue b/src/pages/assessment/doReview/index.vue index af0e762..d58e96e 100644 --- a/src/pages/assessment/doReview/index.vue +++ b/src/pages/assessment/doReview/index.vue @@ -187,6 +187,7 @@ export default { if(n.typeName == '填空题'){ n.answer = answer.join(',') n.user_answer = n.user_answer ? n.user_answer.split('<>').filter(n => n).join(',') : '' + n.question_stem = n.question_stem.replace(/\(\)\(\)\(\)/g,`______`) } n.options = options } diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue index 66864ed..9792a1d 100644 --- a/src/pages/assessment/list/index.vue +++ b/src/pages/assessment/list/index.vue @@ -48,7 +48,7 @@ - + - + - +