Pārlūkot izejas kodu

fix: 小题满分

zhangjie 6 mēneši atpakaļ
vecāks
revīzija
ef796a1c69

+ 6 - 3
src/modules/mark/components/markParam/MarkParamStructure.vue

@@ -134,7 +134,7 @@
               v-model="scoresPerTopic[scope.row.mainId]"
               v-model="scoresPerTopic[scope.row.mainId]"
               class="width-full"
               class="width-full"
               size="small"
               size="small"
-              :min="0.5"
+              :min="0"
               :max="500"
               :max="500"
               :step="0.5"
               :step="0.5"
               step-strictly
               step-strictly
@@ -332,7 +332,10 @@ export default {
           intervalScorePerTopic[curMainNumber] = undefined;
           intervalScorePerTopic[curMainNumber] = undefined;
           nitem.mainFirstSub = true;
           nitem.mainFirstSub = true;
         }
         }
-        nitem.totalScore = nitem.totalScore || undefined;
+        nitem.totalScore =
+          nitem.totalScore || nitem.totalScore === 0
+            ? nitem.totalScore
+            : undefined;
         nitem.intervalScore = nitem.intervalScore || undefined;
         nitem.intervalScore = nitem.intervalScore || undefined;
         nitem.mainId = curMainId;
         nitem.mainId = curMainId;
 
 
@@ -527,7 +530,7 @@ export default {
         });
         });
     },
     },
     scorePerTopicChange(val, row) {
     scorePerTopicChange(val, row) {
-      if (!val) return;
+      if (!val && val !== 0) return;
       this.tableData
       this.tableData
         .filter((item) => item.mainId === row.mainId)
         .filter((item) => item.mainId === row.mainId)
         .forEach((item) => {
         .forEach((item) => {