fixed appraisal design issue

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

@ -10,9 +10,9 @@
<ion-row>
<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
[view]="view"
[scheme]="colorScheme"
[results]="performanceData"
min="0"

@ -73,9 +73,10 @@ export class PerformanceEvaluationComponent implements OnInit {
}
ngAfterViewInit() {
document.querySelector('svg .gauge.chart > text').remove();
}
// ngAfterViewInit() {
// if(this.performanceData.length)
// document.querySelector('svg .gauge.chart > text').remove();
// }
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.cs.sharedService.setSharedData(this.performanceData, PerformanceAppraisalResponse.PERFORMANCE_DATA);
this.cs.openPerformanceevaluation();
setTimeout(()=>{
document.querySelector('svg .gauge.chart > text').remove();
},100)
// this.cs.openPerformanceevaluation();
} else {
let msg: string = this.ts.trPK("userProfile", "no-appraisal");
this.cs.presentAlert(msg);
this.cs.presentAlert(msg, ()=>{
this.cs.back();
});
}
}
}

Loading…
Cancel
Save