|
|
@ -169,7 +169,7 @@ |
|
|
|
<script> |
|
|
|
import util from '@js/util.js'; |
|
|
|
import { Loading } from 'element-ui' // 引入Loading服务 |
|
|
|
import { requestPost } from '@/js/dai/request' |
|
|
|
import { requestPost, requestGet } from '@/js/dai/request' |
|
|
|
|
|
|
|
let loading // 加载动画 |
|
|
|
export default { |
|
|
@ -283,7 +283,7 @@ export default { |
|
|
|
this.dataForm.idCard = row.ID_CARD |
|
|
|
this.dataForm.mobile = row.MOBILE |
|
|
|
|
|
|
|
await this.loadHouseInfo(row.HOME_ID) |
|
|
|
await this.loadHouseInfo(row.HOME_ID_VALUE) |
|
|
|
|
|
|
|
this.dataForm.name = row.NAME |
|
|
|
this.dataForm.gender = row.GENDER |
|
|
@ -294,13 +294,13 @@ export default { |
|
|
|
await this.getAgencylist() |
|
|
|
|
|
|
|
}, |
|
|
|
async loadHouseInfo (homeId) { |
|
|
|
const url = "/gov/org/ichouse/" + homeId |
|
|
|
async loadHouseInfo (homeIdValue) { |
|
|
|
const url = "/gov/org/ichouse/" + homeIdValue |
|
|
|
const { data, code, msg } = await requestGet(url) |
|
|
|
if (code === 0) { |
|
|
|
this.dataForm.oldDept = '' |
|
|
|
this.dataForm.oldAddress = row.houseName |
|
|
|
this.dataForm.ownerName = row.ownerName |
|
|
|
this.dataForm.oldAddress = data.houseName |
|
|
|
this.dataForm.ownerName = data.ownerName |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|