รายการขอรับประเมินผลการปฏิบัติราชการระดับบุคคล => form แบบประเมิน
This commit is contained in:
parent
3ed6834933
commit
656211f03f
5 changed files with 100 additions and 56 deletions
|
|
@ -6,5 +6,37 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
const dataProfile = ref<any>();
|
||||
const dataEvaluation = ref<any>();
|
||||
|
||||
return { tabMain, dataProfile, dataEvaluation };
|
||||
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,
|
||||
convertStatus,
|
||||
convertResults,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue