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))
|
.get(config.API.exportPassExam(importId.value))
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const dataList = res.data.result;
|
const dataList = res.data.result;
|
||||||
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้สอบผ่านภาค ก.");
|
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้สอบผ่านภาค ข.");
|
||||||
})
|
})
|
||||||
.catch(async (e) => {
|
.catch(async (e) => {
|
||||||
messageError($q, JSON.parse(await e.response.data.text()));
|
messageError($q, JSON.parse(await e.response.data.text()));
|
||||||
|
|
@ -465,7 +465,7 @@ onMounted(async () => {
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click="downloadPassExam()">
|
<q-item clickable v-close-popup @click="downloadPassExam()">
|
||||||
<q-item-section class="text-primary"
|
<q-item-section class="text-primary"
|
||||||
>ส่งออกข้อมูลผู้สอบผ่านภาค ก.</q-item-section
|
>ส่งออกข้อมูลผู้สอบผ่านภาค ข.</q-item-section
|
||||||
>
|
>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click="downloadPassResultExam()">
|
<q-item clickable v-close-popup @click="downloadPassResultExam()">
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,7 @@ async function clickPassExam(id: string) {
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
data.reportName = `CandidateList`;
|
data.reportName = `CandidateList`;
|
||||||
await genReport(data, data.reportName, "pdf");
|
await genReport(data, "รายชื่อผู้สอบแข่งขันได้", "pdf");
|
||||||
})
|
})
|
||||||
.catch(async (e) => {
|
.catch(async (e) => {
|
||||||
messageError($q, JSON.parse(await e.response.data.text()));
|
messageError($q, JSON.parse(await e.response.data.text()));
|
||||||
|
|
@ -252,7 +252,7 @@ async function clickCandidateList(id: string) {
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
data.reportName = `CandidateList`;
|
data.reportName = `CandidateList`;
|
||||||
await genReport(data, data.reportName, "pdf");
|
await genReport(data, "รายชื่อผู้มีสิทธิ์สอบ", "pdf");
|
||||||
})
|
})
|
||||||
.catch(async (e) => {
|
.catch(async (e) => {
|
||||||
messageError($q, JSON.parse(await e.response.data.text()));
|
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-icon name="mdi-file-excel-outline" size="20px" />
|
||||||
<!-- นำเข้าไฟล์ผลคะแนนสอบ -->
|
<!-- นำเข้าไฟล์ผลคะแนนสอบ -->
|
||||||
<q-tooltip
|
<q-tooltip>นำเข้าไฟล์บัญชีรวมคะแนน</q-tooltip>
|
||||||
>นำเข้าไฟล์บัญชีรวมคะแนน</q-tooltip
|
|
||||||
>
|
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
{{ props.row.score.scoreCount }}
|
{{ props.row.score.scoreCount }}
|
||||||
|
|
@ -686,10 +684,7 @@ onMounted(async () => {
|
||||||
>
|
>
|
||||||
<q-icon name="mdi-file-excel-outline" size="20px" />
|
<q-icon name="mdi-file-excel-outline" size="20px" />
|
||||||
<!-- นำเข้าไฟล์ผลคะแนนสอบ -->
|
<!-- นำเข้าไฟล์ผลคะแนนสอบ -->
|
||||||
<q-tooltip
|
<q-tooltip>นำเข้าไฟล์บัญชีรวมคะแนน อีกครั้ง</q-tooltip>
|
||||||
>นำเข้าไฟล์บัญชีรวมคะแนน
|
|
||||||
อีกครั้ง</q-tooltip
|
|
||||||
>
|
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -704,7 +699,8 @@ onMounted(async () => {
|
||||||
round
|
round
|
||||||
@click.stop.prevent="clickResult(props.row.id)"
|
@click.stop.prevent="clickResult(props.row.id)"
|
||||||
v-if="
|
v-if="
|
||||||
(props.row.score == null || props.row.score.resultCount == 0) &&
|
(props.row.score == null ||
|
||||||
|
props.row.score.resultCount == 0) &&
|
||||||
checkPermission($route)?.attrIsUpdate
|
checkPermission($route)?.attrIsUpdate
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue