แก้ชื่อเมนูสรรหา

This commit is contained in:
Kittapath 2023-09-23 20:45:21 +07:00
parent 057e5d4848
commit e7128c9367
2 changed files with 28 additions and 6 deletions

View file

@ -73,7 +73,7 @@
@click.stop.prevent="clickPassExam(props.row.id)"
icon="mdi-clipboard-arrow-down"
>
<q-tooltip>ดาวนโหลดรายชอผสอบแขงขได</q-tooltip>
<q-tooltip>ดาวนโหลดรายชอผสอบดเลอกคนพการได</q-tooltip>
</q-btn>
</div>
</div>

View file

@ -108,7 +108,7 @@
@click.stop.prevent="clickPassExam()"
icon="mdi-clipboard-arrow-down"
>
<q-tooltip>ดาวนโหลดรายชอผสอบแขงขได</q-tooltip>
<q-tooltip>ดาวนโหลดรายชอผสอบดเลอกได</q-tooltip>
</q-btn>
</div>
<div class="col-12">
@ -496,12 +496,34 @@ onMounted(async () => {
await fetchDataCom();
});
const clickPassExam = () => {
window.open(config.API.exportExamPassExamList(examId.value));
const clickPassExam = async () => {
showLoader();
await http
.get(config.API.exportExamPassExamList(examId.value))
.then((res) => {
window.open(config.API.exportExamPassExamList(examId.value));
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
};
const clickCandidateList = () => {
window.open(config.API.exportExamCandidateList(examId.value));
const clickCandidateList = async () => {
showLoader();
await http
.get(config.API.exportExamCandidateList(examId.value))
.then((res) => {
window.open(config.API.exportExamCandidateList(examId.value));
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
};
const fetchDataCom = async () => {