From 404695af4ae383a4a53d42a7895e7a59e2439447 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 12 Mar 2024 11:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=9A=E7=BB=84=E7=BB=87=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8A=A0=E6=A0=B9=E7=BB=84=E7=BB=87id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/editResi.vue | 4 ++++ src/views/components/resiExpand/editExpand.vue | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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) {