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) {
     updateStepLevel(curStep, { curLevel, manualScore = 0 }, count = 1) {
       if (curStep.type === "done") {
       if (curStep.type === "done") {
-        if (!manualScore) return;
-
         const spos = this.steps.otherStep.findIndex(
         const spos = this.steps.otherStep.findIndex(
           item => item.type === "manualScore"
           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;
         return;
       }
       }