เพิ่ม pagination

This commit is contained in:
setthawutttty 2025-02-20 10:53:36 +07:00
parent 37c2c1a685
commit 66f59ef324

View file

@ -91,6 +91,10 @@ const org = ref<string>("");
const isProbation = ref<boolean>(false);
const isRetire = ref<boolean>(false);
const pagination = ref<any>({
page: 1,
rowsPerPage: 10,
});
const sortBy = ref<string>("ASC");
const retireType = ref<string>("");
const retireTypeOps = ref<DataOption[]>([]);
@ -476,7 +480,7 @@ function getEducationLevel() {
async function onSearch() {
loadingBtn.value = true;
pagination.value.page = 1;
const queryParams = {
node: storeReport.formFilter.node ?? null,
nodeId: storeReport.formFilter.nodeId ?? "",
@ -1187,6 +1191,8 @@ onMounted(async () => {
:rows="rows"
row-key="id"
:visible-columns="visibleColumns"
v-model:pagination="pagination"
:rows-per-page-options="[10, 25, 50, 100]"
>
<template v-slot:header="props">
<q-tr :props="props">