Browse Source

新增角色级别

beijing
jingbowen 2 years ago
parent
commit
097c528479
  1. 2
      src/app/system-management/role/addrole/addrole.component.ts
  2. 2
      src/app/system-management/role/editrole/editrole.component.ts

2
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]],

2
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({

Loading…
Cancel
Save