แก้ประเมินบุคคล

This commit is contained in:
Warunee Tamkoo 2023-12-23 11:24:43 +07:00
parent 3901310f3d
commit 2eda92a693

View file

@ -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() {
<div class="col-12">
<q-card bordered style="border: 1px solid #d6dee1">
<div class="text-weight-medium bg-grey-1 q-py-sm q-px-md">
แบบประเมนคณลกษณะบคคล
ประกาศผลการคดเลอกบคคล (เอกสารหมายเลข 10)
</div>
<div class="col-12"><q-separator /></div>
<div class="row">