diff --git a/src/views/modules/base/community/communityForm.vue b/src/views/modules/base/community/communityForm.vue index 542d2549b..dfb7c1686 100644 --- a/src/views/modules/base/community/communityForm.vue +++ b/src/views/modules/base/community/communityForm.vue @@ -267,8 +267,10 @@ export default { let { latitude, longitude } = this.$store.state.user; this.formType = type if (row) { + console.log(row); this.dataForm = JSON.parse(JSON.stringify(row)) this.dataForm.neighborHoodId = this.dataForm.id + this.dataForm.propertyId = this.dataForm.propertyList[0].id this.neighborHoodId = this.dataForm.neighborHoodId this.quartersType = this.dataForm.quartersType diff --git a/src/views/modules/base/community/roomDetail.vue b/src/views/modules/base/community/roomDetail.vue index 6f11eb824..20ea4f0ef 100644 --- a/src/views/modules/base/community/roomDetail.vue +++ b/src/views/modules/base/community/roomDetail.vue @@ -161,26 +161,23 @@ export default { }, async handleTuomin (type) { - const url = "/data/aggregator/epmetuser/detailByType"; + const url = `/actual/base/communityHouse/getHouseInfoById/${this.houseId}`; - const { data, code, msg } = await requestPost(url, { - id: this.houseId, - type: "checkHouse", - }); + const { data, code, msg } = await requestPost(url); if (code === 0) { if (type === "phone") { - this.$set(this.dataForm, "showOwnerPhone", data.mobile); + this.$set(this.dataForm, "showOwnerPhone", data.showOwnerPhone); this.showFlagMobileBtn = !this.showFlagMobileBtn if(this.showFlagMobileBtn){ - this.$set(this.dataForm, 'showOwnerPhone', data.mobile.substr(0,3) +'****'+ data.mobile.substr(7,4) ) + this.$set(this.dataForm, 'showOwnerPhone', data.showOwnerPhone.substr(0,3) +'****'+ data.showOwnerPhone.substr(7,4) ) } } if (type === "idcard") { - this.$set(this.dataForm, "showOwnerIdCard", data.idCard); + this.$set(this.dataForm, "showOwnerIdCard", data.showOwnerIdCard); this.showFlagIdCardBtn = !this.showFlagIdCardBtn if(this.showFlagIdCardBtn){ - this.$set(this.dataForm, 'showOwnerIdCard', data.idCard.substr(0,11) +'****'+ data.idCard.substr(16,2) ) + this.$set(this.dataForm, 'showOwnerIdCard', data.showOwnerIdCard.substr(0,11) +'****'+ data.showOwnerIdCard.substr(16,2) ) } } } else {