zhangjie 1 năm trước cách đây
mục cha
commit
cf1b86809d

+ 4 - 1
src/modules/mark/components/ScoreCheckDetail.vue

@@ -224,7 +224,7 @@
           width="260"
           fixed="right"
         >
-          <template slot-scope="scope">
+          <template v-if="checkActionValid(scope.row)" slot-scope="scope">
             <el-button
               class="btn-primary"
               type="text"
@@ -364,6 +364,9 @@ export default {
     search() {
       this.toPage(1);
     },
+    checkActionValid(row) {
+      return !["UNEXIST", "MANUAL_ABSENT"].includes(row.scanStatus);
+    },
     collegeChange(val) {
       this.filter.college = val?.name;
     },

+ 3 - 1
src/modules/mark/components/markDetail/MarkDetailIssue.vue

@@ -268,7 +268,9 @@ export default {
     // img view
     toViewSheetPaper(row) {
       this.curImageIndex = 0;
-      this.imageList = row.sheetUrls || [];
+      this.imageList = (row.sheetUrls || []).map((url, index) => {
+        return { url, index: index + 1 };
+      });
       this.selectImage(this.curImageIndex);
       this.$refs.SimpleImagePreview.open();
     },