diff --git a/src/app/system-management/user/user.component.html b/src/app/system-management/user/user.component.html index 196c26c..86a45e2 100644 --- a/src/app/system-management/user/user.component.html +++ b/src/app/system-management/user/user.component.html @@ -56,7 +56,7 @@
- + diff --git a/src/app/system-management/user/user.component.ts b/src/app/system-management/user/user.component.ts index 3416dd2..dc1674b 100644 --- a/src/app/system-management/user/user.component.ts +++ b/src/app/system-management/user/user.component.ts @@ -36,14 +36,15 @@ export class UserComponent implements OnInit { //获取所有用户 usersLIst: any = [] usersNum: string - OrganizaiotnId - + OrganizationUnitId + loading: boolean; getAllUsers() { + this.loading=true let params = { Keyword: this.validateForm.value.search ? this.validateForm.value.search : '', SkipCount: String(this.SkipCount), MaxResultCount: String(this.MaxResultCount), - OrganizaiotnId: this.OrganizaiotnId + OrganizationUnitId: this.OrganizationUnitId } this.http.get('/api/services/app/User/GetAll', { params: params @@ -51,6 +52,7 @@ export class UserComponent implements OnInit { this.usersLIst = data.result.items this.usersNum = data.result.totalCount console.log('所有用户', this.usersLIst) + this.loading=false }) } SkipCount: number = 0 //0 16 32 48 @@ -99,6 +101,7 @@ export class UserComponent implements OnInit { resolve(data) this.defaultExpandedKeys = [this.nodes[0].id] this.nzSelectedKeys = [this.nodes[0].id] + this.OrganizationUnitId=[this.nodes[0].id] this.getAllUsers() }) }) @@ -114,7 +117,7 @@ export class UserComponent implements OnInit { this.getAllUsers() } nzClick(event: NzFormatEmitEvent) { - this.OrganizaiotnId = event.node.origin.id + this.OrganizationUnitId = event.node.origin.id this.getAllUsers() } //新增用户