diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue index 7ee050f3f..76138cba9 100644 --- a/src/views/modules/base/community/community.vue +++ b/src/views/modules/base/community/community.vue @@ -48,7 +48,7 @@ - 0) { @@ -347,6 +347,8 @@ export default { const { data, code, msg } = await requestPost(url, params) if (code === 0) { + this.openNodes = [] + this.openNodes.push(data[0].id) this.treeData = data if (!isRefresh && data.length > 0) { diff --git a/src/views/modules/base/community/roomForm.vue b/src/views/modules/base/community/roomForm.vue index 430459d7b..273ce1f7f 100644 --- a/src/views/modules/base/community/roomForm.vue +++ b/src/views/modules/base/community/roomForm.vue @@ -40,19 +40,22 @@
- + maxlength="30" + v-model="dataForm.houseCode"> - -
- - 下载 -
+ +
+ + 下载 +
- @@ -175,21 +178,21 @@ export default { houseType: '',//房屋类型【楼房,平房,别墅】 purpose: '',//房屋用途【住宅,商业,办公,工业,仓储,商住混用,其他】 rentFlag: 0,//房屋状态【是:1,否:0】 出租1、闲置2、自住 0 - ownerPhone: '', //房主电话 + ownerPhone: '', //联系方式 ownerName: '', //房主名字 ownerIdCard: '', //房主身份证 - remark: '' // 备注 + remark: '' }, - keyWords: '', - agencyObj: {}, + keyWords: '', + agencyObj: {}, - } - }, - components: {}, - mounted () { + } + }, + components: {}, + mounted () { - }, + }, methods: { async initForm (type, row, agencyObj) { @@ -344,7 +347,7 @@ export default { houseType: '1',//房屋类型【楼房,平房,别墅】 purpose: '1',//房屋用途【住宅,商业,办公,工业,仓储,商住混用,其他】 rentFlag: 0,//是否出租【是:1,否:0】 - ownerPhone: '', //房主电话 + ownerPhone: '', //联系方式 ownerName: '', //房主名字 ownerIdCard: '', //房主身份证 remark: '' // 备注 @@ -396,7 +399,7 @@ export default { ], remark: [ { required: false } - ] + ], } }, diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue index 4f87e3f31..c2fef85e4 100644 --- a/src/views/modules/base/community/roomTable.vue +++ b/src/views/modules/base/community/roomTable.vue @@ -102,7 +102,7 @@ width="90"> - + + :value="item.areaCode"> @@ -537,12 +537,12 @@ - + + :value="item.areaCode"> @@ -1932,19 +1932,27 @@ export default { }, handelZoing(val){ - this.agencyForm.level = val.level - this.agencyForm.areaName = val.areaName - this.agencyForm.areaCode = val.areaCode - + this.zonings.forEach(item => { + if (item.areaCode == val) { + this.agencyForm.level = item.level + this.agencyForm.areaName = item.areaName + this.agencyForm.areaCode = item.areaCode + } + }) }, handelStreeOrCommunityZoing(val){ - this.OrgDetailsForm.level = val.level - this.OrgDetailsForm.areaName = val.areaName - this.OrgDetailsForm.areaCode = val.areaCode + this.zonings.forEach(item => { + if (item.areaCode == val) { + this.OrgDetailsForm.level = item.level + this.OrgDetailsForm.areaName = item.areaName + this.OrgDetailsForm.areaCode = item.areaCode + } + }) }, addAgency(row){ this.createAgencyDialogFlag = true + this.addNewAgencyRest() this.getUser() }, // 新增组织确定按钮 diff --git a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue index 9b5a7b662..b7a365607 100644 --- a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue +++ b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue @@ -218,6 +218,7 @@ export default { this.optionsA.push(res.data) this.dataForm.agencyId = res.data.agencyId this.dataForm.level = res.data.level + this.getDataList() } }) .catch(() => {