fixed appraisal design issue

MOE_MAIN-COLOR_CHANGES
Sultan khan 3 years ago
parent 28846867df
commit db21a55308

@ -10,9 +10,9 @@
<ion-row> <ion-row>
<p [ngClass]=" direction == 'ltr' ? 'Text' : 'Text-ar'">{{ts.trPK('userProfile','performance-evaluation')}}</p> <p [ngClass]=" direction == 'ltr' ? 'Text' : 'Text-ar'">{{ts.trPK('userProfile','performance-evaluation')}}</p>
<div class="gauge" > <div class="gauge" *ngIf="performanceData.length >0">
<ngx-charts-gauge <ngx-charts-gauge
[view]="view"
[scheme]="colorScheme" [scheme]="colorScheme"
[results]="performanceData" [results]="performanceData"
min="0" min="0"

@ -73,9 +73,10 @@ export class PerformanceEvaluationComponent implements OnInit {
} }
ngAfterViewInit() { // ngAfterViewInit() {
document.querySelector('svg .gauge.chart > text').remove(); // if(this.performanceData.length)
} // document.querySelector('svg .gauge.chart > text').remove();
// }
getProfile() { getProfile() {
console.log('getProfile'); console.log('getProfile');
@ -113,10 +114,15 @@ export class PerformanceEvaluationComponent implements OnInit {
this.performanceData.push({ name: this.appraisalArr[i].APPRAISAL_YEAR, value: parseFloat(this.appraisalArr[i].APPRAISAL_SCORE)}); this.performanceData.push({ name: this.appraisalArr[i].APPRAISAL_YEAR, value: parseFloat(this.appraisalArr[i].APPRAISAL_SCORE)});
} }
this.cs.sharedService.setSharedData(this.performanceData, PerformanceAppraisalResponse.PERFORMANCE_DATA); this.cs.sharedService.setSharedData(this.performanceData, PerformanceAppraisalResponse.PERFORMANCE_DATA);
this.cs.openPerformanceevaluation(); setTimeout(()=>{
document.querySelector('svg .gauge.chart > text').remove();
},100)
// this.cs.openPerformanceevaluation();
} else { } else {
let msg: string = this.ts.trPK("userProfile", "no-appraisal"); let msg: string = this.ts.trPK("userProfile", "no-appraisal");
this.cs.presentAlert(msg); this.cs.presentAlert(msg, ()=>{
this.cs.back();
});
} }
} }
} }

Loading…
Cancel
Save