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

@ -32,6 +32,7 @@ const yearly = ref<number | null>(null);
const examId = ref<string>(route.params.examId.toString());
const visible = ref<boolean>(false); // card
const dataNum = ref<DataNumObject[]>([]); //
const isFee = ref<boolean>(false);
const rows = ref<any[]>([]);
const visibleColumns = ref<String[]>([
"no",
@ -279,6 +280,7 @@ async function fetchData(loading: boolean = true) {
position: `${r.positionName}${r.positionLevelName}`,
positionLevel: r.positionLevelName,
check: false,
isShowExamInfo: r.isShowExamInfo,
});
});
}
@ -303,6 +305,7 @@ async function fetchPeriodExam() {
yearly.value = data.year;
statusPayment.value = data.status;
setSeat.value = data.setSeat;
isFee.value = data.fee === 0 ? false : true;
})
.catch((e) => {
messageError($q, e);
@ -489,10 +492,14 @@ onMounted(async () => {
:page="page"
@update:change-page="changePage"
:max-page="maxPage"
:is-fee="isFee"
>
<template #columns="props">
<q-tr :props="props" class="cursor-pointer">
<q-td auto-width v-if="checkPermission($route)?.attrIsUpdate">
<q-td
auto-width
v-if="checkPermission($route)?.attrIsUpdate && isFee"
>
<q-checkbox v-model="props.selected" />
</q-td>
<q-td