|
|
|
@ -29,6 +29,7 @@ export class UsermanagementComponent implements OnInit {
|
|
|
|
|
public snackBar: MatSnackBar, |
|
|
|
|
private tree: TreeService |
|
|
|
|
) {} |
|
|
|
|
|
|
|
|
|
private _transformer = (node, level: number) => { |
|
|
|
|
//初始化tree
|
|
|
|
|
return { |
|
|
|
@ -59,7 +60,7 @@ export class UsermanagementComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
async ngOnInit() { |
|
|
|
|
await this.getAllMechanism(); |
|
|
|
|
console.log(88888, this.treedata); |
|
|
|
|
|
|
|
|
|
this.userMechanism = this.treedata[0].id; |
|
|
|
|
|
|
|
|
|
this.initData(); |
|
|
|
@ -136,6 +137,7 @@ export class UsermanagementComponent implements OnInit {
|
|
|
|
|
Name: this.userLogin || "", |
|
|
|
|
RealName: this.userName || "", |
|
|
|
|
OrganizationId: this.userMechanism || "", |
|
|
|
|
HasChildren: "true", |
|
|
|
|
PageNumber: "1", |
|
|
|
|
}; |
|
|
|
|
this.http.get("/api/Users", { params: data }).subscribe((data: any[]) => { |
|
|
|
@ -152,6 +154,7 @@ export class UsermanagementComponent implements OnInit {
|
|
|
|
|
Name: this.userLogin || "", |
|
|
|
|
RealName: this.userName || "", |
|
|
|
|
OrganizationId: this.userMechanism || "", |
|
|
|
|
HasChildren: "true", |
|
|
|
|
PageNumber: String(this.pageNumber), |
|
|
|
|
}; |
|
|
|
|
this.http.get("/api/Users", { params: data }).subscribe((data: any[]) => { |
|
|
|
|