|
|
|
@ -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', '分配菜单错误!'); |
|
|
|
|