|
|
|
@ -115,6 +115,7 @@ export class UserComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
//获取所有组织机构
|
|
|
|
|
nodes: any = [] |
|
|
|
|
organization |
|
|
|
|
async getAllOrganization() { |
|
|
|
|
let OrganizationUnitId = sessionStorage.getItem('isGasStation') == 'true' ? JSON.parse(sessionStorage.getItem('userdataOfgasstation')).organization.id : JSON.parse(sessionStorage.getItem('userdata')).organization.id |
|
|
|
|
let params = { |
|
|
|
@ -125,6 +126,7 @@ export class UserComponent implements OnInit {
|
|
|
|
|
this.http.get('/api/services/app/Organization/GetAll', { |
|
|
|
|
params: params |
|
|
|
|
}).subscribe(async (data: any) => { |
|
|
|
|
this.organization = data.result.items |
|
|
|
|
await this.getuser(data.result.items) |
|
|
|
|
resolve(data) |
|
|
|
|
this.getAllUsers() |
|
|
|
|