From 40b851c2c0e3c47548303d842d601c07ac52b840 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Thu, 21 Jul 2022 11:13:22 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E7=BC=96=E8=BE=91=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8E=BB=E9=99=A4=E5=A4=84=E7=BD=AE=E4=BA=BA=E8=A7=92?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/system-management/user/user.component.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/system-management/user/user.component.ts b/src/app/system-management/user/user.component.ts index 5b860c9..418e70f 100644 --- a/src/app/system-management/user/user.component.ts +++ b/src/app/system-management/user/user.component.ts @@ -251,6 +251,14 @@ export class UserComponent implements OnInit { nzOnOk: async () => { if (instance.validateForm.valid) { await new Promise(resolve => { + + for (let index = 0; index < instance.validateForm.value.role2.length; index++) { + const element = instance.validateForm.value.role2[index]; + if (element.indexOf('HANDLE') != -1) { + instance.validateForm.value.role2.splice(index, 1) + index-- + } + } let roleNames = [...instance.validateForm.value.role, ...instance.validateForm.value.role2] let body = { id: data.id,