Browse Source

修改居民信息222

shibei_master
13176889840 4 years ago
parent
commit
7f3942dfd6
  1. 6
      src/views/components/editResi.vue
  2. 36
      src/views/modules/base/resi.vue

6
src/views/components/editResi.vue

@ -472,7 +472,6 @@ export default {
this.addList = [...this.mutiList]
// console.log('addList----111', this.addList)
}
// } this.addList.push(this.addCount++)
if (this.fixed) {
this.getGridList()
this.getValiheList()
@ -483,11 +482,6 @@ export default {
},
methods: {
initForm () {
// console.log('formInfo', this.formInfo)
// if (Object.keys(this.formInfo).length > 0) {
// this.form = { ...this.formInfo }
// return
// }
this.formList.forEach(async item => {
if (item.optionSourceType === 'remote') {
await this.getOptionsLists(item.optionSourceValue).then(res => {

36
src/views/modules/base/resi.vue

@ -266,8 +266,8 @@ export default {
},
async handleEdit (row) {
this.disabled = false
await this.getFormList()
this.getrowInfo(row.icResiUserId)
await this.getFormList('edit')
await this.getrowInfo(row.icResiUserId)
},
async handleAdd () {
await this.getFormList()
@ -588,7 +588,7 @@ export default {
return this.$message.error('网络错误')
})
},
async getFormList () {
async getFormList (type) {
await this.$http
.post('/oper/customize/icform/getcustomerform', { formCode: 'resi_base_info', dynamic: true })
.then(({ data: res }) => {
@ -598,23 +598,25 @@ export default {
console.log('获取详情成功getFormList')
let { itemList, groupList } = res.data
this.activeName = 'group' + res.data.groupList[0].groupId
itemList.forEach(async item => {
if (item.optionSourceType === 'remote') {
await this.getOptionsList(item.optionSourceValue).then(res => {
item.options = res
})
}
})
groupList.forEach(item => {
item.itemList.forEach(async n => {
n.tableName = item.tableName
if (n.optionSourceType === 'remote') {
await this.getOptionsList(n.optionSourceValue).then(res => {
n.options = res
if (type !== 'edit') {
itemList.forEach(async item => {
if (item.optionSourceType === 'remote') {
await this.getOptionsList(item.optionSourceValue).then(res => {
item.options = res
})
}
})
})
groupList.forEach(item => {
item.itemList.forEach(async n => {
n.tableName = item.tableName
if (n.optionSourceType === 'remote') {
await this.getOptionsList(n.optionSourceValue).then(res => {
n.options = res
})
}
})
})
}
this.formList = itemList
this.tabsList = groupList
}

Loading…
Cancel
Save