From 097c5284790ecc938c24d1dfbcf9045ec1558e86 Mon Sep 17 00:00:00 2001 From: jingbowen <970029315@qq.com> Date: Thu, 16 Feb 2023 09:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A7=92=E8=89=B2=E7=BA=A7?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/system-management/role/addrole/addrole.component.ts | 2 +- src/app/system-management/role/editrole/editrole.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/system-management/role/addrole/addrole.component.ts b/src/app/system-management/role/addrole/addrole.component.ts index 7418085..0edb055 100644 --- a/src/app/system-management/role/addrole/addrole.component.ts +++ b/src/app/system-management/role/addrole/addrole.component.ts @@ -30,7 +30,7 @@ export class AddroleComponent implements OnInit { let level = JSON.parse(sessionStorage.getItem("userdata")).organization .level; this.levelList = this.levelList.filter((e) => { - return e.level > level || e.level == 0; + return e.level >= level || e.level == 0; }); this.validateForm = this.fb.group({ name: [null, [Validators.required]], diff --git a/src/app/system-management/role/editrole/editrole.component.ts b/src/app/system-management/role/editrole/editrole.component.ts index 0138637..9cff536 100644 --- a/src/app/system-management/role/editrole/editrole.component.ts +++ b/src/app/system-management/role/editrole/editrole.component.ts @@ -37,7 +37,7 @@ export class EditroleComponent implements OnInit { let level = JSON.parse(sessionStorage.getItem("userdata")).organization .level; this.levelList = this.levelList.filter((e) => { - return e.level > level || e.level == 0; + return e.level >= level || e.level == 0; }); this.getMenus(); this.validateForm = this.fb.group({