รายการ ทั้งหมด

This commit is contained in:
STW_TTTY\stwtt 2024-04-29 18:04:55 +07:00
parent bebdfbfce5
commit efb095b37a
4 changed files with 8 additions and 0 deletions

View file

@ -101,6 +101,7 @@ const formQuery = reactive({
page: 1,
pageSize: 10,
});
const total = ref<number>(0);
const totalList = ref<number>(1);
const isRoundClose = ref<boolean>(false);
@ -150,6 +151,7 @@ function fetchList() {
)
.then((res) => {
const data = res.data.result;
total.value = data.total;
totalList.value = Math.ceil(data.total / formQuery.pageSize);
rows.value = data.data;
})
@ -460,6 +462,7 @@ onMounted(() => {
</q-tr>
</template>
<template v-slot:pagination="scope">
งหมด {{ total }} รายการ
<q-pagination
v-model="formQuery.page"
active-color="primary"