|
|
|
@ -17,13 +17,16 @@ export class UserComponent implements OnInit {
|
|
|
|
|
constructor(private fb: FormBuilder, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService, private http: HttpClient, private toTree: TreeService) { } |
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
console.log(JSON.parse(sessionStorage.getItem('userdata')).organization.id); |
|
|
|
|
|
|
|
|
|
this.validateForm = this.fb.group({ |
|
|
|
|
search: [null] |
|
|
|
|
}); |
|
|
|
|
this.getAllUsers() |
|
|
|
|
this.getAllOrganization() |
|
|
|
|
// this.getAllUsers()
|
|
|
|
|
|
|
|
|
|
this.getAllRoles() |
|
|
|
|
this.getAllOrganization() |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
nzSelectedKeys: any[] = [] |
|
|
|
|
defaultExpandedKeys = []; |
|
|
|
@ -42,7 +45,7 @@ export class UserComponent implements OnInit {
|
|
|
|
|
MaxResultCount: String(this.MaxResultCount), |
|
|
|
|
OrganizaiotnId: this.OrganizaiotnId |
|
|
|
|
} |
|
|
|
|
console.log(this.OrganizaiotnId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.http.get('/api/services/app/User/GetAll', { |
|
|
|
|
params: params |
|
|
|
@ -93,6 +96,9 @@ export class UserComponent implements OnInit {
|
|
|
|
|
}); |
|
|
|
|
this.nodes = [...this.toTree.toTree(data.result.items)] |
|
|
|
|
resolve(data) |
|
|
|
|
this.getAllUsers() |
|
|
|
|
this.defaultExpandedKeys = [this.nodes[0].id] |
|
|
|
|
this.defaultExpandedKeys = [...this.defaultExpandedKeys] |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|