เพิ่ม 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 isProbation = ref<boolean>(false);
|
||||||
const isRetire = ref<boolean>(false);
|
const isRetire = ref<boolean>(false);
|
||||||
|
|
||||||
|
const pagination = ref<any>({
|
||||||
|
page: 1,
|
||||||
|
rowsPerPage: 10,
|
||||||
|
});
|
||||||
const sortBy = ref<string>("ASC");
|
const sortBy = ref<string>("ASC");
|
||||||
const retireType = ref<string>("");
|
const retireType = ref<string>("");
|
||||||
const retireTypeOps = ref<DataOption[]>([]);
|
const retireTypeOps = ref<DataOption[]>([]);
|
||||||
|
|
@ -476,7 +480,7 @@ function getEducationLevel() {
|
||||||
|
|
||||||
async function onSearch() {
|
async function onSearch() {
|
||||||
loadingBtn.value = true;
|
loadingBtn.value = true;
|
||||||
|
pagination.value.page = 1;
|
||||||
const queryParams = {
|
const queryParams = {
|
||||||
node: storeReport.formFilter.node ?? null,
|
node: storeReport.formFilter.node ?? null,
|
||||||
nodeId: storeReport.formFilter.nodeId ?? "",
|
nodeId: storeReport.formFilter.nodeId ?? "",
|
||||||
|
|
@ -1187,6 +1191,8 @@ onMounted(async () => {
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
|
v-model:pagination="pagination"
|
||||||
|
:rows-per-page-options="[10, 25, 50, 100]"
|
||||||
>
|
>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue