Browse Source

是否显示重审按钮

deason 3 years ago
parent
commit
9b3f845c9b
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/modules/oe/views/examDetail.vue

+ 13 - 0
src/modules/oe/views/examDetail.vue

@@ -413,6 +413,7 @@
                   <el-col :span="24">
                     <el-dropdown>
                       <el-button
+                        v-show="scope.row.showReAudit"
                         size="mini"
                         icon="el-icon-arrow-down"
                         type="primary"
@@ -588,6 +589,7 @@ export default {
   data() {
     return {
       isOnlineExam: false,
+      needShowReAudit: false,
       selectedIds: [],
       disciplineTypeList: [],
       total: 0,
@@ -657,6 +659,9 @@ export default {
   computed: {
     ...mapState({ user: (state) => state.user }),
     noBatchSelected() {
+      if (!this.needShowReAudit) {
+        return true;
+      }
       if (!this.isOnlineExam) {
         return true;
       }
@@ -783,6 +788,8 @@ export default {
         this.form.pageNo = 1;
       }
       this.tableLoading = true;
+      this.needShowReAudit = false;
+
       var params = JSON.parse(JSON.stringify(this.form));
       this.$http
         .post("/api/ecs_oe_admin/exam/record/detail/list", params)
@@ -791,6 +798,12 @@ export default {
             this.tableData = response.data.content;
             this.total = response.data.totalElements;
             this.form.pageNo = response.data.number + 1;
+
+            this.tableData.forEach((obj) => {
+              if (obj.showReAudit) {
+                this.needShowReAudit = true;
+              }
+            });
           } else {
             this.tableData = [];
           }