refactor(exam): API candidate-exam

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-05-01 16:21:44 +07:00
parent de95ae61c0
commit 05afc1fe5b
2 changed files with 6 additions and 2 deletions

View file

@ -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}`,
};

View file

@ -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())}`;