diff --git a/src/modules/08_KPI/components/Tab/Dialog/04_Dialog.vue b/src/modules/08_KPI/components/Tab/Dialog/04_Dialog.vue index b2a691a..fc11228 100644 --- a/src/modules/08_KPI/components/Tab/Dialog/04_Dialog.vue +++ b/src/modules/08_KPI/components/Tab/Dialog/04_Dialog.vue @@ -42,7 +42,6 @@ const fieldDetailLabels = { type: "ประเภทสมรรถนะ", name: "ชื่อสมรรถนะ", definition: "คำจำกัดความ", - criteria: "กำหนดเกณฑ์การประเมิน", }; const fieldLabels = { @@ -79,10 +78,9 @@ const competencyTypeOp = ref([ function clickList(index: number, data: any) { listCheck.value = index; - // formDetail.type = ??? - // formDetail.name = ??? - // formDetail.definition = ??? - // formDetail.criteria = ??? + formDetail.type = data.type + formDetail.name = data.name + formDetail.definition = data.description formScore.score1 = data.capacityDetails[0].description; formScore.score2 = data.capacityDetails[1].description; formScore.score3 = data.capacityDetails[2].description; @@ -141,6 +139,24 @@ function filterTxt(val: any) { ); console.log(listTarget.value.length); } + +function statusTothai(val: string) { + switch (val) { + case "HEAD": + return "สมรรถนะหลัก"; + case "GROUP": + return "สมรรถนะประจำกลุ่มงาน"; + case "EXECUTIVE": + return "สมรรถนะประจำผู้บริหารกรุงเทพมหานคร"; + case "DIRECTOR": + return "สมรรถนะเฉพาะสำหรับตำแหน่ง ผอ.เขต ผช.ผอ.เขต และหัวหน้าฝ่ายในสังกัด สนง.เขต"; + case "INSPECTOR": + return "สมรรถนะเฉพาะสำหรับตำแหน่งผู้ตรวจราชการ กทม. และผู้ตรวจราชการ"; + default: + return "-"; + } +} + watch( () => modal.value, () => { @@ -252,7 +268,7 @@ watch( >รายละเอียดตัวชี้วัด -
+
- {{ - formDetail[field] ? formDetail[field] : "-" - }} + {{ formDetail[field] ? statusTothai(formDetail[field]) : "-" }} + + {{ formDetail[field] ? formDetail[field] : "-" }}
-
+
-
ระดับคะแนน
-
ผลสำเร็จของงาน
+
ระดับคะแนน
+
ผลสำเร็จของงาน
-
+
{{ fieldLabels[field as keyof typeof fieldLabels] }}
-
- {{ - formScore[field] ? formScore[field] : "-" - }} +
+