fix: compete report name
This commit is contained in:
parent
1f10690c93
commit
cd73e32229
2 changed files with 8 additions and 12 deletions
|
|
@ -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()">
|
||||
|
|
|
|||
|
|
@ -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
|
||||
"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue