点击部门分页优化

This commit is contained in:
shimingxy 2025-09-10 18:13:01 +08:00
parent 695fccd99f
commit 9fdbefc89e
2 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,7 @@ export class SelectUserComponent implements OnInit {
activeNode(data: NzFormatEmitEvent): void { activeNode(data: NzFormatEmitEvent): void {
this.treeNodes.activated = data.node!; this.treeNodes.activated = data.node!;
this.query.params.departmentId = data.node!.key; this.query.params.departmentId = data.node!.key;
this.query.params.pageNumber = 1;
this.fetch(); this.fetch();
} }

View File

@ -340,6 +340,7 @@ export class UsersComponent implements OnInit {
activeNode(data: NzFormatEmitEvent): void { activeNode(data: NzFormatEmitEvent): void {
this.treeNodes.activated = data.node!; this.treeNodes.activated = data.node!;
this.query.params.departmentId = data.node!.key; this.query.params.departmentId = data.node!.key;
this.query.params.pageNumber = 1;
this.fetch(); this.fetch();
} }