Browse Source

党员信息报错

feature
mk 1 year ago
parent
commit
14b376967e
  1. 2
      src/views/components/resiExpand/editExpand.vue

2
src/views/components/resiExpand/editExpand.vue

@ -296,10 +296,12 @@ export default {
this.form[childItem.pformName][childItem.formName] = childItem.value || []; this.form[childItem.pformName][childItem.formName] = childItem.value || [];
} else if (childItem.itemType === 'cascader1') { } else if (childItem.itemType === 'cascader1') {
await this.getOrgTree(); await this.getOrgTree();
if(childItem.orgPath){
let maxId = this.formList.filter(item => item.formId == 'parymemberInfoDto')[0].form[0].children.filter(item => item.formName == 'partyOrgId')[0].opction[0].id; let maxId = this.formList.filter(item => item.formId == 'parymemberInfoDto')[0].form[0].children.filter(item => item.formName == 'partyOrgId')[0].opction[0].id;
let orgId = JSON.parse(JSON.stringify(childItem.orgPath.split(':'))); let orgId = JSON.parse(JSON.stringify(childItem.orgPath.split(':')));
orgId = orgId.slice(orgId.findIndex(item => item === maxId), orgId.length - 1) orgId = orgId.slice(orgId.findIndex(item => item === maxId), orgId.length - 1)
this.form[childItem.pformName][childItem.formName] = orgId; this.form[childItem.pformName][childItem.formName] = orgId;
}
} else { } else {
this.form[childItem.pformName][childItem.formName] = childItem.value != null ? childItem.value : null; this.form[childItem.pformName][childItem.formName] = childItem.value != null ? childItem.value : null;
} }

Loading…
Cancel
Save