From 76baa113f82951756c54e522561e58600a27ca6d Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 5 Mar 2024 15:20:22 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=9C=E0=B8=B1=E0=B8=87=E0=B8=9A=E0=B8=B1=E0=B8=8D?= =?UTF-8?q?=E0=B8=8A=E0=B8=B5=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80?= =?UTF-8?q?=E0=B8=94=E0=B8=B7=E0=B8=AD=E0=B8=99=20(=E0=B9=81=E0=B8=AA?= =?UTF-8?q?=E0=B8=94=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=97=E0=B8=B1=E0=B9=89=E0=B8=87=E0=B8=AB=E0=B8=A1?= =?UTF-8?q?=E0=B8=94)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/13_salary/views/salaryChart.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/13_salary/views/salaryChart.vue b/src/modules/13_salary/views/salaryChart.vue index ca827071c..7871a46a3 100644 --- a/src/modules/13_salary/views/salaryChart.vue +++ b/src/modules/13_salary/views/salaryChart.vue @@ -31,6 +31,7 @@ const { success, } = useCounterMixin(); +const total = ref() /** modalDialog*/ const modalDialogFormMain = ref(false); const modalUpload = ref(false); @@ -154,6 +155,7 @@ async function fetchListSalaly() { `?page=${page}&pageSize=${pageSize}&keyword=${keyword}` ) .then((res) => { + total.value = res.data.result.total maxPage.value = Math.ceil(res.data.result.total / formQuery.pageSize); const data = res.data.result.data; rows.value = data; @@ -284,7 +286,7 @@ async function filterFn(page: number) { bordered :paging="true" dense - :rows-per-page-options="[2, 10, 25, 50, 100]" + :rows-per-page-options="[10, 25, 50, 100]" @update:pagination="updatePagination" :visible-columns="visibleColumns" > @@ -371,6 +373,7 @@ async function filterFn(page: number) {