From 920be2f0d9c6a1916456f490d89bc83461ce8328 Mon Sep 17 00:00:00 2001 From: tianea Date: Tue, 30 Aug 2022 22:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/system/exam.vue | 6 +- front/src/views/system/examresult.vue | 79 +++++++++++++++++++++------ 2 files changed, 66 insertions(+), 19 deletions(-) diff --git a/front/src/views/system/exam.vue b/front/src/views/system/exam.vue index 5125eca..f58d701 100644 --- a/front/src/views/system/exam.vue +++ b/front/src/views/system/exam.vue @@ -578,9 +578,9 @@ export default { display: inline-block; border-radius: 5px; color: black; - padding: .5rem; - margin-top: 0.5rem; - margin-right: .5rem; + padding: .3rem; + margin-top: 0.3rem; + margin-right: .3rem; } .tz-exam-box-tips{ text-align: left; diff --git a/front/src/views/system/examresult.vue b/front/src/views/system/examresult.vue index c2f6e46..e070fcb 100644 --- a/front/src/views/system/examresult.vue +++ b/front/src/views/system/examresult.vue @@ -73,7 +73,7 @@
案例题
-
+ @@ -82,17 +82,20 @@
{{cq.id}}.{{cq.item.stem}}
-
我的选项: {{getMyAnswer(cq.item.id,0)}}
{{ idToName(item.id)}}.{{item.title}}
- 解析: {{ cq.item.analysis}} +
+
正确答案: {{getRightAnswer(cq.item)}}
+
我的答案: {{getMyAnswer(cq.item.id,0)}}
+
+
解析: {{ cq.item.analysis}}
-
+ @@ -101,17 +104,22 @@
{{cq.id}}.{{cq.item.stem}}
-
我的选项: {{getMyAnswer(cq.item.id,0)}}
+
{{ idToName(item.id)}}.{{item.title}}
+
- 解析: {{ cq.item.analysis}} +
+
正确答案: {{getRightAnswer(cq.item)}}
+
我的答案: {{getMyAnswer(cq.item.id,0)}}
+
+
解析: {{ cq.item.analysis}}
-
+ @@ -120,18 +128,22 @@
{{cq.id}}.{{cq.item.stem}}
-
我的选项: {{getMyAnswer(cq.item.id,0)}}
+
{{ idToName(item.id)}}.{{item.title}}
- 解析: {{ cq.item.analysis}} +
+
正确答案: {{getRightAnswer(cq.item)}}
+
我的答案: {{getMyAnswer(cq.item.id,0)}}
+
+
解析: {{ cq.item.analysis}}
-
+ @@ -148,7 +160,7 @@
{{subcq.id}}.{{subcq.stem}}
-
我的选项: {{getMyAnswer(cq.item.id,subcq.id)}}
+
{{ idToName(subitem.id)}}.{{subitem.title}} @@ -160,9 +172,16 @@ {{ idToName(subitem.id)}}.{{subitem.title}}
-
- 解析: {{ subcq.analysis}} +
+
+
正确答案: {{getRightAnswer(cq.item)}}
+
我的答案: {{getMyAnswer(cq.item.id,subcq.id)}}
+
解析: {{ subcq.analysis}}
+
+
@@ -407,6 +426,19 @@ export default { } return '' }, + getRightAnswer(item,subId){ + + var rs = '' + if(item.answerId instanceof Array){ + item.answerId.forEach((id)=>{ + rs += this.idToName(id) + }) + }else{ + rs = this.idToName(item.answerId) + } + + return rs + }, initQuestionInfo(){ this.singleInfo.size = this.singleQuestion.length this.judgeInfo.size = this.judgeQuestion.length @@ -614,9 +646,9 @@ export default { display: inline-block; border-radius: 5px; color: black; - padding: .5rem; - margin-top: 0.5rem; - margin-right: .5rem; + padding: .3rem; + margin-top: 0.3rem; + margin-right: .3rem; } .tz-exam-box-tips{ text-align: left; @@ -694,4 +726,19 @@ export default { margin-top: 1rem; color: #476083; } +.q_split { + background-color: #0264d2; + color: white; + padding: 5px; +} +.right_answer { + color: #3300cc; +} +.tz-answer{ + display: flex; +} +.tz-answer div { + width: 50%; + +} \ No newline at end of file