แก้สมัครสอบ
This commit is contained in:
parent
c1cae5a785
commit
1580691d52
6 changed files with 73 additions and 71 deletions
|
|
@ -11,6 +11,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
|
||||
import type { RecruitDetailResponse } from "@/modules/03_recruiting/interface/response/Period";
|
||||
import Table from "@/modules/03_recruiting/components/Table.vue";
|
||||
import genReportXLSX from "@/plugins/genreportxlsx";
|
||||
|
||||
const $q = useQuasar();
|
||||
const router = useRouter();
|
||||
|
|
@ -220,15 +221,10 @@ function clickDetail(examID: string) {
|
|||
async function downloadExam() {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.exportDisableExam(importId.value), {
|
||||
responseType: "blob",
|
||||
})
|
||||
.then((res) => {
|
||||
var a = document.createElement("a");
|
||||
a.href = URL.createObjectURL(res.data);
|
||||
a.download = `รายชื่อผู้มีสิทธิ์สอบ.xlsx`;
|
||||
// start download
|
||||
a.click();
|
||||
.get(config.API.exportDisableExam(importId.value))
|
||||
.then(async (res) => {
|
||||
const dataList = res.data.result;
|
||||
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้มีสิทธิ์สอบ");
|
||||
})
|
||||
.catch(async (e) => {
|
||||
messageError($q, JSON.parse(await e.response.data.text()));
|
||||
|
|
@ -242,15 +238,10 @@ async function downloadExam() {
|
|||
async function downloadPassExam() {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.exportDisablePassExam(importId.value), {
|
||||
responseType: "blob",
|
||||
})
|
||||
.then((res) => {
|
||||
var a = document.createElement("a");
|
||||
a.href = URL.createObjectURL(res.data);
|
||||
a.download = `รายชื่อสอบผ่านภาค_ก.xlsx`;
|
||||
// start download
|
||||
a.click();
|
||||
.get(config.API.exportDisablePassExam(importId.value))
|
||||
.then(async (res) => {
|
||||
const dataList = res.data.result;
|
||||
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้สอบผ่านภาค");
|
||||
})
|
||||
.catch(async (e) => {
|
||||
messageError($q, JSON.parse(await e.response.data.text()));
|
||||
|
|
@ -264,15 +255,10 @@ async function downloadPassExam() {
|
|||
async function downloadPassResultExam() {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.exportDisablePassResultExam(importId.value), {
|
||||
responseType: "blob",
|
||||
})
|
||||
.then((res) => {
|
||||
var a = document.createElement("a");
|
||||
a.href = URL.createObjectURL(res.data);
|
||||
a.download = `รายชื่อคัดเลือกคนพิการได้.xlsx`;
|
||||
// start download
|
||||
a.click();
|
||||
.get(config.API.exportDisablePassResultExam(importId.value))
|
||||
.then(async (res) => {
|
||||
const dataList = res.data.result;
|
||||
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้คัดเลือกคนพิการได้");
|
||||
})
|
||||
.catch(async (e) => {
|
||||
messageError($q, JSON.parse(await e.response.data.text()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue