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