Browse Source

Merge branch 'dev-220411' into test

shibei_master
jiangyy 3 years ago
parent
commit
543f2d0764
  1. 13
      src/views/modules/base/community/roomForm.vue
  2. 1
      src/views/modules/base/community/roomTable.vue

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

@ -11,7 +11,7 @@
<el-form-item label="所属楼栋" <el-form-item label="所属楼栋"
label-width="150px" label-width="150px"
style="display: block"> style="display: block">
<span>{{ agencyObj.neighborHoodName }}{{agencyObj.label}}</span> <span>{{ agencyObj.neighborHoodName }}{{agencyObj.buildingName}}</span>
</el-form-item> </el-form-item>
<el-form-item label="单元号" <el-form-item label="单元号"
@ -165,12 +165,12 @@ export default {
}, },
methods: { methods: {
async initForm (type, row, agencyObj) { async initForm (type, row) {
this.$refs.ref_form.resetFields(); this.$refs.ref_form.resetFields();
this.agencyObj = agencyObj this.agencyObj = row
this.dataForm.neighborHoodId = agencyObj.neighborHoodId this.dataForm.neighborHoodId = this.agencyObj.neighborHoodId
this.dataForm.buildingId = agencyObj.id this.dataForm.buildingId = this.agencyObj.buildingId
this.formType = type this.formType = type
if (row) { if (row) {
@ -178,6 +178,7 @@ export default {
this.houseId = this.dataForm.houseId this.houseId = this.dataForm.houseId
this.dataForm.buildingUnitId = this.dataForm.unitNumKey this.dataForm.buildingUnitId = this.dataForm.unitNumKey
this.dataForm = { ... this.dataForm }
this.houseType = this.dataForm.houseTypeKey this.houseType = this.dataForm.houseTypeKey
this.purpose = this.dataForm.purposeKey this.purpose = this.dataForm.purposeKey
this.rentFlag = parseInt(this.dataForm.rentFlagKey) this.rentFlag = parseInt(this.dataForm.rentFlagKey)
@ -199,7 +200,7 @@ export default {
const url = '/gov/org/building/buildingunitlist' const url = '/gov/org/building/buildingunitlist'
let params = { let params = {
buildingId: this.agencyObj.id buildingId: this.agencyObj.buildingId
} }
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)

1
src/views/modules/base/community/roomTable.vue

@ -244,6 +244,7 @@ export default {
this.ownerPhone = null this.ownerPhone = null
this.rentFlag = null this.rentFlag = null
} else if (source === 'search') {// } else if (source === 'search') {//
this.ownerName = ownerName this.ownerName = ownerName
this.ownerPhone = ownerPhone this.ownerPhone = ownerPhone
this.rentFlag = rentFlag this.rentFlag = rentFlag

Loading…
Cancel
Save