|
|
|
@ -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() |
|
|
|
|
} |
|
|
|
|
//新增用户
|
|
|
|
|