fix: แก้สรรหา

This commit is contained in:
setthawutttty 2025-09-10 12:04:53 +07:00
parent 40e2b34617
commit 22d1fbed58
5 changed files with 17 additions and 18 deletions

View file

@ -104,7 +104,7 @@ async function downloadScore() {
.get(config.API.examReport(importId.value, examId.value))
.then(async (res) => {
const data = res.data.result;
await genReport(data, `ผลคะแนน_${examId.value}.pdf`,'pdf');
await genReport(data, `ผลคะแนน_${examId.value}`, "pdf");
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
@ -332,10 +332,10 @@ onMounted(async () => {
ภาคความรความสามารถทใชเฉพาะตำแหน (ภาค )
</div>
<div class="col-xs-3 col-sm-2 q-pr-xs">
{{ scoreAFull ? scoreAFull:'-' }}
{{ scoreAFull ? scoreAFull : "-" }}
</div>
<div class="col-xs-3 col-sm-2 q-pr-xs">
{{ scoreA ? scoreA:'-' }}
{{ scoreA ? scoreA : "-" }}
</div>
<div class="col-xs-2 col-sm-2 q-pr-xs text-grey-7">คะแนน</div>

View file

@ -231,6 +231,7 @@ 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) => {