From 870625aecb7b64783490ca24a0df87a4b9d88365 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 27 May 2024 16:43:40 +0700 Subject: [PATCH] =?UTF-8?q?UI=20=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B9=80?= =?UTF-8?q?=E0=B8=A1=E0=B8=B4=E0=B8=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Evaluator/02_TabOther.vue | 2 +- .../components/Tab/Topic/03_Develop.vue | 132 +++++++++++++++++- src/modules/08_KPI/views/form.vue | 56 ++++++-- 3 files changed, 172 insertions(+), 18 deletions(-) diff --git a/src/modules/08_KPI/components/Evaluator/02_TabOther.vue b/src/modules/08_KPI/components/Evaluator/02_TabOther.vue index 886443a..b081981 100644 --- a/src/modules/08_KPI/components/Evaluator/02_TabOther.vue +++ b/src/modules/08_KPI/components/Evaluator/02_TabOther.vue @@ -176,7 +176,7 @@ function onClickApprove(type: string = "") { /> - + { - { - + + diff --git a/src/modules/08_KPI/views/form.vue b/src/modules/08_KPI/views/form.vue index 94b90cf..e0ea245 100644 --- a/src/modules/08_KPI/views/form.vue +++ b/src/modules/08_KPI/views/form.vue @@ -130,7 +130,7 @@ function onSubmit() { ? commanderHighId.value.id : null, }) - .then(() => { + .then((res) => { success($q, "บันทึกสำเร็จ"); close(); }) @@ -246,11 +246,13 @@ function filterOption(val: any, update: Function, refData: string) { // getAll(); // } -function getAll() { - getProfile(); - fetchEvaluation(); - store.checkStep(); - getOrgOp(); +async function getAll() { + await getProfile(); + await fetchEvaluation(); + + await store.checkStep(); + + await getOrgOp(); } function sendToEvaluatore(status: string) { @@ -263,7 +265,7 @@ function sendToEvaluatore(status: string) { .put(config.API.kpiSendToStatus(id.value), { status: status, }) - .then(() => { + .then((res) => { success($q, "ส่งข้อตกลงให้ผู้ประเมินอนุมัติสำเร็จ"); close(); }) @@ -290,7 +292,7 @@ function requireEdit() { .put(config.API.kpiReqEdit(id.value), { status: "EVALUATOR", }) - .then(() => { + .then((res) => { success($q, "ขอแก้ไขสำเร็จ"); close(); }) @@ -307,9 +309,10 @@ function requireEdit() { ); } -onMounted(() => { +onMounted(async () => { showLoader(); - getAll(); + await getAll(); + console.log(store.dataEvaluation.avartar); }); @@ -340,11 +343,25 @@ onMounted(() => {
+
+ + + + +
+ +
- + {
-
-
+
+
{{ `${store.dataEvaluation.prefix}${store.dataEvaluation.firstName} ${store.dataEvaluation.lastName}` }} - + +
-
+