From 913c20f2b4b47f89a7349fcbad97f6bbd00d151a Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Thu, 2 Jun 2022 16:06:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=BB=84=E7=BB=87=E5=8C=BA=E5=88=92=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/organization/organization.vue | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index fbfe3bd2..70303212 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -463,12 +463,12 @@ - + + :value="item.areaCode"> @@ -537,12 +537,12 @@ - + + :value="item.areaCode"> @@ -1932,19 +1932,27 @@ export default { }, handelZoing(val){ - this.agencyForm.level = val.level - this.agencyForm.areaName = val.areaName - this.agencyForm.areaCode = val.areaCode - + this.zonings.forEach(item => { + if (item.areaCode == val) { + this.agencyForm.level = item.level + this.agencyForm.areaName = item.areaName + this.agencyForm.areaCode = item.areaCode + } + }) }, handelStreeOrCommunityZoing(val){ - this.OrgDetailsForm.level = val.level - this.OrgDetailsForm.areaName = val.areaName - this.OrgDetailsForm.areaCode = val.areaCode + this.zonings.forEach(item => { + if (item.areaCode == val) { + this.OrgDetailsForm.level = item.level + this.OrgDetailsForm.areaName = item.areaName + this.OrgDetailsForm.areaCode = item.areaCode + } + }) }, addAgency(row){ this.createAgencyDialogFlag = true + this.addNewAgencyRest() this.getUser() }, // 新增组织确定按钮