Merge branch 'develop' of github.com:Frappet/BMA-EHR-USER into develop
* 'develop' of github.com:Frappet/BMA-EHR-USER: แบบประเมิน => ปรับ avatar รายการขอรับประเมินผลการปฏิบัติราชการระดับบุคคล => form แบบประเมิน # Conflicts: # src/modules/08_KPI/store.ts
This commit is contained in:
commit
1cf3476dad
5 changed files with 96 additions and 56 deletions
|
|
@ -36,11 +36,39 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
return competency?.name;
|
||||
}
|
||||
|
||||
function convertStatus(val: string) {
|
||||
switch (val) {
|
||||
case "PENDING":
|
||||
return "รอดำเนินการ";
|
||||
case "INPROGRESS":
|
||||
return "กําลังดำเนินการ";
|
||||
case "DONE":
|
||||
return "ประเมินเสร็จสิ้น";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function convertResults(val: string) {
|
||||
switch (val) {
|
||||
case "PENDING":
|
||||
return "รอดำเนินการ";
|
||||
case "PASSED":
|
||||
return "ผ่านการประเมิน";
|
||||
case "NOTPASSED":
|
||||
return "ไม่ผ่านการประเมิน";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
tabMain,
|
||||
dataProfile,
|
||||
dataEvaluation,
|
||||
competencyType,
|
||||
convertCompetencyType,
|
||||
convertStatus,
|
||||
convertResults,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue