|
|
@ -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,6 +598,7 @@ export default { |
|
|
|
console.log('获取详情成功getFormList') |
|
|
|
let { itemList, groupList } = res.data |
|
|
|
this.activeName = 'group' + res.data.groupList[0].groupId |
|
|
|
if (type !== 'edit') { |
|
|
|
itemList.forEach(async item => { |
|
|
|
if (item.optionSourceType === 'remote') { |
|
|
|
await this.getOptionsList(item.optionSourceValue).then(res => { |
|
|
@ -615,6 +616,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
this.formList = itemList |
|
|
|
this.tabsList = groupList |
|
|
|
} |
|
|
|