Browse Source

新增角色级别

beijing
jingbowen 2 years ago
parent
commit
bb037b911a
  1. 5
      src/app/system-management/role/role.component.ts

5
src/app/system-management/role/role.component.ts

@ -45,8 +45,7 @@ export class RoleComponent implements OnInit {
}).subscribe((data: any) => {
console.log('角色列表', data.result.items)
let level=JSON.parse(sessionStorage.getItem('userdata')).organization.level
this.listOfData=[]
data.result.items.forEach(ele=>{
if(ele.organizationsLevel>=level||ele.organizationsLevel==0){
this.listOfData.push(ele)
@ -161,7 +160,7 @@ export class RoleComponent implements OnInit {
}).subscribe(data => {
this.message.create('success', '修改成功!');
this.getAllRoles()
return true
resolve(data)
}, err => {
this.message.create('warning', '分配菜单错误!');

Loading…
Cancel
Save