diff --git a/src/views/components/editResi.vue b/src/views/components/editResi.vue index 3c6717f5c..a5b804c16 100644 --- a/src/views/components/editResi.vue +++ b/src/views/components/editResi.vue @@ -1698,6 +1698,10 @@ export default { formData && Object.keys(formData).includes(formName) ) { + if(this.footerInputList[i].children[index].itemType == 'cascader1'){ + this.footerInputList[i].children[index].orgPath = + formData.partyOrgIdPath || null; + } this.footerInputList[i].children[index].value = formData[formName] || null; this.footerInputList[i].children[index].id = diff --git a/src/views/components/resiExpand/editExpand.vue b/src/views/components/resiExpand/editExpand.vue index 9b7cd86db..5db8656ec 100644 --- a/src/views/components/resiExpand/editExpand.vue +++ b/src/views/components/resiExpand/editExpand.vue @@ -201,7 +201,8 @@ export default { }, changId:null, changPid:null, - changType:null + changType:null, + partyOrgIdPath:null }; }, props: { @@ -243,7 +244,8 @@ export default { this.form[item.pformName].id = item.id if (item.itemType == 'checkbox') { this.form[item.pformName][item.formName] = item.value || [] - } else if (item.itemType == 'cascader1') { + } else if (item.itemType == 'cascader1' && item.orgPath) { + this.partyOrgIdPath = item.orgPath.split(':')[0] await this.getOrgTree() this.form[item.pformName][item.formName] = item.value || null } else { @@ -305,7 +307,7 @@ export default { }, async getOrgTree() { try { - const { data } = await requestGet('/actual/base/party/org/listPartyOrgTreeRoot4Select', { depth: 8 }) + const { data } = await requestGet('/actual/base/party/org/listPartyOrgTreeRoot4Select', { partyOrgId:this.partyOrgIdPath,depth:8 }) this.formList.forEach(c => { if (c.formId == "parymemberInfoDto") { for (let i of c.form[0].children) {