From 623eb4fe0d07f63ea3f0aafc5a92e873f4e4f771 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 10 Oct 2023 17:46:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=AE=AF=E5=BD=95=E8=81=8C=E8=B4=A3?= =?UTF-8?q?=E5=9B=9E=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/organization/organization.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index d7e4ae245..c564b76a8 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -2002,7 +2002,7 @@ export default { this.peoForm.gender = data.gender; this.peoForm.post = data.workType; this.peoForm.idCard = data.idCard; - this.peoForm.duty = data.roleList.map(item=>item.roleId); + this.peoForm.duty = data.roleList.filter(item => item.selected).map(item => item.roleId); // 已有的权限(职责) let existedDutyArr = []; data.roleList.forEach(function (sysDuty) {