|
|
|
@ -37,6 +37,9 @@ export class RoleComponent implements OnInit {
|
|
|
|
|
this.listOfData = data.result.items |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
getAllMenus() { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
addRole(): void { |
|
|
|
|
const modal = this.modal.create({ |
|
|
|
@ -74,18 +77,8 @@ export class RoleComponent implements OnInit {
|
|
|
|
|
}); |
|
|
|
|
const instance = modal.getContentComponent(); |
|
|
|
|
modal.afterOpen.subscribe(() => console.log('[afterOpen] emitted!')); |
|
|
|
|
// Return a result when closed
|
|
|
|
|
modal.afterClose.subscribe(result => console.log('[afterClose] The result is:', result)); |
|
|
|
|
} |
|
|
|
|
optionList = []; |
|
|
|
|
//获取权限列表
|
|
|
|
|
loadMore() { |
|
|
|
|
this.http.get('/api/services/app/Role/GetAllPermissions').subscribe((data: any) => { |
|
|
|
|
this.optionList = data.result.items |
|
|
|
|
// this.modal.containerInstance.config.nzOkLoading = false
|
|
|
|
|
// console.log('所有权限',data)
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
edit(item) { |
|
|
|
|
const modal = this.modal.create({ |
|
|
|
@ -132,6 +125,19 @@ export class RoleComponent implements OnInit {
|
|
|
|
|
modal.afterClose.subscribe(result => console.log('[afterClose] The result is:', result)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
optionList = []; |
|
|
|
|
//获取权限列表
|
|
|
|
|
loadMore() { |
|
|
|
|
this.http.get('/api/services/app/Role/GetAllPermissions').subscribe((data: any) => { |
|
|
|
|
this.optionList = data.result.items |
|
|
|
|
// this.modal.containerInstance.config.nzOkLoading = false
|
|
|
|
|
// console.log('所有权限',data)
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delete(item) { |
|
|
|
|
console.log(item) |
|
|
|
|
this.modal.confirm({ |
|
|
|
|