From 2d185ebd19bef685a1222d5721b3aca2f18878b6 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Tue, 22 Feb 2022 17:11:48 +0800 Subject: [PATCH] edit --- .../components/role-management/menu/menu.component.ts | 8 ++++---- .../role-management/role-management.component.html | 2 +- .../role-management/role-management.component.ts | 7 +++++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app/routes/sys-setting/components/role-management/menu/menu.component.ts b/src/app/routes/sys-setting/components/role-management/menu/menu.component.ts index 68b63dcb..23dfd6f7 100644 --- a/src/app/routes/sys-setting/components/role-management/menu/menu.component.ts +++ b/src/app/routes/sys-setting/components/role-management/menu/menu.component.ts @@ -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') diff --git a/src/app/routes/sys-setting/components/role-management/role-management.component.html b/src/app/routes/sys-setting/components/role-management/role-management.component.html index 8ebc4ac9..c50a2e16 100644 --- a/src/app/routes/sys-setting/components/role-management/role-management.component.html +++ b/src/app/routes/sys-setting/components/role-management/role-management.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/routes/sys-setting/components/role-management/role-management.component.ts b/src/app/routes/sys-setting/components/role-management/role-management.component.ts index df6ede5b..cc208d66 100644 --- a/src/app/routes/sys-setting/components/role-management/role-management.component.ts +++ b/src/app/routes/sys-setting/components/role-management/role-management.component.ts @@ -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:'企业角色管理' }; } }