|
|
|
@ -34,7 +34,10 @@ export class UserPermissionsComponent {
|
|
|
|
this.defaultPermissions().subscribe((data: PermissionNode[]) => {
|
|
|
|
this.defaultPermissions().subscribe((data: PermissionNode[]) => {
|
|
|
|
this.permissions = data;
|
|
|
|
this.permissions = data;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.getAllUsers(HiddenValues.VAC_USER);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(){
|
|
|
|
|
|
|
|
this.getAllUsers();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
defaultPermissions(): Observable<PermissionNode[]> {
|
|
|
|
defaultPermissions(): Observable<PermissionNode[]> {
|
|
|
|
@ -111,18 +114,15 @@ export class UserPermissionsComponent {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getAllUsers(userType: string) {
|
|
|
|
getAllUsers() {
|
|
|
|
let porOrgacode = this.credentialService.getPorOrgacode();
|
|
|
|
this.httpService.requestGET<any[]>(URIKey.GET_ALL_USER_URI).subscribe((response) => {
|
|
|
|
const params = new HttpParams().set('porOrgacode', porOrgacode)
|
|
|
|
if (!(response instanceof HttpErrorResponse)) {
|
|
|
|
.append('userType', userType);
|
|
|
|
this.users = response.map(item => ({
|
|
|
|
// this.httpService.requestGET<any[]>(URIKey.GET_ALL_USER_URI, params).subscribe((response) => {
|
|
|
|
userName: item.userFullname,
|
|
|
|
// if (!(response instanceof HttpErrorResponse)) {
|
|
|
|
userId: item.userId,
|
|
|
|
// this.users = response.map(item => ({
|
|
|
|
}));
|
|
|
|
// userName: item.userName,
|
|
|
|
}
|
|
|
|
// userId: item.userId,
|
|
|
|
});
|
|
|
|
// }));
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onUserChange() {
|
|
|
|
onUserChange() {
|
|
|
|
|