From 85677820e4decea3695299de76bbb07273142b22 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Tue, 20 Aug 2024 10:12:57 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20?= =?UTF-8?q?=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=9C=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/08_KPI/views/form.vue | 83 ++++++++++++++++--------------- 1 file changed, 43 insertions(+), 40 deletions(-) diff --git a/src/modules/08_KPI/views/form.vue b/src/modules/08_KPI/views/form.vue index bc532ac..923ba48 100644 --- a/src/modules/08_KPI/views/form.vue +++ b/src/modules/08_KPI/views/form.vue @@ -490,6 +490,9 @@ const evaluator = ref({ posTypeName: "", posLevelName: "", org: "", + posmasterAct: "", + isPosmasterAct: false, + posmasterAct: [], }); async function fetchProfileEvaluator(id: string) { showLoader(); @@ -503,6 +506,8 @@ async function fetchProfileEvaluator(id: string) { evaluator.value.position = data.position; evaluator.value.posTypeName = data.posTypeName; evaluator.value.posLevelName = data.posLevelName; + evaluator.value.isPosmasterAct = data.isPosmasterAct; + evaluator.value.posmasterAct = data.posmasterAct[0]; evaluator.value.org = findOrgName(data); }) .catch((e) => { @@ -1047,56 +1052,54 @@ onMounted(async () => { /> - -
+ +
{{ evaluator.fullName }}
- - -
-
-
-
ตำแหน่งในสายงาน
-
ตำแหน่งประเภท
-
ตำแหน่งทางการบริหาร
-
สังกัด
+
+
+
+
ตำแหน่งในสายงาน
+
ตำแหน่งประเภท
+
ตำแหน่งทางการบริหาร
+
สังกัด
+
+
+
+ {{ evaluator.position ? evaluator.position : "-" }}
-
-
- {{ evaluator.position ? evaluator.position : "-" }} -
-
- {{ evaluator.posTypeName ? evaluator.posTypeName : "-" }} - {{ - evaluator.posLevelName - ? ` (${evaluator.posLevelName})` - : "-" - }} -
-
- {{ - evaluator.posExecutiveName - ? evaluator.posExecutiveName - : "-" - }} -
-
- {{ evaluator.org ? evaluator.org : "-" }} -
+
+ {{ evaluator.posTypeName ? evaluator.posTypeName : "-" }} + {{ + evaluator.posLevelName ? ` (${evaluator.posLevelName})` : "-" + }}
- -
-
รักษาการในตำแหน่ง/การรักษาราชการแทน
+
+ {{ + evaluator.posExecutiveName ? evaluator.posExecutiveName : "-" + }}
-
-
-
+
+ {{ evaluator.org ? evaluator.org : "-" }}
+ +
+
รักษาการในตำแหน่ง/การรักษาราชการแทน
+
+
+
+ {{ + `${evaluator.posmasterAct.prefix}${evaluator.posmasterAct.firstName} ${evaluator.posmasterAct.lastName} (${evaluator.posmasterAct.posNo})` + }} +
+
-
+
- - +
+