diff --git a/public/File/สรรหาสอบแข่งขัน_จำนวนที่บันทึกผลสอบ.xlsx b/public/File/สรรหาสอบแข่งขัน_จำนวนที่บันทึกผลสอบ.xlsx new file mode 100644 index 000000000..16538b2e3 Binary files /dev/null and b/public/File/สรรหาสอบแข่งขัน_จำนวนที่บันทึกผลสอบ.xlsx differ diff --git a/public/File/สรรหาสอบแข่งขัน_จำนวนผู้สอบทั้งหมด.xlsx b/public/File/สรรหาสอบแข่งขัน_จำนวนผู้สอบทั้งหมด.xlsx new file mode 100644 index 000000000..e6f77094e Binary files /dev/null and b/public/File/สรรหาสอบแข่งขัน_จำนวนผู้สอบทั้งหมด.xlsx differ diff --git a/src/modules/03_recruiting/views/01_compete/Period.vue b/src/modules/03_recruiting/views/01_compete/Period.vue index fb463d570..c057526ed 100644 --- a/src/modules/03_recruiting/views/01_compete/Period.vue +++ b/src/modules/03_recruiting/views/01_compete/Period.vue @@ -23,7 +23,14 @@ import HistoryTable from "@/components/TableHistory.vue"; const $q = useQuasar(); // show dialog const mixin = useCounterMixin(); -const { success, dateText, showLoader, hideLoader, messageError,onSearchDataTable } = mixin; +const { + success, + dateText, + showLoader, + hideLoader, + messageError, + onSearchDataTable, +} = mixin; const router = useRouter(); const name = ref(""); @@ -359,14 +366,12 @@ async function clickClose() { async function clickCloseScore() { modalScore.value = false; files_score.value = null; - await fetchData(); } /** ปิด dialog เลือกไฟล์ผู้สมัครสอบแข่งขัน */ async function clickCloseCandidate() { modalCandidate.value = false; - files_candidate.value = null - await fetchData(); + files_candidate.value = null; } /** บันทึกข้อมูล เลือกไฟล์ผู้สมัครสอบแข่งขัน */ @@ -379,7 +384,7 @@ async function checkSaveCandidate() { .then((res) => { success($q, "นำเข้าข้อมูลผู้สมัครสอบสำเร็จ"); modalCandidate.value = false; - files_candidate.value = null + files_candidate.value = null; selected_row_id.value = ""; fetchData(); }) @@ -444,6 +449,9 @@ function onSearch() { ); } +function onTemplate(name: string) { + window.open(`/File/${name}.xlsx`, "_blank"); +} /** ดึงข้อมูล เมื่อโหลดหน้า component */ onMounted(async () => { hideLoader(); @@ -772,7 +780,31 @@ onMounted(async () => { - + + {{ textTittleScore }} + + ดาวน์โหลดไฟล์ต้นแบบ + + + + +
@@ -812,10 +844,30 @@ onMounted(async () => { - + + {{ textTittleCandidate }} + + ดาวน์โหลดไฟล์ต้นแบบ + + + +