From 3dcdba77a6e3f3c9f7c2972cba62eb588134b038 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Wed, 5 Apr 2023 00:59:05 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=20Ui=20=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88?= =?UTF-8?q?=E0=B8=87=E0=B8=95=E0=B8=AD=E0=B8=99=E0=B8=AA=E0=B8=A3=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=87=E0=B8=A3=E0=B8=AD=E0=B8=9A=E0=B8=AA=E0=B8=A1?= =?UTF-8?q?=E0=B8=B1=E0=B8=84=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/exam/api.candidate.ts | 34 +- .../01_exam/components/ExamFinished.vue | 130 ++++---- src/modules/01_exam/components/ExamForm.vue | 5 +- .../01_exam/components/ExamPayment.vue | 304 ++++++++++-------- .../01_exam/components/Form/Address.vue | 11 +- .../01_exam/components/Form/Career.vue | 5 +- .../01_exam/components/Form/Education.vue | 5 +- .../01_exam/components/Form/Family.vue | 3 +- .../01_exam/components/Form/Information.vue | 3 +- .../01_exam/components/Form/Occupation.vue | 3 +- src/modules/01_exam/router.ts | 2 +- src/modules/01_exam/views/ExamDetail.vue | 46 ++- src/stores/mixin.ts | 28 +- src/views/MainLayout.vue | 114 ++++--- 14 files changed, 420 insertions(+), 273 deletions(-) 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 @@