fix: pagination

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-06-08 17:11:09 +07:00
parent 5c05df26cf
commit 5ba2a6dce5
3 changed files with 27 additions and 42 deletions

View file

@ -115,6 +115,7 @@ async function fetchlistTime() {
async function updateYear(y: number, m: number) {
stores.tab === 'history' ? (year.value = y) : (year2.value = y)
month.value = m
page.value = 1 //
await functionFetch() // functionFetch
}
@ -177,9 +178,9 @@ watch(
/>
<TableHistory
:fetch-data="functionFetch"
:page-size="pageSize"
v-model:page-size="pageSize"
:total="total"
:page="page"
v-model:page="page"
:paging="true"
@update:change-page="changePage"
:max-page="maxPage"
@ -196,9 +197,9 @@ watch(
/>
<TableHistory
:fetch-data="functionFetch"
:page-size="pageSize"
v-model:page-size="pageSize"
:total="total"
:page="page"
v-model:page="page"
:paging="true"
@update:change-page="changePage"
:max-page="maxPage"