fix: แก้ API

This commit is contained in:
setthawutttty 2025-09-09 13:59:54 +07:00
parent e1b089fc59
commit e4bdf45beb
3 changed files with 5 additions and 4 deletions

View file

@ -37,4 +37,7 @@ export default {
exportDisablePassExamList: (id: string) => `${diable_report}pass/${id}`,
periodDisableToPlacement: (examId: string) =>
`${disableExam}placement/${examId}`,
repoetUploadDisableExam:(id:string)=>`${disableExam}result/${id}`,
repoetDownloadDisableExam:(id:string)=>`${disableExam}report/exam/${id}`
};

View file

@ -230,7 +230,6 @@ async function clickPassExam(id: string) {
.get(config.API.exportPassExamList(id))
.then(async (res) => {
const data = res.data.result;
data.reportName = `CandidateList`;
await genReport(data, "รายชื่อผู้สอบแข่งขันได้", "pdf");
})
.catch(async (e) => {

View file

@ -186,10 +186,9 @@ const visibleColumnsHistory = ref<String[]>([
async function clickPassExam(id: string) {
showLoader();
await http
.get(config.API.exportDisablePassExamList(id))
.get(config.API.repoetDownloadDisableExam(id))
.then(async (res) => {
const data = res.data.result;
data.reportName = `CandidateList`;
await genReport(data, "รายชื่อผู้สอบแข่งขันได้", "pdf");
})
.catch(async (e) => {
@ -422,7 +421,7 @@ async function checkSaveResult() {
fd.append("attachment", files_result.value[0]);
showLoader();
await http
.post(config.API.uploadResult(selected_row_id.value), fd)
.post(config.API.repoetUploadDisableExam(selected_row_id.value), fd)
.then((res) => {
success($q, "นำเข้าข้อมูลผลการสอบแข่งขันฯ (บัญชีรายชื่อ)");
modalResult.value = false;