|
|
|
|
@ -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();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|