|
|
@ -1483,7 +1483,6 @@ export class UnitDetailsComponent implements OnInit { |
|
|
|
getAllOrganization() { |
|
|
|
getAllOrganization() { |
|
|
|
let organizationId = JSON.parse(sessionStorage.getItem('userData')).organizationId |
|
|
|
let organizationId = JSON.parse(sessionStorage.getItem('userData')).organizationId |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
// OrganizationId: organizationId || '',
|
|
|
|
|
|
|
|
ContainsChildren: "true", |
|
|
|
ContainsChildren: "true", |
|
|
|
PageNumber: 1, |
|
|
|
PageNumber: 1, |
|
|
|
PageSize: 9999 |
|
|
|
PageSize: 9999 |
|
|
@ -1491,6 +1490,7 @@ export class UnitDetailsComponent implements OnInit { |
|
|
|
this.http.get('/api/Organizations', { |
|
|
|
this.http.get('/api/Organizations', { |
|
|
|
params: params |
|
|
|
params: params |
|
|
|
}).subscribe((data: any) => { |
|
|
|
}).subscribe((data: any) => { |
|
|
|
|
|
|
|
console.log('组织机构', data.items) |
|
|
|
data.items.forEach(element => { |
|
|
|
data.items.forEach(element => { |
|
|
|
if (element.id == organizationId) { |
|
|
|
if (element.id == organizationId) { |
|
|
|
element.parentId = null |
|
|
|
element.parentId = null |
|
|
|