updated path api report exam & recruit by api
This commit is contained in:
parent
c368abd170
commit
443f790047
3 changed files with 15 additions and 13 deletions
|
|
@ -33,11 +33,13 @@ export default {
|
|||
exportDisablePassResultExam: (id: string) =>
|
||||
`${disableExam}export/pass/${id}`,
|
||||
|
||||
exportDisableCandidateList: (id: string) => `${diable_report}candidate/${id}`,
|
||||
exportDisablePassExamList: (id: string) => `${diable_report}pass/${id}`,
|
||||
exportDisableCandidateList: (id: string) =>
|
||||
`${diable_report}candidate-new/${id}`,
|
||||
exportDisablePassExamList: (id: string) => `${diable_report}pass-new/${id}`,
|
||||
periodDisableToPlacement: (examId: string) =>
|
||||
`${disableExam}placement/${examId}`,
|
||||
|
||||
repoetUploadDisableExam:(id:string)=>`${disableExam}result/${id}`,
|
||||
repoetDownloadDisableExam:(id:string,examId:string)=>`${disableExam}report/exam/${id}/${examId}`
|
||||
|
||||
repoetUploadDisableExam: (id: string) => `${disableExam}result/${id}`,
|
||||
repoetDownloadDisableExam: (id: string, examId: string) =>
|
||||
`${disableExam}report/exam/${id}/${examId}`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -40,14 +40,14 @@ export default {
|
|||
exportPassResultExam: (id: string) => `${recruit}export/pass/${id}`,
|
||||
|
||||
exportCandidateList: (id: string) => `${recruit_report}candidate/${id}`,
|
||||
exportPassExamList: (id: string) => `${recruit_report}pass/${id}`,
|
||||
exportPassExamList: (id: string) => `${recruit_report}pass-new/${id}`,
|
||||
periodRecruitToPlacement: (examId: string) => `${recruit}placement/${examId}`,
|
||||
|
||||
reportRecruit:(type:string)=>`${recruit}${type}`,
|
||||
|
||||
|
||||
exportCandidateListNew: (id: string) => `${recruit_report}candidate-new/${id}`,
|
||||
reportCandidateListNew: (id: string) => `${recruit}report/candidate-new/${id}`,
|
||||
examReport: (id: string,no:string) => `${recruit}report/exam/${id}/${no}`,
|
||||
reportRecruit: (type: string) => `${recruit}${type}`,
|
||||
|
||||
exportCandidateListNew: (id: string) =>
|
||||
`${recruit_report}candidate-new/${id}`,
|
||||
// reportCandidateListNew: (id: string) =>
|
||||
// `${recruit}report/candidate-new/${id}`, ปรับไปใช้ api ด้านบนแทน
|
||||
examReport: (id: string, no: string) => `${recruit}report/exam/${id}/${no}`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ async function clickPassExam(id: string) {
|
|||
async function clickCandidateList(id: string) {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.reportCandidateListNew(id), {
|
||||
.get(config.API.exportCandidateListNew(id), {
|
||||
headers: {
|
||||
accept:
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue