From 2eda92a693b3a658f5afd6112b8c29d081d7199e Mon Sep 17 00:00:00 2001 From: waruneeta Date: Sat, 23 Dec 2023 11:24:43 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=99=E0=B8=9A=E0=B8=B8?= =?UTF-8?q?=E0=B8=84=E0=B8=84=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Detail/step/step4.vue | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/src/modules/12_evaluatePersonal/components/Detail/step/step4.vue b/src/modules/12_evaluatePersonal/components/Detail/step/step4.vue index 0a416e4eb..841f0e58d 100644 --- a/src/modules/12_evaluatePersonal/components/Detail/step/step4.vue +++ b/src/modules/12_evaluatePersonal/components/Detail/step/step4.vue @@ -9,6 +9,8 @@ import { useCounterMixin } from "@/stores/mixin"; import genReport from "@/plugins/genreport"; import { useQuasar } from "quasar"; import PopupReason from "@/components/Dialogs/PopupReason.vue"; +import { useEvaluateDetailStore } from "@/modules/12_evaluatePersonal/store/EvaluateDetail"; + const $q = useQuasar(); const mixin = useCounterMixin(); const { @@ -19,6 +21,7 @@ const { success, dialogConfirm, } = mixin; +const store = useEvaluateDetailStore(); const router = useRouter(); const route = useRoute(); @@ -141,6 +144,45 @@ function onWebSite() { .catch((e) => {}) .finally(() => { success($q, "ส่งไปประกาศบนเว็บไซต์ สำเร็จ"); + getStep(); + }); +} + +function getStep() { + showLoader(); + http + .get(config.API.evaluateGetStep(id.value)) + .then((res: any) => { + const data = res.data.result; + + let step = + data.step === "CHECK_SPEC" + ? 1 + : data.step === "PREPARE_DOC_V1" + ? 2 + : data.step === "CHECK_DOC_V1" + ? 3 + : data.step === "WAIT_CHECK_DOC_V1" + ? 4 + : data.step === "ANNOUNCE_WEB" + ? 5 + : data.step === "PREPARE_DOC_V2" + ? 6 + : data.step === "CHECK_DOC_V2" + ? 7 + : data.step === "WAIT_CHECK_DOC_V2" + ? 8 + : data.step === "DONE" + ? 9 + : 1; + + store.currentStep = step; + store.step = step; + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { hideLoader(); }); } @@ -252,7 +294,7 @@ function sentMessenger() {
- แบบประเมินคุณลักษณะบุคคล + ประกาศผลการคัดเลือกบุคคล (เอกสารหมายเลข 10)