zhangjie 2 月之前
父節點
當前提交
87486f6b60

+ 2 - 12
src/features/check-objective/CheckObjective.vue

@@ -153,20 +153,10 @@
                 <a-input
                 <a-input
                   class="normal-input"
                   class="normal-input"
                   :class="{
                   :class="{
-                    'long-input': question.type
-                      ? !['SINGLE', 'TRUE_OR_FALSE'].includes(question.type)
-                      : !group.mainTitle.match(/单选|单项|判断/),
+                    'long-input': question.questionType === 2,
                   }"
                   }"
                   :value="question.answer"
                   :value="question.answer"
-                  :maxLength="
-                    (
-                      question.type
-                        ? ['MULTIPLE'].includes(question.type)
-                        : group.mainTitle.match(/多选|多项|不定项/)
-                    )
-                      ? 100
-                      : 1
-                  "
+                  :maxLength="question.questionType === 2 ? 100 : 1"
                   @keydown="onPreventAnswerKey"
                   @keydown="onPreventAnswerKey"
                   @input="changeAnswer($event, question)"
                   @input="changeAnswer($event, question)"
                   @blur="changeAnswer($event, question, '#')"
                   @blur="changeAnswer($event, question, '#')"

+ 4 - 1
src/features/mark/scoring/MarkBoardKeyBoard.vue

@@ -124,7 +124,10 @@
         </div>
         </div>
       </template>
       </template>
     </div>
     </div>
-    <div v-if="markStore.currentQuestion?.selfMark" class="board-footer">
+    <div
+      v-if="!isCheckAnswer && markStore.currentQuestion?.selfMark"
+      class="board-footer"
+    >
       <qm-button
       <qm-button
         v-if="markStore.currentQuestion?.problem"
         v-if="markStore.currentQuestion?.problem"
         class="board-clear"
         class="board-clear"

+ 4 - 1
src/features/mark/scoring/MarkBoardMouse.vue

@@ -112,7 +112,10 @@
       </template>
       </template>
     </div>
     </div>
 
 
-    <div v-if="markStore.currentQuestion?.selfMark" class="board-footer">
+    <div
+      v-if="!isCheckAnswer && markStore.currentQuestion?.selfMark"
+      class="board-footer"
+    >
       <qm-button
       <qm-button
         v-if="markStore.currentQuestion?.problem"
         v-if="markStore.currentQuestion?.problem"
         class="board-clear"
         class="board-clear"

+ 1 - 1
src/features/mark/scoring/MarkBoardTrack.vue

@@ -172,7 +172,7 @@
         回退
         回退
       </qm-button>
       </qm-button>
 
 
-      <template v-if="markStore.currentQuestion?.selfMark">
+      <template v-if="!isCheckAnswer && markStore.currentQuestion?.selfMark">
         <qm-button
         <qm-button
           v-if="markStore.currentQuestion?.problem"
           v-if="markStore.currentQuestion?.problem"
           class="board-clear"
           class="board-clear"