Merge commit 'e4bdf45beb' into develop
This commit is contained in:
commit
37a5350825
3 changed files with 7 additions and 6 deletions
|
|
@ -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}`
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
@ -985,7 +984,7 @@ onMounted(async () => {
|
|||
<q-file
|
||||
v-model="files_result"
|
||||
dense
|
||||
label="เลือกไฟล์การสอบ"
|
||||
label="เลือกไฟล์ผลการสอบ"
|
||||
outlined
|
||||
use-chips
|
||||
multiple
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -931,7 +930,7 @@ onMounted(async () => {
|
|||
<q-file
|
||||
v-model="files_result"
|
||||
dense
|
||||
label="เลือกไฟล์การสอบ"
|
||||
label="เลือกไฟล์ผลการสอบ"
|
||||
outlined
|
||||
use-chips
|
||||
multiple
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue