zhangjie 2 年之前
父節點
當前提交
f903e52efb
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. 8 3
      src/modules/mark/marker/MarkerMarking.vue

+ 8 - 3
src/modules/mark/marker/MarkerMarking.vue

@@ -337,12 +337,17 @@ export default {
     },
     updateStepLevel(curStep, { curLevel, manualScore = 0 }, count = 1) {
       if (curStep.type === "done") {
-        if (!manualScore) return;
-
         const spos = this.steps.otherStep.findIndex(
           item => item.type === "manualScore"
         );
-        this.steps.otherStep[spos].count += count;
+        if (this.curPaper.manualScore && !manualScore) {
+          this.steps.otherStep[spos].count -= count;
+        }
+
+        if (!this.curPaper.manualScore && manualScore) {
+          this.steps.otherStep[spos].count += count;
+        }
+
         return;
       }