fix
This commit is contained in:
parent
a0e3e88e7e
commit
fced27b6f5
9 changed files with 201 additions and 35 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue