From 4a5ffab8f1beaa24266d557774a9fdc3f3a596e6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 26 Sep 2023 16:02:06 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=9A=E0=B8=9A=E0=B8=97=E0=B8=94?= =?UTF-8?q?=E0=B8=A5=E0=B8=AD=E0=B8=87=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registry/components/Profile.vue | 2 - .../probation/FormEvaluation/FormEvaluate.vue | 34 +- .../FormEvaluation/FormEvaluateAdd.vue | 25 +- .../FormEvaluation/FormEvaluateScore.vue | 28 +- .../FormEvaluation/FormEvaluateScoreAdd.vue | 632 ++++++++++++++---- 5 files changed, 573 insertions(+), 148 deletions(-) diff --git a/src/modules/04_registry/components/Profile.vue b/src/modules/04_registry/components/Profile.vue index e745a6b8e..034d853d8 100644 --- a/src/modules/04_registry/components/Profile.vue +++ b/src/modules/04_registry/components/Profile.vue @@ -833,8 +833,6 @@ const fetchData = async () => { const reason = reasonOptions.value.filter( (r: DataOption) => r.id == data.leaveReason ); - console.log(reason); - if (reason.length > 0) { leaveReason.value = ` (พ้นจากราชการด้วยสาเหตุ: ${reason[0].name})`; } else if (data.leaveReason !== null && data.leaveReason !== "") { diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue index 3234ca4e0..471b59e0a 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue @@ -76,7 +76,7 @@ const edit = () => { const cancel = () => { status.value = false; - fecthAssign() + fecthAssign(); }; const props = defineProps({ @@ -89,8 +89,6 @@ const list2_1 = probationStore.behavior_no1; const list2_2 = probationStore.behavior_no2; const list2_3 = probationStore.behavior_no3; - - const fecthAssign = async () => { showLoader(); await http @@ -105,7 +103,9 @@ const fecthAssign = async () => { start_date.value = res.data.data.start_date; date_finish.value = res.data.data.end_date; } - Autherise.value = res.data.data.commander.name; + Autherise.value = + probationStore.director.name + + ` (${probationStore.director.PositionLineName}, ${probationStore.director.PositionLevelName}, ${probationStore.director.Oc})`; }) .catch((e) => { messageError($q, e); @@ -269,8 +269,6 @@ onMounted(async () => { fetchEvaluate(); } }); - -