Browse Source

新增房屋提示小区id为空bug

feature
mk 2 years ago
parent
commit
16c4b9151e
  1. 8
      src/views/modules/base/community/community.vue
  2. 4
      src/views/modules/base/community/roomForm.vue

8
src/views/modules/base/community/community.vue

@ -817,14 +817,16 @@ export default {
console.log(this.selTreeObj,'传给子组件'); console.log(this.selTreeObj,'传给子组件');
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$refs["ref_buildingTable"].loadTable("tree", this.selTreeObj); this.$refs["ref_buildingTable"].loadTable("tree", this.selTreeObj);
this.buildingId = this.selTreeObj.id;
this.neighborHoodId = this.selTreeObj.pid;
}) })
this.selAgencyId = ""; this.selAgencyId = "";
this.selGridId = ""; this.selGridId = "";
await this.getValiheList(); await this.getValiheList();
this.neighborHoodId = this.selTreeObj.pid;
await this.getBuildList(); await this.getBuildList();
await nextTick(2000); // await nextTick(2000);
this.buildingId = this.selTreeObj.id; // this.buildingId = this.selTreeObj.id;
await this.getUniList(); await this.getUniList();
this.vDisabled = true; this.vDisabled = true;
this.bDisabled = true; this.bDisabled = true;

4
src/views/modules/base/community/roomForm.vue

@ -11,7 +11,7 @@
<el-form-item label="所属楼栋" <el-form-item label="所属楼栋"
style="display: block"> style="display: block">
<span>{{agencyObj.neighborHoodName}}-{{ dataForm.buildingName }}</span> <span>{{agencyObj.label}}</span>
</el-form-item> </el-form-item>
<el-form-item label="单元号" <el-form-item label="单元号"
@ -257,7 +257,7 @@ export default {
} else { } else {
this.dataForm.neighborHoodId = this.agencyObj.neighborHoodId this.dataForm.neighborHoodId = this.agencyObj.pid
this.dataForm.buildingId = this.agencyObj.id this.dataForm.buildingId = this.agencyObj.id
} }

Loading…
Cancel
Save