รายการผังบัญชีเงินเดือน (แสดงรายการทั้งหมด)

This commit is contained in:
setthawutttty 2024-03-05 15:20:22 +07:00
parent de168d6209
commit 76baa113f8

View file

@ -31,6 +31,7 @@ const {
success,
} = useCounterMixin();
const total = ref<number>()
/** modalDialog*/
const modalDialogFormMain = ref<boolean>(false);
const modalUpload = ref<boolean>(false);
@ -154,6 +155,7 @@ async function fetchListSalaly() {
`?page=${page}&pageSize=${pageSize}&keyword=${keyword}`
)
.then((res) => {
total.value = res.data.result.total
maxPage.value = Math.ceil(res.data.result.total / formQuery.pageSize);
const data = res.data.result.data;
rows.value = data;
@ -284,7 +286,7 @@ async function filterFn(page: number) {
bordered
:paging="true"
dense
:rows-per-page-options="[2, 10, 25, 50, 100]"
:rows-per-page-options="[10, 25, 50, 100]"
@update:pagination="updatePagination"
:visible-columns="visibleColumns"
>
@ -371,6 +373,7 @@ async function filterFn(page: number) {
</q-tr>
</template>
<template v-slot:pagination="scope">
งหมด {{ total }} รายการ
<q-pagination
v-model="formQuery.page"
active-color="primary"