This commit is contained in:
Taric Xin
2022-02-22 17:11:48 +08:00
parent 12be5d37b5
commit 2d185ebd19
3 changed files with 10 additions and 7 deletions

View File

@ -25,9 +25,7 @@ export class SettingMenuComponent implements OnInit, OnChanges {
@Input() authorityAssistId: any[] = [];
@Input() roleId: any;
@Output() changeData = new EventEmitter();
constructor(public service: SystemService, private cdr: ChangeDetectorRef, private envSrv: EAEnvironmentService) {
this.getAllFunction();
}
constructor(public service: SystemService, private cdr: ChangeDetectorRef, private envSrv: EAEnvironmentService) {}
ngOnChanges(changes: SimpleChanges): void {
if (changes.isAuthorityIdDTOList) {
if (this.type === 'edit') {
@ -39,7 +37,9 @@ export class SettingMenuComponent implements OnInit, OnChanges {
}
}
ngOnInit() {}
ngOnInit() {
this.getAllFunction();
}
getAllFunction() {
this.service
.request(this.service.$api_getAllFunctionInfoByAppId, { appId: this.appId || this.envSrv.env.appId }, 'POST', true, 'FORM')

View File

@ -1,4 +1,4 @@
<page-header-wrapper title="角色管理">
<page-header-wrapper [title]="params.title">
</page-header-wrapper>
<nz-card class="search-box">

View File

@ -36,6 +36,7 @@ export class RoleManagementComponent implements OnInit {
title: '创建时间',
index: 'createTime',
type: 'date',
className: 'text-left',
sort: true
},
{
@ -61,7 +62,8 @@ export class RoleManagementComponent implements OnInit {
deleteUrl: this.service.$api_dalete_role,
infoUrl: this.service.$api_getRoleInfo,
addUrl: this.service.$api_save_role,
updateUrl: this.service.$api_update_role
updateUrl: this.service.$api_update_role,
title:'角色管理'
};
constructor(public service: SystemService, private nzModalService: NzModalService, private route: ActivatedRoute) {
@ -75,7 +77,8 @@ export class RoleManagementComponent implements OnInit {
infoUrl: this.service.$api_getRoleInfo,
addUrl: this.service.$api_save_role,
updateUrl: this.service.$api_update_role,
appId: 'A48F72F0A304427F921794BAD86B3522'
appId: 'A48F72F0A304427F921794BAD86B3522',
title:'企业角色管理'
};
}
}