fix: compete report name

This commit is contained in:
Warunee Tamkoo 2025-09-05 11:42:43 +07:00
parent 1f10690c93
commit cd73e32229
2 changed files with 8 additions and 12 deletions

View file

@ -318,7 +318,7 @@ async function downloadPassExam() {
.get(config.API.exportPassExam(importId.value))
.then(async (res) => {
const dataList = res.data.result;
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้สอบผ่านภาค .");
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้สอบผ่านภาค .");
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
@ -465,7 +465,7 @@ onMounted(async () => {
</q-item>
<q-item clickable v-close-popup @click="downloadPassExam()">
<q-item-section class="text-primary"
>งออกขอมลผสอบผานภาค .</q-item-section
>งออกขอมลผสอบผานภาค .</q-item-section
>
</q-item>
<q-item clickable v-close-popup @click="downloadPassResultExam()">

View file

@ -231,7 +231,7 @@ async function clickPassExam(id: string) {
.then(async (res) => {
const data = res.data.result;
data.reportName = `CandidateList`;
await genReport(data, data.reportName, "pdf");
await genReport(data, "รายชื่อผู้สอบแข่งขันได้", "pdf");
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
@ -252,7 +252,7 @@ async function clickCandidateList(id: string) {
.then(async (res) => {
const data = res.data.result;
data.reportName = `CandidateList`;
await genReport(data, data.reportName, "pdf");
await genReport(data, "รายชื่อผู้มีสิทธิ์สอบ", "pdf");
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
@ -668,9 +668,7 @@ onMounted(async () => {
>
<q-icon name="mdi-file-excel-outline" size="20px" />
<!-- นำเขาไฟลผลคะแนนสอบ -->
<q-tooltip
>นำเขาไฟลญชรวมคะแนน</q-tooltip
>
<q-tooltip>นำเขาไฟลญชรวมคะแนน</q-tooltip>
</q-btn>
<div v-else>
{{ props.row.score.scoreCount }}
@ -686,10 +684,7 @@ onMounted(async () => {
>
<q-icon name="mdi-file-excel-outline" size="20px" />
<!-- นำเขาไฟลผลคะแนนสอบ -->
<q-tooltip
>นำเขาไฟลญชรวมคะแนน
กคร</q-tooltip
>
<q-tooltip>นำเขาไฟลญชรวมคะแนน กคร</q-tooltip>
</q-btn>
</div>
</div>
@ -704,7 +699,8 @@ onMounted(async () => {
round
@click.stop.prevent="clickResult(props.row.id)"
v-if="
(props.row.score == null || props.row.score.resultCount == 0) &&
(props.row.score == null ||
props.row.score.resultCount == 0) &&
checkPermission($route)?.attrIsUpdate
"
>