|
@@ -53,6 +53,7 @@
|
|
|
watch: {
|
|
|
qy: {
|
|
|
handler(val) {
|
|
|
+ console.log('-----',val);
|
|
|
this.value = val;
|
|
|
this.funUnitList();
|
|
|
this.handUnitList();
|
|
@@ -74,7 +75,7 @@
|
|
|
...this.params,
|
|
|
|
|
|
}).then((res) => {
|
|
|
- this.options = res.data.rows;
|
|
|
+ this.tableData = res.data.rows;
|
|
|
this.total = res.data.total;
|
|
|
});
|
|
|
},
|
|
@@ -92,27 +93,6 @@
|
|
|
qy: this.value === "重庆市" ? "" : this.value,
|
|
|
}).then((res) => {
|
|
|
const list = res.data.rows[0];
|
|
|
- // this.unitList = [{
|
|
|
- // title: "高层建筑总数(栋)",
|
|
|
- // unitNum: list.ggjz + list.gyjz + list.zzjz,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: "超高层建筑总数(栋)",
|
|
|
- // unitNum: list.cggjz,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: "老旧高层建筑总数(栋)",
|
|
|
- // unitNum: list.ljzzgc,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: "公共建筑总数(栋)",
|
|
|
- // unitNum: list.ggjz,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: "住宅建筑总数(栋)",
|
|
|
- // unitNum: list.zzjz,
|
|
|
- // },
|
|
|
- // ];
|
|
|
});
|
|
|
},
|
|
|
resetForm() {
|
|
@@ -148,7 +128,7 @@
|
|
|
<div class="maintenance-supervision_header">
|
|
|
<div class="select-item">
|
|
|
<el-select v-model="value" placeholder="请选择">
|
|
|
- <el-option :value="item.qx" :label="item.qx" v-for="(item, index) in options"
|
|
|
+ <el-option :value="item.areaTitle" :label="item.areaTitle" v-for="(item, index) in options"
|
|
|
:key="index">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -177,7 +157,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <basic-table :data="options" @row-click="rowClickHandler" style="text-align: center">
|
|
|
+ <basic-table :data="tableData" @row-click="rowClickHandler" style="text-align: center">
|
|
|
<el-table-column type="index" label="序号"> </el-table-column>
|
|
|
<el-table-column prop="qx" label="区域" show-overflow-tooltip>
|
|
|
</el-table-column>
|