From 4a14d5a8773b312999ab53c90f3bf15580b1cd2d Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 28 六月 2024 11:35:16 +0800
Subject: [PATCH] 阅卷组件
---
src/views/answer/components/QuestionAnswerShow.vue | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/views/answer/components/QuestionAnswerShow.vue b/src/views/answer/components/QuestionAnswerShow.vue
index f84e195..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 || 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,6 +46,7 @@
</el-form-item>
</div>
</div>
+ <!-- 绠�绛斻�佽绠椼�佸垎鏋� -->
<div v-else-if="qType == 5 || qType == 7 || qType == 8">
<div class="q-title" v-html="question.title" />
<div>
@@ -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 || 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