Browse Source

修改居民信息222

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

6
src/views/components/editResi.vue

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

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

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

Loading…
Cancel
Save