|
|
|
@ -31,7 +31,6 @@ export class UserComponent implements OnInit {
|
|
|
|
|
nzSelectedKeys: any[] = [] |
|
|
|
|
defaultExpandedKeys = []; |
|
|
|
|
searchValue = ''; |
|
|
|
|
nzExpandAll = false; |
|
|
|
|
totalCount: string |
|
|
|
|
//获取所有用户
|
|
|
|
|
usersLIst: any = [] |
|
|
|
@ -39,7 +38,7 @@ export class UserComponent implements OnInit {
|
|
|
|
|
OrganizationUnitId |
|
|
|
|
loading: boolean; |
|
|
|
|
getAllUsers() { |
|
|
|
|
this.loading=true |
|
|
|
|
this.loading = true |
|
|
|
|
let params = { |
|
|
|
|
Keyword: this.validateForm.value.search ? this.validateForm.value.search : '', |
|
|
|
|
SkipCount: String(this.SkipCount), |
|
|
|
@ -53,7 +52,7 @@ export class UserComponent implements OnInit {
|
|
|
|
|
this.usersLIst = data.result.items |
|
|
|
|
this.usersNum = data.result.totalCount |
|
|
|
|
console.log('所有用户', this.usersLIst) |
|
|
|
|
this.loading=false |
|
|
|
|
this.loading = false |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
SkipCount: number = 0 //0 16 32 48
|
|
|
|
@ -68,7 +67,8 @@ export class UserComponent implements OnInit {
|
|
|
|
|
async getAllRoles() { |
|
|
|
|
let params = { |
|
|
|
|
SkipCount: '0', |
|
|
|
|
MaxResultCount: '999' |
|
|
|
|
MaxResultCount: '999', |
|
|
|
|
ContainsBuiltins: 'true' |
|
|
|
|
} |
|
|
|
|
await new Promise<void>((resolve, reject) => { |
|
|
|
|
this.http.get('/api/services/app/Role/GetAll', { |
|
|
|
@ -102,7 +102,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.OrganizationUnitId = [this.nodes[0].id] |
|
|
|
|
this.getAllUsers() |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|