edit
This commit is contained in:
@ -25,9 +25,7 @@ export class SettingMenuComponent implements OnInit, OnChanges {
|
|||||||
@Input() authorityAssistId: any[] = [];
|
@Input() authorityAssistId: any[] = [];
|
||||||
@Input() roleId: any;
|
@Input() roleId: any;
|
||||||
@Output() changeData = new EventEmitter();
|
@Output() changeData = new EventEmitter();
|
||||||
constructor(public service: SystemService, private cdr: ChangeDetectorRef, private envSrv: EAEnvironmentService) {
|
constructor(public service: SystemService, private cdr: ChangeDetectorRef, private envSrv: EAEnvironmentService) {}
|
||||||
this.getAllFunction();
|
|
||||||
}
|
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
if (changes.isAuthorityIdDTOList) {
|
if (changes.isAuthorityIdDTOList) {
|
||||||
if (this.type === 'edit') {
|
if (this.type === 'edit') {
|
||||||
@ -39,7 +37,9 @@ export class SettingMenuComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {
|
||||||
|
this.getAllFunction();
|
||||||
|
}
|
||||||
getAllFunction() {
|
getAllFunction() {
|
||||||
this.service
|
this.service
|
||||||
.request(this.service.$api_getAllFunctionInfoByAppId, { appId: this.appId || this.envSrv.env.appId }, 'POST', true, 'FORM')
|
.request(this.service.$api_getAllFunctionInfoByAppId, { appId: this.appId || this.envSrv.env.appId }, 'POST', true, 'FORM')
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<page-header-wrapper title="角色管理">
|
<page-header-wrapper [title]="params.title">
|
||||||
</page-header-wrapper>
|
</page-header-wrapper>
|
||||||
|
|
||||||
<nz-card class="search-box">
|
<nz-card class="search-box">
|
||||||
|
|||||||
@ -36,6 +36,7 @@ export class RoleManagementComponent implements OnInit {
|
|||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
index: 'createTime',
|
index: 'createTime',
|
||||||
type: 'date',
|
type: 'date',
|
||||||
|
className: 'text-left',
|
||||||
sort: true
|
sort: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -61,7 +62,8 @@ export class RoleManagementComponent implements OnInit {
|
|||||||
deleteUrl: this.service.$api_dalete_role,
|
deleteUrl: this.service.$api_dalete_role,
|
||||||
infoUrl: this.service.$api_getRoleInfo,
|
infoUrl: this.service.$api_getRoleInfo,
|
||||||
addUrl: this.service.$api_save_role,
|
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) {
|
constructor(public service: SystemService, private nzModalService: NzModalService, private route: ActivatedRoute) {
|
||||||
@ -75,7 +77,8 @@ export class RoleManagementComponent implements OnInit {
|
|||||||
infoUrl: this.service.$api_getRoleInfo,
|
infoUrl: this.service.$api_getRoleInfo,
|
||||||
addUrl: this.service.$api_save_role,
|
addUrl: this.service.$api_save_role,
|
||||||
updateUrl: this.service.$api_update_role,
|
updateUrl: this.service.$api_update_role,
|
||||||
appId: 'A48F72F0A304427F921794BAD86B3522'
|
appId: 'A48F72F0A304427F921794BAD86B3522',
|
||||||
|
title:'企业角色管理'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user