|
|
|
@ -45,8 +45,6 @@ export class UserComponent implements OnInit {
|
|
|
|
|
MaxResultCount: String(this.MaxResultCount), |
|
|
|
|
OrganizaiotnId: this.OrganizaiotnId |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.http.get('/api/services/app/User/GetAll', { |
|
|
|
|
params: params |
|
|
|
|
}).subscribe((data: any) => { |
|
|
|
@ -91,16 +89,17 @@ export class UserComponent implements OnInit {
|
|
|
|
|
params: params |
|
|
|
|
}).subscribe((data: any) => { |
|
|
|
|
data.result.items.forEach(element => { |
|
|
|
|
if (element.id == OrganizationUnitId) { |
|
|
|
|
element.parentId = null |
|
|
|
|
} |
|
|
|
|
element.key = element.id |
|
|
|
|
element.title = element.displayName |
|
|
|
|
}); |
|
|
|
|
this.nodes = [...this.toTree.toTree(data.result.items)] |
|
|
|
|
resolve(data) |
|
|
|
|
this.getAllUsers() |
|
|
|
|
console.log(this.nodes); |
|
|
|
|
|
|
|
|
|
this.defaultExpandedKeys = [this.nodes[0].id] |
|
|
|
|
this.defaultExpandedKeys = [...this.defaultExpandedKeys] |
|
|
|
|
this.nzSelectedKeys = [this.nodes[0].id] |
|
|
|
|
this.getAllUsers() |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
@ -115,7 +114,6 @@ export class UserComponent implements OnInit {
|
|
|
|
|
this.getAllUsers() |
|
|
|
|
} |
|
|
|
|
nzClick(event: NzFormatEmitEvent) { |
|
|
|
|
console.log(event); |
|
|
|
|
this.OrganizaiotnId = event.node.origin.id |
|
|
|
|
this.getAllUsers() |
|
|
|
|
} |
|
|
|
|