diff --git a/src/api/exam/api.candidate.ts b/src/api/exam/api.candidate.ts index a1a235b..18bd1e8 100644 --- a/src/api/exam/api.candidate.ts +++ b/src/api/exam/api.candidate.ts @@ -3,17 +3,29 @@ const candidate = `${env.API_URI}/candidate/` const periodExam = `${env.API_URI}/period-exam/` export default { - candidateInformation: (examId: string) => `${candidate}information/${examId}`, - candidateAddress: (examId: string) => `${candidate}address/${examId}`, - candidateFamily: (examId: string) => `${candidate}family/${examId}`, - candidateOccupation: (examId: string) => `${candidate}occupation/${examId}`, - candidateEducation: (examId: string) => `${candidate}education/${examId}`, - candidateCareer: (examId: string) => `${candidate}career/${examId}`, - candidateCheckCreate: (examId: string) => `${candidate}check/${examId}`, - candidateRegister: (examId: string) => `${candidate}register/${examId}`, - candidatePayment: (examId: string) => `${candidate}payment/${examId}`, - candidateStatus: (examId: string) => `${candidate}status/${examId}`, + candidateInformation: (examId: string, positionId: string) => + `${candidate}information/${examId}/${positionId}`, + candidateAddress: (examId: string, positionId: string) => + `${candidate}address/${examId}/${positionId}`, + candidateFamily: (examId: string, positionId: string) => + `${candidate}family/${examId}/${positionId}`, + candidateOccupation: (examId: string, positionId: string) => + `${candidate}occupation/${examId}/${positionId}`, + candidateEducation: (examId: string, positionId: string) => + `${candidate}education/${examId}/${positionId}`, + candidateCareer: (examId: string, positionId: string) => + `${candidate}career/${examId}/${positionId}`, + candidateCheckCreate: (examId: string, positionId: string) => + `${candidate}check/${examId}/${positionId}`, + candidateRegister: (examId: string, positionId: string) => + `${candidate}register/${examId}/${positionId}`, + candidatePayment: (examId: string, positionId: string) => + `${candidate}payment-image/${examId}/${positionId}`, + candidateProfile: (examId: string, positionId: string) => + `${candidate}profile-image/${examId}/${positionId}`, + candidateStatus: (examId: string, positionId: string) => + `${candidate}status/${examId}/${positionId}`, periodExamId: (examId: string) => `${periodExam}${examId}`, - candidateId: (examId: string) => `${candidate}${examId}`, + candidateId: (examId: string, positionId: string) => `${candidate}${examId}/${positionId}`, candidate } diff --git a/src/modules/01_exam/components/ExamFinished.vue b/src/modules/01_exam/components/ExamFinished.vue index 6afbd41..9f71380 100644 --- a/src/modules/01_exam/components/ExamFinished.vue +++ b/src/modules/01_exam/components/ExamFinished.vue @@ -1,67 +1,77 @@