Browse Source

[完善]组织机构根据登录用户显示

beijing
邵佳豪 2 years ago
parent
commit
37e1c6c85e
  1. 3
      src/app/system-management/organization/organization.component.ts

3
src/app/system-management/organization/organization.component.ts

@ -51,6 +51,9 @@ export class OrganizationComponent implements OnInit {
}).subscribe((data: any) => { }).subscribe((data: any) => {
this.totalCount = data.result.totalCount this.totalCount = data.result.totalCount
data.result.items.forEach(element => { data.result.items.forEach(element => {
if (element.id == OrganizationUnitId) {
element.parentId = null
}
element.key = element.id element.key = element.id
element.title = element.displayName element.title = element.displayName
element.selectable = false element.selectable = false

Loading…
Cancel
Save