Browse Source

bugfix - 装置审计记录表格线有错位

wangggziwen 8 months ago
parent
commit
3f5b7a62e7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      ruoyi-ui/src/views/rc/audit/index.vue

+ 4 - 1
ruoyi-ui/src/views/rc/audit/index.vue

@@ -87,7 +87,7 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table border v-loading="loading" :data="auditList" @selection-change="handleSelectionChange">
+    <el-table border v-loading="loading" :data="auditList" @selection-change="handleSelectionChange" ref='tableRef'>
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="装置" align="center" prop="deptName" width="120"/>
       <el-table-column label="年份" align="center" prop="year" width="120">
@@ -331,6 +331,9 @@ export default {
     };
   },
   created() {
+    this.$nextTick(()=> {
+      this.$refs.tableRef.doLayout();
+    });
     if (this.$route.query.deptId != null) {
       this.queryParams.deptId = Number(this.$route.query.deptId);
     }