เงืนเดือนค่าจ้่าง => แสเดงรายการทั้งหมด
This commit is contained in:
parent
40cbf40b6f
commit
d04c6f30f5
6 changed files with 56 additions and 19 deletions
|
|
@ -39,6 +39,7 @@ const formFilter = reactive<FormFilter>({
|
|||
keyword: "",
|
||||
});
|
||||
const maxPage = ref<number>(1);
|
||||
const totalList = ref<number>(0);
|
||||
|
||||
/** ข้อมูล Table*/
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
|
|
@ -119,6 +120,7 @@ function fetchListChart() {
|
|||
)
|
||||
.then((res) => {
|
||||
rows.value = res.data.result.data;
|
||||
totalList.value = res.data.result.total;
|
||||
maxPage.value = Math.ceil(res.data.result.total / formFilter.pageSize);
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
@ -349,6 +351,7 @@ onMounted(() => {
|
|||
</q-tr>
|
||||
</template>
|
||||
<template v-slot:pagination="scope">
|
||||
ทั้งหมด {{ totalList }} รายการ
|
||||
<q-pagination
|
||||
v-model="formFilter.page"
|
||||
active-color="primary"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue