|
@@ -91,12 +91,12 @@ export default {
|
|
|
tableData:[],
|
|
|
searchData: {},
|
|
|
tableColumns:[
|
|
|
- { title: "序号", type:'index', align: "center", minWidth: 140 },
|
|
|
- { title: "区域", key: "region", align: "center", minWidth: 140 },
|
|
|
- { title: "楼栋", key: "house", align: "center", minWidth: 140 },
|
|
|
- { title: "单元", key: "unit", align: "center", minWidth: 140 },
|
|
|
- { title: "楼层", key: "layer", align: "center", minWidth: 140 },
|
|
|
- { title: "房间号", key: "number", align: "center", minWidth: 140 }
|
|
|
+ { title: "序号", type:'index', align: "center", minWidth: 70 },
|
|
|
+ { title: "区域", key: "region", align: "center", minWidth: 70 },
|
|
|
+ { title: "楼栋", key: "house", align: "center", minWidth: 70 },
|
|
|
+ { title: "单元", key: "unit", align: "center", minWidth: 70 },
|
|
|
+ { title: "楼层", key: "layer", align: "center", minWidth: 70 },
|
|
|
+ { title: "房间号", key: "number", align: "center", minWidth: 70 }
|
|
|
],
|
|
|
showType: false,
|
|
|
headers: { Authorization: localStorage.getItem("token") },//请求头
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
title:'',
|
|
|
key:'',
|
|
|
align: "center",
|
|
|
- minWidth: 140
|
|
|
+ minWidth: 70
|
|
|
};
|
|
|
this.tableData=res.data.data;
|
|
|
for(let i in this.tableData[0]){
|
|
@@ -253,11 +253,11 @@ export default {
|
|
|
title:'',
|
|
|
key:'',
|
|
|
align: "center",
|
|
|
- minWidth: 140
|
|
|
+ minWidth: 70
|
|
|
};
|
|
|
this.tableData=res.data.data;
|
|
|
for(let i in this.tableData[0]){
|
|
|
- if(i.charAt(0) == 'W'){
|
|
|
+ if(i!== 'state'&&i!=='region'&&i!=='unit'&&i!=='number'&&i!=='layer'&&i!=='house'){
|
|
|
obj.title = i;
|
|
|
obj.key = i;
|
|
|
this.add_tableColumns.push(JSON.parse(JSON.stringify(obj)))
|