|
@@ -91,7 +91,6 @@
|
|
</el-col>
|
|
</el-col>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
-
|
|
|
|
<el-table v-loading="loading" :data="buildingList" @selection-change="handleSelectionChange">
|
|
<el-table v-loading="loading" :data="buildingList" @selection-change="handleSelectionChange">
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<!-- <el-table-column label="楼栋Id" align="center" prop="buildingId" /> -->
|
|
<!-- <el-table-column label="楼栋Id" align="center" prop="buildingId" /> -->
|
|
@@ -213,7 +212,8 @@ export default {
|
|
message: '请选择社区',
|
|
message: '请选择社区',
|
|
trigger: 'change'
|
|
trigger: 'change'
|
|
}],
|
|
}],
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ addr: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -234,6 +234,7 @@ export default {
|
|
/** 查询地址列表 */
|
|
/** 查询地址列表 */
|
|
getAddrList() {
|
|
getAddrList() {
|
|
listAddr().then(response => {
|
|
listAddr().then(response => {
|
|
|
|
+ this.addr = response.data;
|
|
this.addrOptions = this.handleTree(response.data, "addrId");
|
|
this.addrOptions = this.handleTree(response.data, "addrId");
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -254,6 +255,7 @@ export default {
|
|
delete node.children;
|
|
delete node.children;
|
|
}
|
|
}
|
|
return {
|
|
return {
|
|
|
|
+ // id: node.interId,
|
|
id: node.addrId,
|
|
id: node.addrId,
|
|
label: node.name,
|
|
label: node.name,
|
|
children: node.children,
|
|
children: node.children,
|
|
@@ -320,7 +322,9 @@ export default {
|
|
this.reset();
|
|
this.reset();
|
|
const buildingId = row.buildingId || this.ids
|
|
const buildingId = row.buildingId || this.ids
|
|
getBuilding(buildingId).then(response => {
|
|
getBuilding(buildingId).then(response => {
|
|
|
|
+ const data = this.addr.find(e => e.interId == response.data.estateId);
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
|
|
+ this.form.addrId = data.addrId;
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = "修改楼栋管理";
|
|
this.title = "修改楼栋管理";
|
|
});
|
|
});
|
|
@@ -329,7 +333,6 @@ export default {
|
|
submitForm() {
|
|
submitForm() {
|
|
this.$refs["form"].validate(valid => {
|
|
this.$refs["form"].validate(valid => {
|
|
this.form.number = this.form.number;
|
|
this.form.number = this.form.number;
|
|
- console.log(this.form);
|
|
|
|
if (valid) {
|
|
if (valid) {
|
|
if (this.form.buildingId != null) {
|
|
if (this.form.buildingId != null) {
|
|
updateBuilding(this.form).then(response => {
|
|
updateBuilding(this.form).then(response => {
|