This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-11-19 11:55:43 +07:00
parent a0e3e88e7e
commit fced27b6f5
9 changed files with 201 additions and 35 deletions

View file

@ -27,6 +27,7 @@ const selected = ref<string[]>([]);
const { messageError, showLoader, hideLoader } = mixin;
const dateFilter = ref<[Date, Date]>([new Date(), new Date()]); //
const isFee = defineModel<boolean>("isFee");
const props = defineProps({
inputfilter: String,
inputvisible: Array,
@ -393,6 +394,20 @@ async function clickCandidateList() {
});
}
async function onCheckShowExaminfo() {
try {
showLoader();
await http.post(config.API.checkShowExaminfo, {
examId: examId.value,
});
await props.fetchData();
} catch (error) {
messageError($q, error);
} finally {
hideLoader();
}
}
// Pagination - page & change page & get new data
const currentPage = ref<number>(1);
watch(
@ -461,7 +476,7 @@ watch(
</div>
</div>
</q-card>
<div class="col-12 row q-py-sm items-center q-col-gutter-sm">
<div class="col-xs-12 col-sm-3" v-show="!statusPayment">
<q-select
@ -479,7 +494,7 @@ watch(
v-if="optionsFilter != undefined && optionsFilter.length > 0"
/>
</div>
<div>
<div v-if="isFee">
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
size="md"
@ -495,6 +510,21 @@ watch(
<q-tooltip>ตรวจสอบขอม/ไดบใบสมครแล</q-tooltip>
</q-btn>
</div>
<div>
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
size="md"
icon="mdi-eye-check"
round
flat
color="info"
@click="onCheckShowExaminfo"
>
<q-tooltip
>เปดใหดาวนโหลดใบสมคร แสดงสถานทสอบ และเลขประจำตวสอบ</q-tooltip
>
</q-btn>
</div>
<div>
<q-btn icon="mdi-download" round color="green-6" flat>
<q-tooltip>ดาวนโหลดไฟล</q-tooltip>
@ -623,7 +653,10 @@ watch(
</template>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width v-if="checkPermission($route)?.attrIsUpdate">
<q-th
auto-width
v-if="checkPermission($route)?.attrIsUpdate && isFee"
>
<q-checkbox v-model="props.selected" />
</q-th>
<q-th auto-width v-if="boss == true" />