แก้สรรหา ฟิลเตอร์

This commit is contained in:
setthawutttty 2025-01-29 11:21:54 +07:00
parent 711d104516
commit 6f05aa81ee
3 changed files with 24 additions and 15 deletions

View file

@ -365,8 +365,10 @@ async function clickPassExam() {
showLoader();
await http
.get(config.API.exportExamPassExamList(examId.value))
.then(() => {
window.open(config.API.exportExamPassExamList(examId.value));
.then(async(res) => {
const data = res.data.result;
data.reportName = `Candidate_Dashboard_${dateToISO(new Date())}`;
await genReport(data, data.reportName,'pdf');
})
.catch((e) => {
messageError($q, e);
@ -380,8 +382,10 @@ async function clickCandidateList() {
showLoader();
await http
.get(config.API.exportExamCandidateList(examId.value))
.then(() => {
window.open(config.API.exportExamCandidateList(examId.value));
.then(async(res) => {
const data = res.data.result;
data.reportName = `Candidate_Dashboard_${dateToISO(new Date())}`;
await genReport(data, data.reportName,'pdf');
})
.catch((e) => {
messageError($q, e);