ปรับ paging ทะเบียนประวัติ และตำแหน่งของทะเบียนประวัติใหม่
This commit is contained in:
parent
1958d4db7d
commit
93c4fb9139
3 changed files with 33 additions and 32 deletions
|
|
@ -109,6 +109,7 @@ function fetchYearOption() {
|
|||
}
|
||||
}
|
||||
|
||||
const total = ref<number>(0);
|
||||
async function fetchDataPerson(search: boolean = false) {
|
||||
showLoader();
|
||||
|
||||
|
|
@ -150,6 +151,7 @@ async function fetchDataPerson(search: boolean = false) {
|
|||
.then((res) => {
|
||||
maxPage.value = Math.ceil(res.data.result.total / formFilter.pageSize);
|
||||
dataPersonMain.value = res.data.result.data;
|
||||
total.value = res.data.result.total;
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
@ -603,6 +605,7 @@ onMounted(async () => {
|
|||
v-model:maxPage="maxPage"
|
||||
:fetchData="fetchDataPerson"
|
||||
:fetchType="fetchType"
|
||||
:total="total"
|
||||
/>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue