xiatian há 4 anos atrás
pai
commit
2d011b99d0
1 ficheiros alterados com 9 adições e 3 exclusões
  1. 9 3
      src/modules/questions/views/EditPaper.vue

+ 9 - 3
src/modules/questions/views/EditPaper.vue

@@ -428,11 +428,13 @@
             </el-col>
             <el-col :xs="10" :sm="10" :md="10" :lg="10">
               <el-form-item label="分值">
-                <el-input
+                <el-input-number
                   v-model="quesModel.score"
                   placeholder="分值"
+                  :precision="1"
+                  :min="0"
                   :disabled="quesModel.questionType == 'NESTED_ANSWER_QUESTION'"
-                ></el-input>
+                ></el-input-number>
               </el-form-item>
             </el-col>
           </el-row>
@@ -1550,7 +1552,11 @@ export default {
           "###"
         );
       }
-      if (this.quesModel.questionType == "MATCHING_QUESTION") {
+      if (
+        this.quesModel.questionType == "NESTED_ANSWER_QUESTION" ||
+        this.quesModel.questionType == "MATCHING_QUESTION" ||
+        this.quesModel.questionType == "LISTENING_QUESTION"
+      ) {
         this.quesModel.quesBody = this.quesModel.quesBody.replace(
           /___([1-9][0-9]*)___/g,
           "##$1##"