เพิ่ม pagination
This commit is contained in:
parent
37c2c1a685
commit
66f59ef324
1 changed files with 7 additions and 1 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue