fix: แก้ API
This commit is contained in:
parent
e1b089fc59
commit
e4bdf45beb
3 changed files with 5 additions and 4 deletions
|
|
@ -37,4 +37,7 @@ export default {
|
||||||
exportDisablePassExamList: (id: string) => `${diable_report}pass/${id}`,
|
exportDisablePassExamList: (id: string) => `${diable_report}pass/${id}`,
|
||||||
periodDisableToPlacement: (examId: string) =>
|
periodDisableToPlacement: (examId: string) =>
|
||||||
`${disableExam}placement/${examId}`,
|
`${disableExam}placement/${examId}`,
|
||||||
|
|
||||||
|
repoetUploadDisableExam:(id:string)=>`${disableExam}result/${id}`,
|
||||||
|
repoetDownloadDisableExam:(id:string)=>`${disableExam}report/exam/${id}`
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -230,7 +230,6 @@ async function clickPassExam(id: string) {
|
||||||
.get(config.API.exportPassExamList(id))
|
.get(config.API.exportPassExamList(id))
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
data.reportName = `CandidateList`;
|
|
||||||
await genReport(data, "รายชื่อผู้สอบแข่งขันได้", "pdf");
|
await genReport(data, "รายชื่อผู้สอบแข่งขันได้", "pdf");
|
||||||
})
|
})
|
||||||
.catch(async (e) => {
|
.catch(async (e) => {
|
||||||
|
|
|
||||||
|
|
@ -186,10 +186,9 @@ const visibleColumnsHistory = ref<String[]>([
|
||||||
async function clickPassExam(id: string) {
|
async function clickPassExam(id: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.exportDisablePassExamList(id))
|
.get(config.API.repoetDownloadDisableExam(id))
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
data.reportName = `CandidateList`;
|
|
||||||
await genReport(data, "รายชื่อผู้สอบแข่งขันได้", "pdf");
|
await genReport(data, "รายชื่อผู้สอบแข่งขันได้", "pdf");
|
||||||
})
|
})
|
||||||
.catch(async (e) => {
|
.catch(async (e) => {
|
||||||
|
|
@ -422,7 +421,7 @@ async function checkSaveResult() {
|
||||||
fd.append("attachment", files_result.value[0]);
|
fd.append("attachment", files_result.value[0]);
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.post(config.API.uploadResult(selected_row_id.value), fd)
|
.post(config.API.repoetUploadDisableExam(selected_row_id.value), fd)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
success($q, "นำเข้าข้อมูลผลการสอบแข่งขันฯ (บัญชีรายชื่อ)");
|
success($q, "นำเข้าข้อมูลผลการสอบแข่งขันฯ (บัญชีรายชื่อ)");
|
||||||
modalResult.value = false;
|
modalResult.value = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue