แก้ข้อความคัดเลือกผู้พิการ เป็นคัดเลือกอื่นๆ / คัดเลือกเฉยๆ
This commit is contained in:
parent
34870101be
commit
4da358351f
7 changed files with 32 additions and 33 deletions
|
|
@ -188,8 +188,8 @@ async function uploadFile() {
|
||||||
|
|
||||||
async function candidateToPlacement() {
|
async function candidateToPlacement() {
|
||||||
$q.dialog({
|
$q.dialog({
|
||||||
title: "ยืนยันการนำผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ",
|
title: "ยืนยันการนำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ",
|
||||||
message: "ต้องการนำผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุใช่หรือไม่?",
|
message: "ต้องการนำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุใช่หรือไม่?",
|
||||||
cancel: {
|
cancel: {
|
||||||
flat: true,
|
flat: true,
|
||||||
color: "negative",
|
color: "negative",
|
||||||
|
|
@ -200,7 +200,7 @@ async function candidateToPlacement() {
|
||||||
await http
|
await http
|
||||||
.get(config.API.periodExamToPlacement(examId.value))
|
.get(config.API.periodExamToPlacement(examId.value))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
success($q, "นำผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ");
|
success($q, "นำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ");
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
|
||||||
|
|
@ -364,8 +364,8 @@ function onSearch() {
|
||||||
*/
|
*/
|
||||||
function onSubmitCandidates(date: Date) {
|
function onSubmitCandidates(date: Date) {
|
||||||
$q.dialog({
|
$q.dialog({
|
||||||
title: "ยืนยันการนำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ",
|
title: "ยืนยันการนำข้อมูลผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ",
|
||||||
message: "ต้องการนำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุใช่หรือไม่?",
|
message: "ต้องการนำข้อมูลผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุใช่หรือไม่?",
|
||||||
cancel: {
|
cancel: {
|
||||||
flat: true,
|
flat: true,
|
||||||
color: "negative",
|
color: "negative",
|
||||||
|
|
@ -379,7 +379,7 @@ function onSubmitCandidates(date: Date) {
|
||||||
accountStartDate: convertDateToAPI(date),
|
accountStartDate: convertDateToAPI(date),
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
success($q, "นำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ");
|
success($q, "นำข้อมูลผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ");
|
||||||
modalCandidates.value = false;
|
modalCandidates.value = false;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,7 @@ const rows = ref<RecruitDetailResponse[]>([]);
|
||||||
const rowsData = ref<RecruitDetailResponse[]>([]);
|
const rowsData = ref<RecruitDetailResponse[]>([]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ไปหน้ารายละเอียด จัดการรอบคัดเลือกคนพิการ
|
* ไปหน้ารายละเอียด จัดการรอบคัดเลือกอื่นๆ
|
||||||
* @param examID id รอบ
|
* @param examID id รอบ
|
||||||
*/
|
*/
|
||||||
function clickDetail(examID: string) {
|
function clickDetail(examID: string) {
|
||||||
|
|
@ -269,14 +269,14 @@ async function downloadPassExam() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ส่งออกข้อมูลผู้คัดเลือกคนพิการได้ */
|
/** ส่งออกข้อมูลผู้คัดเลือกอื่นๆ ได้ */
|
||||||
async function downloadPassResultExam() {
|
async function downloadPassResultExam() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.exportDisablePassResultExam(importId.value))
|
.get(config.API.exportDisablePassResultExam(importId.value))
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const dataList = res.data.result;
|
const dataList = res.data.result;
|
||||||
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้คัดเลือกคนพิการได้");
|
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้คัดเลือกได้");
|
||||||
})
|
})
|
||||||
.catch(async (e) => {
|
.catch(async (e) => {
|
||||||
messageError($q, JSON.parse(await e.response.data.text()));
|
messageError($q, JSON.parse(await e.response.data.text()));
|
||||||
|
|
@ -335,8 +335,8 @@ async function fetchData() {
|
||||||
/** บรรจุผู้ผ่านการคัดเลือกผู้พิการ */
|
/** บรรจุผู้ผ่านการคัดเลือกผู้พิการ */
|
||||||
async function onSubmitCandidates(date: Date) {
|
async function onSubmitCandidates(date: Date) {
|
||||||
$q.dialog({
|
$q.dialog({
|
||||||
title: "ยืนยันการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ",
|
title: "ยืนยันการนำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ",
|
||||||
message: "ต้องการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุใช่หรือไม่?",
|
message: "ต้องการนำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุใช่หรือไม่?",
|
||||||
cancel: {
|
cancel: {
|
||||||
flat: true,
|
flat: true,
|
||||||
color: "negative",
|
color: "negative",
|
||||||
|
|
@ -350,7 +350,7 @@ async function onSubmitCandidates(date: Date) {
|
||||||
accountStartDate: convertDateToAPI(date),
|
accountStartDate: convertDateToAPI(date),
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
success($q, "นำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ");
|
success($q, "นำข้อมูลผู้ผ่านคัดเลือกอื่นๆ เข้าสู่ระบบบรรจุ");
|
||||||
modalCandidates.value = false;
|
modalCandidates.value = false;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
@ -426,7 +426,8 @@ onMounted(async () => {
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click="downloadPassResultExam()">
|
<q-item clickable v-close-popup @click="downloadPassResultExam()">
|
||||||
<q-item-section class="text-amber-9"
|
<q-item-section class="text-amber-9"
|
||||||
>ส่งออกข้อมูลผู้คัดเลือกคนพิการได้</q-item-section
|
>ส่งออกข้อมูลผู้ผ่านคัดเลือกอื่นๆ ได้</q-item-section
|
||||||
|
>
|
||||||
>
|
>
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
|
|
@ -513,7 +514,7 @@ onMounted(async () => {
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
||||||
<DialogCandidates
|
<DialogCandidates
|
||||||
:title="'ส่งผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ'"
|
:title="'ส่งข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ'"
|
||||||
v-model:modal="modalCandidates"
|
v-model:modal="modalCandidates"
|
||||||
:on-submit="onSubmitCandidates"
|
:on-submit="onSubmitCandidates"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -375,7 +375,7 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-6 col-sm-5 text-grey-7">
|
<div class="col-xs-6 col-sm-5 text-grey-7">
|
||||||
วันหมดอายุบัญชีคัดเลือกคนพิการ
|
วันหมดอายุบัญชีคัดเลือก
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 col-sm-7 q-pr-xs">
|
<div class="col-xs-6 col-sm-7 q-pr-xs">
|
||||||
{{ score_expired ? score_expired : "-" }}
|
{{ score_expired ? score_expired : "-" }}
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "name",
|
name: "name",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "รอบคัดเลือกคนพิการ",
|
label: "รอบคัดเลือกอื่นๆ",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "name",
|
field: "name",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -184,7 +184,7 @@ const visibleColumnsHistory = ref<String[]>([
|
||||||
"createdFullName",
|
"createdFullName",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/** ดาวน์โหลดรายชื่อผู้สอบคัดเลือกคนพิการได้ */
|
/** ดาวน์โหลดรายชื่อผู้สอบคัดเลือกอื่นๆ ได้ */
|
||||||
async function clickPassExam(id: string) {
|
async function clickPassExam(id: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
// await http
|
// await http
|
||||||
|
|
@ -221,7 +221,7 @@ async function clickPassExam(id: string) {
|
||||||
// สร้างลิงก์เพื่อดาวน์โหลดไฟล์
|
// สร้างลิงก์เพื่อดาวน์โหลดไฟล์
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
link.href = url;
|
link.href = url;
|
||||||
link.download = `รายชื่อผู้สอบคัดเลือกคนพิการได้.pdf`; // กำหนดชื่อไฟล์ที่จะดาวน์โหลด
|
link.download = `รายชื่อผู้สอบคัดเลือกได้.pdf`; // กำหนดชื่อไฟล์ที่จะดาวน์โหลด
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
|
|
||||||
|
|
@ -274,7 +274,7 @@ async function clickCandidateList(id: string) {
|
||||||
// สร้างลิงก์เพื่อดาวน์โหลดไฟล์
|
// สร้างลิงก์เพื่อดาวน์โหลดไฟล์
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
link.href = url;
|
link.href = url;
|
||||||
link.download = `รายชื่อผู้มีสิทธิ์สอบคัดเลือกคนพิการ.pdf`; // กำหนดชื่อไฟล์ที่จะดาวน์โหลด
|
link.download = `รายชื่อผู้มีสิทธิ์สอบคัดเลือก.pdf`; // กำหนดชื่อไฟล์ที่จะดาวน์โหลด
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
|
|
||||||
|
|
@ -434,7 +434,7 @@ async function clickCloseScore() {
|
||||||
files_score.value = null;
|
files_score.value = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ปิด dialog เลือกไฟล์ผู้สมัครคัดเลือกคนพิการ */
|
/** ปิด dialog เลือกไฟล์ผู้สมัครคัดเลือก */
|
||||||
async function clickCloseCandidate() {
|
async function clickCloseCandidate() {
|
||||||
modalCandidate.value = false;
|
modalCandidate.value = false;
|
||||||
files_candidate.value = null;
|
files_candidate.value = null;
|
||||||
|
|
@ -521,7 +521,7 @@ async function checkSave() {
|
||||||
await http
|
await http
|
||||||
.post(config.API.saveDisableCandidates, fd)
|
.post(config.API.saveDisableCandidates, fd)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
success($q, "นำเข้าข้อมูลผู้สมัครคัดเลือกคนพิการสำเร็จ");
|
success($q, "นำเข้าข้อมูลผู้สมัครคัดเลือกสำเร็จ");
|
||||||
modalAdd.value = false;
|
modalAdd.value = false;
|
||||||
fetchData();
|
fetchData();
|
||||||
})
|
})
|
||||||
|
|
@ -548,7 +548,7 @@ onMounted(async () => {
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="toptitle text-dark col-12 row items-center">
|
<div class="toptitle text-dark col-12 row items-center">
|
||||||
จัดการรอบคัดเลือกคนพิการ
|
จัดการรอบคัดเลือกอื่นๆ
|
||||||
</div>
|
</div>
|
||||||
<q-card flat bordered class="col-12 q-mt-sm q-pt-sm q-pa-md">
|
<q-card flat bordered class="col-12 q-mt-sm q-pt-sm q-pa-md">
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -834,7 +834,7 @@ onMounted(async () => {
|
||||||
<q-input
|
<q-input
|
||||||
outlined
|
outlined
|
||||||
v-model="name"
|
v-model="name"
|
||||||
label="ชื่อการคัดเลือกคนพิการ"
|
label="ชื่อการคัดเลือกอื่นๆ"
|
||||||
dense
|
dense
|
||||||
autogrow
|
autogrow
|
||||||
lazy-rules
|
lazy-rules
|
||||||
|
|
@ -870,7 +870,7 @@ onMounted(async () => {
|
||||||
<q-file
|
<q-file
|
||||||
v-model="files"
|
v-model="files"
|
||||||
dense
|
dense
|
||||||
label="เลือกไฟล์รายชื่อผู้สมัครคัดเลือกคนพิการ"
|
label="เลือกไฟล์รายชื่อผู้สมัครคัดเลือกอื่นๆ"
|
||||||
outlined
|
outlined
|
||||||
use-chips
|
use-chips
|
||||||
multiple
|
multiple
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<!-- page:จัดการรอบคัดเลือกคนพิการ สรรหา -->
|
<!-- page:จัดการรอบคัดเลือกอื่นๆ สรรหา -->
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref, watch } from "vue";
|
import { onMounted, ref, watch } from "vue";
|
||||||
import { useQuasar, QForm } from "quasar";
|
import { useQuasar, QForm } from "quasar";
|
||||||
|
|
@ -174,7 +174,7 @@ async function addData() {
|
||||||
const imgUpload = await uploadImgData();
|
const imgUpload = await uploadImgData();
|
||||||
const docUpload = await uploadDocData();
|
const docUpload = await uploadDocData();
|
||||||
if (imgUpload && docUpload) {
|
if (imgUpload && docUpload) {
|
||||||
success($q, "บันทึกรอบการสอบคัดเลือกคนพิการสำเร็จ");
|
success($q, "บันทึกรอบการสอบคัดเลือกอื่นๆ สำเร็จ");
|
||||||
clickBack();
|
clickBack();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -198,7 +198,7 @@ async function editData(id: string) {
|
||||||
const imgUpload = await uploadImgData();
|
const imgUpload = await uploadImgData();
|
||||||
const docUpload = await uploadDocData();
|
const docUpload = await uploadDocData();
|
||||||
if (imgUpload && docUpload) {
|
if (imgUpload && docUpload) {
|
||||||
success($q, "แก้ไขรอบการสอบคัดเลือกคนพิการสำเร็จ");
|
success($q, "แก้ไขรอบการสอบคัดเลือกสำเร็จ");
|
||||||
clickBack();
|
clickBack();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -380,9 +380,7 @@ onMounted(async () => {
|
||||||
class="q-mr-sm"
|
class="q-mr-sm"
|
||||||
@click="clickBack"
|
@click="clickBack"
|
||||||
/>
|
/>
|
||||||
{{
|
{{ edit ? "แก้ไขข้อมูลการคัดเลือกอื่นๆ" : "เพิ่มข้อมูลการคัดเลือกอื่นๆ" }}
|
||||||
edit ? "แก้ไขข้อมูลการคัดเลือกคนพิการ" : "เพิ่มข้อมูลการคัดเลือกคนพิการ"
|
|
||||||
}}
|
|
||||||
</div>
|
</div>
|
||||||
<q-card flat bordered class="col-12">
|
<q-card flat bordered class="col-12">
|
||||||
<q-form ref="myForm">
|
<q-form ref="myForm">
|
||||||
|
|
@ -393,12 +391,12 @@ onMounted(async () => {
|
||||||
<q-input
|
<q-input
|
||||||
outlined
|
outlined
|
||||||
v-model="name"
|
v-model="name"
|
||||||
label="ชื่อรอบคัดเลือกคนพิการ/ชื่อประกาศ"
|
label="ชื่อรอบคัดเลือก/ชื่อประกาศ"
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
lazy-rules
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
!!val || `${'กรุณากรอกชื่อรอบคัดเลือกคนพิการ/ชื่อประกาศ'}`,
|
!!val || `${'กรุณากรอกชื่อรอบคัดเลือก/ชื่อประกาศ'}`,
|
||||||
]"
|
]"
|
||||||
></q-input>
|
></q-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<!-- page:จัดการรอบการสอบ สรรหา -->
|
<!-- page:จัดการรอบการสอบ สรรหา -->
|
||||||
<template>
|
<template>
|
||||||
<div class="toptitle text-dark col-12 row items-center">
|
<div class="toptitle text-dark col-12 row items-center">
|
||||||
สถิติสมัครคัดเลือกคนพิการ
|
สถิติสมัครคัดเลือกอื่นๆ
|
||||||
</div>
|
</div>
|
||||||
<q-card flat bordered class="col-12 q-mt-sm q-px-md q-py-sm">
|
<q-card flat bordered class="col-12 q-mt-sm q-px-md q-py-sm">
|
||||||
<iframe
|
<iframe
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue