แก้ไข convertType หน้า Evaluation

This commit is contained in:
AnandaTon 2023-12-20 12:59:58 +07:00
parent 93dc84f95e
commit e8b98709bf

View file

@ -31,6 +31,14 @@ export const useEvalutuonStore = defineStore("EvalutuonStore", () => {
} }
} }
function convertType(val: string) {
if (val === "EXPERT") {
return "ชำนาญการ";
} else {
return "ชำนาญการพิเศษ";
}
}
// ตรวจสอบคุณสมบัติด้วยตนเอง -> CHECK_SPEC // ตรวจสอบคุณสมบัติด้วยตนเอง -> CHECK_SPEC
// จัดเตรียมเอกสารเล่ม 1-> PREPARE_DOC_V1 // จัดเตรียมเอกสารเล่ม 1-> PREPARE_DOC_V1
// ตรวจสอบความถูกต้องของเอกสารเล่ม 1 -> CHECK_DOC_V1 // ตรวจสอบความถูกต้องของเอกสารเล่ม 1 -> CHECK_DOC_V1
@ -59,7 +67,7 @@ export const useEvalutuonStore = defineStore("EvalutuonStore", () => {
citizanId: data.CitizenId, citizanId: data.CitizenId,
fullName: data.FullName, fullName: data.FullName,
position: data.Position, position: data.Position,
level: data.Type, level: convertType(data.Type),
positionNumber: data.PosNo, positionNumber: data.PosNo,
agency: data.Oc, agency: data.Oc,
status: convertStatus(data.Step), status: convertStatus(data.Step),