ediut
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<se-container se-container="1">
|
<se-container se-container="1">
|
||||||
<se label="角色权限" required [labelWidth]="120">
|
<se label="角色权限" required [labelWidth]="120">
|
||||||
<app-cuc-menu #menu (changeData)="getData($event)" [type]="params.id === 0 ? 'add' : 'edit'" [roleId]="params.id"
|
<app-cuc-menu #menu (changeData)="getData($event)" [type]="params.id === 0 ? 'add' : 'edit'" [roleId]="params.id" [appId]="params.appId"
|
||||||
[isAuthorityIdDTOList]="roleInfoData.authority || []"
|
[isAuthorityIdDTOList]="roleInfoData.authority || []"
|
||||||
[authorityAssistId]="roleInfoData.authorityAssistId || []">
|
[authorityAssistId]="roleInfoData.authorityAssistId || []">
|
||||||
</app-cuc-menu>
|
</app-cuc-menu>
|
||||||
|
|||||||
@ -41,15 +41,17 @@ export class SettingMenuComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {}
|
||||||
getAllFunction() {
|
getAllFunction() {
|
||||||
this.service.request(this.service.$api_getAllFunctionInfoByAppId, { appId: this.appId }, 'POST', true, 'FORM').subscribe(res => {
|
this.service
|
||||||
// if (this.source === 'onlyRelationAuth') {
|
.request(this.service.$api_getAllFunctionInfoByAppId, { appId: this.appId || this.envSrv.env.appId }, 'POST', true, 'FORM')
|
||||||
// this.addDisabledTree(res);
|
.subscribe(res => {
|
||||||
// } else {
|
// if (this.source === 'onlyRelationAuth') {
|
||||||
// // this.addDisabledLeafTree(res);
|
// this.addDisabledTree(res);
|
||||||
// }
|
// } else {
|
||||||
this.functionList = res;
|
// // this.addDisabledLeafTree(res);
|
||||||
this.defaultCheckedKeys = this.authorityAssistId;
|
// }
|
||||||
});
|
this.functionList = res;
|
||||||
|
this.defaultCheckedKeys = this.authorityAssistId;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
addAuthority(origin: { id: any; all: any }, node: { buttonInfoList: any[] }, item?: { checked: any; functionButtonId: any }) {
|
addAuthority(origin: { id: any; all: any }, node: { buttonInfoList: any[] }, item?: { checked: any; functionButtonId: any }) {
|
||||||
if (this.authority.length && this.authority.filter(authItem => authItem.authorityId === origin.id).length) {
|
if (this.authority.length && this.authority.filter(authItem => authItem.authorityId === origin.id).length) {
|
||||||
|
|||||||
@ -56,7 +56,7 @@ export class RoleManagementComponent implements OnInit {
|
|||||||
];
|
];
|
||||||
|
|
||||||
type = 'user';
|
type = 'user';
|
||||||
params = {
|
params: any = {
|
||||||
listUrl: this.service.$api_get_role_page,
|
listUrl: this.service.$api_get_role_page,
|
||||||
deleteUrl: this.service.$api_dalete_role,
|
deleteUrl: this.service.$api_dalete_role,
|
||||||
infoUrl: this.service.$api_getRoleInfo,
|
infoUrl: this.service.$api_getRoleInfo,
|
||||||
@ -74,7 +74,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,
|
||||||
|
appId: 'A48F72F0A304427F921794BAD86B3522'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user