fixed hierarchy issue

MOE-PHASE-2-SPRINT-1
umasoodch 3 years ago
parent f5f2fc5356
commit 4bc778b2cb

@ -13,8 +13,7 @@
[name]="subordinate.EMPLOYEE_NAME" [name]="subordinate.EMPLOYEE_NAME"
[title]="subordinate.POSITION_NAME" [title]="subordinate.POSITION_NAME"
[employeeImage]="subordinate.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+subordinate.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'" [employeeImage]="subordinate.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+subordinate.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'"
[employeePhoneNumber]="subordinate.EMPLOYEE_MOBILE_NUMBER" [employeePhoneNumber]="subordinate.EMPLOYEE_MOBILE_NUMBER">
(onGetDetails)="getDetails(subordinate)">
</app-employee-hierarchy-card> </app-employee-hierarchy-card>
</li> </li>
</ng-container> </ng-container>
@ -24,8 +23,7 @@
[name]="personalInfo.EMPLOYEE_NAME" [name]="personalInfo.EMPLOYEE_NAME"
[title]="personalInfo.POSITION_NAME" [title]="personalInfo.POSITION_NAME"
[employeeImage]="personalInfo.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+personalInfo.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'" [employeeImage]="personalInfo.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+personalInfo.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'"
[employeePhoneNumber]="personalInfo.EMPLOYEE_MOBILE_NUMBER" [employeePhoneNumber]="personalInfo.EMPLOYEE_MOBILE_NUMBER">
(onGetDetails)="getDetails('personal')">
</app-employee-hierarchy-card> </app-employee-hierarchy-card>
<ul class="contentBg"> <ul class="contentBg">
<li *ngFor="let subordinate of subordinateHierarchyList;let i=index" class="subordinate"> <li *ngFor="let subordinate of subordinateHierarchyList;let i=index" class="subordinate">

@ -75,9 +75,10 @@ export class EmployeeHierarchyComponent implements OnInit {
} }
public getDetails(i: any) { public getDetails(i: any) {
console.log(i); if (i.NUM_OF_SUBORDINATES > 0) {
this.common.sharedService.setSharedData(i, 'employee-hierarchy'); this.common.sharedService.setSharedData(i, 'employee-hierarchy');
this.cs.openEmployeeHierarchy(); this.cs.openEmployeeHierarchy();
}
} }
} }

Loading…
Cancel
Save