zhangjie 2 gadi atpakaļ
vecāks
revīzija
3dc354363d

+ 14 - 6
src/modules/grading/marker/MarkerGrading.vue

@@ -342,13 +342,14 @@ export default {
       if (!isRepeat) this.cacheUpdateLevelInfos = nextCacheUpdateLevelInfos;
       return isRepeat;
     },
-    updateStepLevel(curStep, curLevel, count) {
+    updateStepLevel(curStep, curLevel, count, paperIds) {
       if (
         this.checkStepActionIsRepeat({
           curStepType: curStep.type,
           curStepName: curStep.name,
           curLevel,
-          count
+          count,
+          paperIds
         })
       )
         return;
@@ -432,8 +433,9 @@ export default {
       const multipleGradingListCount = this.multipleGradingList.length;
 
       let result = true;
+      const paperIds = this.multipleGradingList.map(item => item.id).join();
       await paperSelectLevelBatch(
-        this.multipleGradingList.map(item => item.id).join(), // is taskId
+        paperIds, // is taskId
         level.name,
         "LEVEL"
       ).catch(() => {
@@ -445,7 +447,12 @@ export default {
 
       this.multipleGradingList = [];
       // this.getStepLevels();
-      this.updateStepLevel(this.curStep, level.name, multipleGradingListCount);
+      this.updateStepLevel(
+        this.curStep,
+        level.name,
+        multipleGradingListCount,
+        paperIds
+      );
 
       // update paper list
       if (
@@ -532,13 +539,14 @@ export default {
         this.updateStepLevel(
           { type: "done", name: this.curPaper.level },
           level.name,
-          1
+          1,
+          this.curPaper.id
         );
 
         this.$refs.CarouselPapersPreview.cancel();
         this.$refs.MarkerHistory.updatePapers();
       } else {
-        this.updateStepLevel(this.curStep, level.name, 1);
+        this.updateStepLevel(this.curStep, level.name, 1, this.curPaper.id);
         this.toActionNextPaper();
       }
     },

+ 21 - 7
src/modules/mark/marker/MarkerMarking.vue

@@ -356,13 +356,19 @@ export default {
       if (!isRepeat) this.cacheUpdateLevelInfos = nextCacheUpdateLevelInfos;
       return isRepeat;
     },
-    updateStepLevel(curStep, { curLevel, manualScore = 0 }, count = 1) {
+    updateStepLevel(
+      curStep,
+      { curLevel, manualScore = 0 },
+      count = 1,
+      paperIds
+    ) {
       if (
         this.checkStepActionIsRepeat({
           curStepType: curStep.type,
           curLevel,
           manualScore,
-          count
+          count,
+          paperIds
         })
       )
         return;
@@ -532,7 +538,11 @@ export default {
         selectedLevel,
         "LEVEL"
       );
-      this.updateStepLevel(this.curStep, { curLevel: "shiftScore" });
+      this.updateStepLevel(
+        this.curStep,
+        { curLevel: "shiftScore" },
+        this.curPaper.id
+      );
       this.toActionNextPaper();
     },
     async scoreCurPaper(info) {
@@ -547,10 +557,14 @@ export default {
         this.$refs.CarouselPapersPreview.cancel();
         this.$refs.MarkerHistory.updatePapers();
       } else {
-        this.updateStepLevel(this.curStep, {
-          curLevel: this.curPaper.level,
-          manualScore: info.manualScore
-        });
+        this.updateStepLevel(
+          this.curStep,
+          {
+            curLevel: this.curPaper.level,
+            manualScore: info.manualScore
+          },
+          this.curPaper.id
+        );
 
         if (
           this.curStep.type === "undo" ||