โอนคนสรรหาไปบรรจุ

This commit is contained in:
Kittapath 2023-07-26 18:49:20 +07:00
parent d08b3625f3
commit 78163d36c0
11 changed files with 249 additions and 83 deletions

View file

@ -13,6 +13,17 @@
/>
รายชอผสมครสอบแขงข {{ name }} ครงท {{ round }}/{{ year }}
<q-space />
<q-btn
size="md"
icon="mdi-content-save-move-outline"
round
flat
color="indigo"
v-if="rows.length > 0"
@click="candidateToPlacement"
>
<q-tooltip>บรรจานการคดเลอกผการ</q-tooltip>
</q-btn>
<q-btn class="bg-teal-1" icon="mdi-download" round color="primary" flat>
<q-tooltip>ดาวนโหลดไฟล</q-tooltip>
<q-menu>
@ -464,6 +475,35 @@ const fetchData = async () => {
loaderPage(false);
});
};
const candidateToPlacement = async () => {
$q.dialog({
title: "ยืนยันการนำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ",
message: "ต้องการนำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุใช่หรือไม่?",
cancel: {
flat: true,
color: "negative",
},
persistent: true,
})
.onOk(async () => {
loaderPage(true);
await http
.get(config.API.periodRecruitToPlacement(importId.value))
.then((res) => {
success($q, "นำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ");
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
loaderPage(false);
router.go(-1);
});
})
.onCancel(() => {})
.onDismiss(() => {});
};
</script>
<style></style>