|
@@ -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);
|
|
|
}
|