From 11fbb577737ee65f9446bfa60b6cf96954e2390c Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 02 七月 2024 09:25:00 +0800 Subject: [PATCH] 阅卷 --- src/views/answer/components/QuestionAnswerShow.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/answer/components/QuestionAnswerShow.vue b/src/views/answer/components/QuestionAnswerShow.vue index 087f037..f94f3ad 100644 --- a/src/views/answer/components/QuestionAnswerShow.vue +++ b/src/views/answer/components/QuestionAnswerShow.vue @@ -1,6 +1,7 @@ <template> <div v-loading="qLoading" style="line-height:1.8"> - <div v-if="qType == 1 || qType == 2 || qType == 3 || qType == 4 || qType == 5 || qType == 6"> + <div v-if="qType == 1 || qType == 2 || qType == 3 || qType == 4 || qType == 5 || qType == 6 || qType == 7 || qType == 8"> + <!-- 閫夋嫨鎴栬闊� --> <div v-if="qType == 1 || qType == 6"> <div class="q-title" v-html="question.title" /> <div class="q-content"> @@ -12,6 +13,7 @@ </el-radio-group> </div> </div> + <!-- 澶氶�� --> <div v-else-if="qType == 2"> <div class="q-title" v-html="question.title" /> <div class="q-content"> @@ -23,6 +25,7 @@ </el-checkbox-group> </div> </div> + <!-- 鍒ゆ柇 --> <div v-else-if="qType == 3"> <div class="q-title" v-html="question.title" style="display: inline;margin-right: 10px" /> <span style="padding-right: 10px;">(</span> @@ -33,6 +36,7 @@ </el-radio-group> <span style="padding-left: 10px;">)</span> </div> + <!-- 濉┖ --> <div v-else-if="qType == 4"> <div class="q-title" v-html="question.title" /> <div v-if="answer.contentArray !== null"> @@ -42,7 +46,8 @@ </el-form-item> </div> </div> - <div v-else-if="qType == 5"> + <!-- 绠�绛斻�佽绠椼�佸垎鏋� --> + <div v-else-if="qType == 5 || qType == 7 || qType == 8"> <div class="q-title" v-html="question.title" /> <div> <el-input v-model="answer.content" type="textarea" rows="5"></el-input> @@ -69,10 +74,17 @@ </div> <div class="question-answer-show-item"> <span class="question-show-item">姝g‘绛旀锛�</span> - <span v-if="qType == 1 || qType == 2 || qType == 5 || qType == 6" v-html="question.correct" class="q-item-span-content" /> + <!-- 閫夋嫨銆佸閫夈�佺畝绛斻�佽闊炽�佽绠椼�佸垎鏋� --> + <span v-if="qType == 1 || qType == 2 || qType == 5 || qType == 6 || qType == 7 || qType == 8" v-html="question.correct" class="q-item-span-content" /> + <!-- 鍒ゆ柇 --> <span v-if="qType == 3" v-html="trueFalseFormatter(question)" class="q-item-span-content" /> + <!-- 濉┖ --> <span v-if="qType == 4">{{ question.correctArray }}</span> </div> + <div v-if = "answer.doRight == null"> + <span style="color:#ECAB3C;">{{'鎵规敼锛�'}}</span> + <el-input-number size="mini" v-model="answer.score" :precision="1" :min="0" :max="parseInt(question.score)" ></el-input-number> + </div> </div> <div v-else> </div> -- Gitblit v1.8.0