From 58cf679b3d8bf63bba865d7ca069544a180fdad9 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Wed, 26 Jun 2024 15:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=80=9A=E8=AE=AF=E5=BD=95?= =?UTF-8?q?=E8=81=8C=E8=B4=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/organization/organization.vue | 74 +++++-------------- 1 file changed, 20 insertions(+), 54 deletions(-) diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 62c117226..dcbee211b 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -452,7 +452,7 @@ - - + --> @@ -578,7 +578,7 @@ - - + --> - + + + + + + item.selected).map(item => item.roleId); - // 已有的权限(职责) - let existedDutyArr = []; - data.roleList.forEach(function (sysDuty) { - if (sysDuty.selected === true) { - existedDutyArr.push(sysDuty.roleId); - } - }); - this.peoForm.dutyList = existedDutyArr; // 已有的权限(角色) let existedRoleArr = []; data.newRoleList.forEach(function (sysRole) { @@ -2161,14 +2142,6 @@ export default { // this.peoForm.gender = data.gender === 1 ? '男' : '女' this.peoForm.gender = data.gender; this.peoForm.idCard = data.idCard; - // 已有的权限(职责) - let existedDutyArr = []; - data.roleList.forEach(function (sysDuty) { - if (sysDuty.selected === true) { - existedDutyArr.push(sysDuty.roleId); - } - }); - this.peoForm.duty = existedDutyArr; // 已有的权限(角色) let existedRoleArr = []; data.newRoleList.forEach(function (sysRole) { @@ -2234,14 +2207,6 @@ export default { this.peoForm.gender = data.gender; this.peoForm.post = data.workType; this.peoForm.idCard = data.idCard; - // 已有的权限(职责) - let existedDutyArr = []; - data.roleList.forEach(function (sysDuty) { - if (sysDuty.selected === true) { - existedDutyArr.push(sysDuty.roleId); - } - }); - this.peoForm.duty = existedDutyArr; // 已有的权限(角色) let existedRoleArr = []; data.newRoleList.forEach(function (sysRole) { @@ -2295,15 +2260,16 @@ export default { }; const { data, code, msg } = await requestPost(url, params); - debugger if (code === 0) { this.peoForm.name = data.name; this.peoForm.mobile = data.mobile.substr(0, 3) + "****" + data.mobile.substr(7); this.peoForm.activeTime = data.activeTime; - this.peoForm.duty = data.roles; this.peoForm.idCard = data.idCard; this.peoForm.zuzhi = data.orgName; + let existedRoleArr = []; + this.peoForm.szsqRoles = data.szsqRoles; + this.peoForm.newRoles = existedRoleArr; if (data.enableFlag === "enable") { this.peoForm.disableFlag = "已启用"; } else {