|
|
|
@ -49,12 +49,16 @@ export class OrComponent implements OnInit {
|
|
|
|
|
ContainsChildren: true, |
|
|
|
|
pageSize: 9999 |
|
|
|
|
} |
|
|
|
|
let organizationId = JSON.parse(sessionStorage.getItem('userData')).organizationId |
|
|
|
|
this.http.get('/api/Organizations', { |
|
|
|
|
params: params |
|
|
|
|
}).subscribe((data: any) => { |
|
|
|
|
console.log('组织机构列表', data) |
|
|
|
|
this.totalCount = data.totalCount |
|
|
|
|
data.items.forEach(element => { |
|
|
|
|
if(element.id==organizationId){ |
|
|
|
|
element.parentId = null |
|
|
|
|
} |
|
|
|
|
element.key = element.id |
|
|
|
|
element.title = element.name |
|
|
|
|
element.selectable = false |
|
|
|
|