refactor(exam): API candidate-exam
This commit is contained in:
parent
de95ae61c0
commit
05afc1fe5b
2 changed files with 6 additions and 2 deletions
|
|
@ -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}`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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())}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue