diff --git a/src/api/recruiting/api.period-exam.ts b/src/api/recruiting/api.period-exam.ts index 0df5e58ed..bf777e193 100644 --- a/src/api/recruiting/api.period-exam.ts +++ b/src/api/recruiting/api.period-exam.ts @@ -96,4 +96,8 @@ export default { applicationFormPDF: (candidateId: string) => `${env.API_URI}/placement/candidate/pdf/${candidateId}`, + + downloadCandidateExam: (id: string) => + `${periodExam}download/candidate-exam/${id}`, + downloadPassExam: (id: string) => `${periodExam}download/pass-exam/${id}`, }; diff --git a/src/modules/03_recruiting/components/TableCandidate.vue b/src/modules/03_recruiting/components/TableCandidate.vue index 883d9257c..7a832784f 100644 --- a/src/modules/03_recruiting/components/TableCandidate.vue +++ b/src/modules/03_recruiting/components/TableCandidate.vue @@ -365,7 +365,7 @@ async function downloadFileDashboard() { async function clickPassExam() { showLoader(); await http - .get(config.API.exportExamPassExamList(examId.value)) + .get(config.API.downloadPassExam(examId.value)) .then(async (res) => { const data = res.data.result; data.reportName = `Candidate_Dashboard_${dateToISO(new Date())}`; @@ -382,7 +382,7 @@ async function clickPassExam() { async function clickCandidateList() { showLoader(); await http - .get(config.API.exportExamCandidateList(examId.value)) + .get(config.API.downloadCandidateExam(examId.value)) .then(async (res) => { const data = res.data.result; data.reportName = `Candidate_Dashboard_${dateToISO(new Date())}`;