zhangjie před 2 dny
rodič
revize
7994bf9b76

+ 5 - 2
src/modules/grading/marker/MarkerImageView.vue

@@ -93,6 +93,9 @@ export default {
     IS_LEVEL() {
       return this.stage === "LEVEL";
     },
+    IS_SCORE() {
+      return this.stage === "SCORE";
+    },
   },
   created() {
     this.initData();
@@ -160,7 +163,7 @@ export default {
       this.image.mark = !this.image.mark;
     },
     toSelect() {
-      if (this.image.sample) return;
+      if (this.image.sample && !this.IS_SCORE) return;
       this.image.selected = !this.image.selected;
       this.$emit("to-select", this.image);
     },
@@ -176,7 +179,7 @@ export default {
       }
     },
     changeSelect(selected) {
-      if (this.image.sample) return;
+      if (this.image.sample && !this.IS_SCORE) return;
       this.image.selected = selected;
       this.$emit("to-select", this.image);
     },

+ 4 - 0
src/modules/mark/leader/LeaderMarking.vue

@@ -54,6 +54,7 @@
               :stage="stage"
               :can-select="false"
               @to-review="toReview(index)"
+              @to-switch="toSwitch(index)"
             ></marker-image-view>
           </div>
         </div>
@@ -382,6 +383,9 @@ export default {
       this.selectPaper(index);
       this.$refs.SimpleImagePreview.open();
     },
+    toSwitch(index) {
+      this.selectPaper(index);
+    },
     selectPaper(index) {
       let nindex = index;
       if (!this.papers.length) {

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

@@ -544,7 +544,6 @@ export default {
     },
     // selectMultiplePaper
     selectMultiplePaper(paper) {
-      if (paper.sample) return;
       const curPaper = this.papers.find((p) => p.id === paper.id);
       curPaper.selected = paper.selected;
       if (this.multipleGradingList.length === 0 && paper.selected) {