zhangjie 2 years ago
parent
commit
ed7fa2febc

+ 1 - 1
src/modules/grading/components/GradeAction.vue

@@ -536,7 +536,7 @@ export default {
         }
         if (!/^[a-zA-Z0-9]$/.test(e.key)) return;
 
-        const keyInput = e.key.x();
+        const keyInput = e.key.toUpperCase();
         if (this.getKeyInputLevel(keyInput)) {
           e.preventDefault();
           this.keyInput = keyInput;

+ 1 - 1
src/modules/grading/leader/LeaderGrading.vue

@@ -433,7 +433,7 @@ export default {
       this.setPage({ current: 1 });
       this.isFullscreenMarking = false;
       await this.getList();
-      // this.getStepLevels();
+      this.getStepLevels();
       if (this.papers.length) {
         this.selectPaper(0);
       } else {

+ 5 - 0
src/modules/grading/marker/MarkerGrading.vue

@@ -430,6 +430,10 @@ export default {
       }
     },
     updateStepLevel(curStep, curLevel, count) {
+      if (curStep.type === "markPaper") {
+        this.getStepLevels();
+        return;
+      }
       if (curStep.type === "done") {
         const lpos = this.steps.levelStep.findIndex(
           item => item.name === curStep.name
@@ -570,6 +574,7 @@ export default {
         this.steps.otherStep[spos].count++;
       } else {
         this.steps.otherStep[spos].count--;
+        if (this.curStep.type === "markPaper") this.getList();
       }
     },
     toReview(data) {

+ 5 - 0
src/modules/mark/marker/MarkerMarking.vue

@@ -367,6 +367,10 @@ export default {
     },
     updateStepLevel(curStep, curLevel, count = 1) {
       if (curStep.type === "done") return;
+      if (curStep.type === "markPaper") {
+        this.getStepLevels();
+        return;
+      }
 
       if (curStep.type !== "markPaper") {
         const opos = this.steps.otherStep.findIndex(
@@ -422,6 +426,7 @@ export default {
         this.steps.otherStep[spos].count++;
       } else {
         this.steps.otherStep[spos].count--;
+        if (this.curStep.type === "markPaper") this.getList();
       }
     },
     toReview(data) {