From 614c62429b78878a3bde75db9b4523611b816180 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Mon, 22 Apr 2024 17:24:56 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B9=81=E0=B8=9A=E0=B8=9A=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B9=80?= =?UTF-8?q?=E0=B8=A1=E0=B8=B4=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Tab/Dialog/04_Dialog.vue | 48 ++++++++++++------- 1 file changed, 31 insertions(+), 17 deletions(-) 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] : "-" - }} +
+