From f8289e778a1ae84a3ecda75cf1c9ff3e9d7ca3a8 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 29 十月 2024 14:43:32 +0800
Subject: [PATCH] 正式环境

---
 src/views/exam/exam/components/MarkPaperShow.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/exam/exam/components/MarkPaperShow.vue b/src/views/exam/exam/components/MarkPaperShow.vue
index 6b875da..d327327 100644
--- a/src/views/exam/exam/components/MarkPaperShow.vue
+++ b/src/views/exam/exam/components/MarkPaperShow.vue
@@ -51,8 +51,8 @@
       <!-- 绠�绛斻�佽绠椼�佸垎鏋� -->
       <div v-else-if="qType == 5 || qType == 7 || qType == 8">
         <div class="q-title" v-html="question.title"/>
-        <div>
-          <el-input v-model="question.answer" type="textarea" rows="5" ></el-input>
+        <div class="rich-text-box">
+          <div v-html="question.answer"></div>
         </div>
       </div>
       <div class="question-answer-show-item" style="margin-top: 15px">
@@ -90,7 +90,7 @@
       </div>
       <span style="color:#ECAB3C;">{{ '鎵规敼锛�' }}</span>
       <el-input-number size="mini" v-model="question.score" :precision="1" :min="0"
-                       :max="parseInt(question.questionScore)" @change="updateRight"></el-input-number>
+                       :max="parseFloat(question.questionScore)" @change="updateRight"></el-input-number>
     </div>
     <div v-else>
     </div>
@@ -128,7 +128,7 @@
   methods: {
     updateRight () {
       // 褰搒core鍙樺寲鏃讹紝妫�鏌ュ畠鏄惁绛変簬questionScore
-      this.question.right = this.question.score === parseInt(this.question.questionScore)
+      this.question.right = this.question.score === parseFloat(this.question.questionScore)
       const foundAnswer = this.answer.find(answer => answer.itemOrder === this.question.itemOrder)
       if (foundAnswer) {
         foundAnswer.right = this.question.right
@@ -188,4 +188,9 @@
   color: #606266
 }
 
+.rich-text-box {
+  border: 1px solid #ccc; /* 娣诲姞杈规 */
+  padding: 10px ; /* 娣诲姞鍐呰竟璺濅互鎻愪緵绌洪棿 */
+  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
+}
 </style>

--
Gitblit v1.8.0