Commit 1f5fa10c by Nattana Chaiyamat

แก้เส้น api evaluation-assessment

parent 7b03637d
......@@ -295,7 +295,7 @@ export class EditDefineDocumentFormComponent {
//############################# Modal Indicators #############################
getIndicators() {
this.evaluationAssessmentService.getIndicators(this.selectEmp.apsassessy.pl.plId).subscribe({
this.evaluationAssessmentService.getIndicators(this.selectEmp.jd.jobCodeId).subscribe({
next: response => {
this.indicatorsList = response
this.indicatorChange()
......
......@@ -268,7 +268,7 @@ export class EditEvaluationFormComponent {
//############################# Modal Indicators #############################
getIndicators() {
this.pmsEvaluationAssessmentService.getIndicators(this.selectEmp!.apsassessy.pl.plId).subscribe({
this.pmsEvaluationAssessmentService.getIndicators(this.selectEmp!.jd.jobCodeId).subscribe({
next: response => {
this.indicatorsList = response
this.indicatorChange()
......
......@@ -28,8 +28,8 @@ export class EvaluationAssessmentService {
getApsassessyMini(evaluationRoundId: string, apsassessy: string, apsyear: string): Observable<AppraisalRoundModel[]> {
return this.http.get<AppraisalRoundModel[]>(this.urlApi + "/mini/" + evaluationRoundId + "/" + apsassessy + "/" + apsyear)
}
getIndicators(plId: string): Observable<AppraisalRoundModel[]> {
return this.http.get<AppraisalRoundModel[]>(this.urlApi + "/indicators/list/" + plId)
getIndicators(jobCodeId: string): Observable<AppraisalRoundModel[]> {
return this.http.get<AppraisalRoundModel[]>(this.urlApi + "/indicators/list/" + jobCodeId)
}
post(body: AppraisalModel): Observable<AlertModel> {
return this.http.post<AlertModel>(this.urlApi, body)
......
......@@ -30,8 +30,8 @@ export class PmsEvaluationAssessmentService {
getApsassessyMini(evaluationRoundId: string, apsassessy: string, apsyear: string): Observable<MasfromEvaluationAssessment1lList[]> {
return this.http.get<MasfromEvaluationAssessment1lList[]>(this.urlApi + "/mini/" + evaluationRoundId + "/" + apsassessy + "/" + apsyear)
}
getIndicators(plId: string): Observable<MasfromEvaluationAssessment1lList[]> {
return this.http.get<MasfromEvaluationAssessment1lList[]>(this.urlApi + "/pms-topic/list/" + plId)
getIndicators(jobCodeId: string): Observable<MasfromEvaluationAssessment1lList[]> {
return this.http.get<MasfromEvaluationAssessment1lList[]>(this.urlApi + "/pms-topic/list/" + jobCodeId)
}
post(body: PmsMasfromEvaluationFullModel): Observable<AlertModel> {
return this.http.post<AlertModel>(this.urlApi, body)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment