fix:DialogCandidates
This commit is contained in:
parent
a719b98791
commit
41e08b7200
2 changed files with 20 additions and 5 deletions
|
|
@ -12,6 +12,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
import type { RecruitDetailResponse } from "@/modules/03_recruiting/interface/response/Period";
|
||||
import type { Pagination } from "@/modules/03_recruiting/interface/index/Main";
|
||||
|
||||
import DialogCandidates from "@/modules/03_recruiting/components/DialogCandidates.vue";
|
||||
import Table from "@/modules/03_recruiting/components/Table.vue";
|
||||
import genReportXLSX from "@/plugins/genreportxlsx";
|
||||
|
||||
|
|
@ -349,7 +350,7 @@ async function fetchData() {
|
|||
}
|
||||
|
||||
/** บรรจุผู้ผ่านการคัดเลือกผู้พิการ */
|
||||
async function candidateToPlacement() {
|
||||
async function onSubmitCandidates() {
|
||||
$q.dialog({
|
||||
title: "ยืนยันการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ",
|
||||
message: "ต้องการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุใช่หรือไม่?",
|
||||
|
|
@ -363,15 +364,16 @@ async function candidateToPlacement() {
|
|||
showLoader();
|
||||
await http
|
||||
.get(config.API.periodDisableToPlacement(importId.value))
|
||||
.then((res) => {
|
||||
.then(() => {
|
||||
success($q, "นำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ");
|
||||
modalCandidates.value = false;
|
||||
router.go(-1);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
hideLoader();
|
||||
router.go(-1);
|
||||
});
|
||||
})
|
||||
.onCancel(() => {})
|
||||
|
|
@ -386,6 +388,13 @@ function onSearch() {
|
|||
);
|
||||
}
|
||||
|
||||
const modalCandidates = ref(false); // dialog บรรจุผู้ผ่านการสอบแข่งขัน
|
||||
|
||||
/** ฟังก์ชันเปิดโมดัลสำหรับผู้ส่งผ่านคัดเลือก */
|
||||
function openModalCandidates() {
|
||||
modalCandidates.value = true;
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
hideLoader();
|
||||
await fetchData();
|
||||
|
|
@ -413,7 +422,7 @@ onMounted(async () => {
|
|||
flat
|
||||
color="indigo"
|
||||
v-if="rows.length > 0"
|
||||
@click="candidateToPlacement"
|
||||
@click="openModalCandidates"
|
||||
>
|
||||
<q-tooltip>บรรจุผู้ผ่านการคัดเลือกผู้พิการ</q-tooltip>
|
||||
</q-btn>
|
||||
|
|
@ -517,6 +526,12 @@ onMounted(async () => {
|
|||
</Table>
|
||||
</div>
|
||||
</q-card>
|
||||
|
||||
<DialogCandidates
|
||||
:title="'ส่งผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ'"
|
||||
v-model:modal="modalCandidates"
|
||||
:on-submit="onSubmitCandidates"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style></style>
|
||||
|
|
|
|||
|
|
@ -1679,6 +1679,7 @@ onMounted(async () => {
|
|||
<DialogHeader :tittle="`เลือกวันรายงานตัว`" :close="clickClose" />
|
||||
<q-separator />
|
||||
<q-card-section class="q-p-sm">
|
||||
<!-- :min-date="new Date()" -->
|
||||
<datepicker
|
||||
menu-class-name="modalfix"
|
||||
v-model="reportingDate"
|
||||
|
|
@ -1687,7 +1688,6 @@ onMounted(async () => {
|
|||
borderless
|
||||
:enableTimePicker="false"
|
||||
week-start="0"
|
||||
:min-date="new Date()"
|
||||
>
|
||||
<template #year="{ year }">
|
||||
{{ year + 543 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue