Ver código fonte

Merge branch 'fix-shenhe' into online

wolyshaw 4 anos atrás
pai
commit
4d4af75eec
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      src/views/auditList/index.vue

+ 4 - 1
src/views/auditList/index.vue

@@ -86,7 +86,7 @@
           :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
           @selection-change="handleSelectionChange"
         >
-          <el-table-column type="selection" width="55"></el-table-column>
+          <el-table-column fixed="left" type="selection" width="55" :selectable="selectable"></el-table-column>
           <el-table-column align="center" prop="organName" label="分部名称">
             <template slot-scope="scope">
               <copy-text>{{ scope.row.organName }}</copy-text>
@@ -295,6 +295,9 @@ export default {
     this.getList();
   },
   methods: {
+    selectable(row, index) {
+      return row.auditStatus == 'AUDITING';
+    },
     search() {
       this.pageInfo.page = 1;
       this.$refs.searchForm.save(this.searchForm);