From fb7b4060c94245d8d6bf253161e63fc704528257 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 7 Jul 2025 18:13:29 +0700 Subject: [PATCH] =?UTF-8?q?fix=20updateCurrentPage=20=3D=3D>=20=E0=B8=9C?= =?UTF-8?q?=E0=B8=B1=E0=B8=87=E0=B8=9A=E0=B8=B1=E0=B8=8D=E0=B8=8A=E0=B8=B5?= =?UTF-8?q?=E0=B8=84=E0=B9=88=E0=B8=B2=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87?= =?UTF-8?q?=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=88=E0=B8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/02_salaryEmployee/TabStructure.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/13_salary/components/02_salaryEmployee/TabStructure.vue b/src/modules/13_salary/components/02_salaryEmployee/TabStructure.vue index d6ef43154..a3b10b375 100644 --- a/src/modules/13_salary/components/02_salaryEmployee/TabStructure.vue +++ b/src/modules/13_salary/components/02_salaryEmployee/TabStructure.vue @@ -5,6 +5,7 @@ import { useQuasar } from "quasar"; import { useRouter } from "vue-router"; import http from "@/plugins/http"; import config from "@/app.config"; +import { updateCurrentPage } from "@/utils/function"; /** importType*/ import type { QTableProps } from "quasar"; @@ -179,6 +180,11 @@ function onClickDelete(id: string) { http .delete(config.API.salaryEmployeeChartByid(id)) .then(async () => { + formFilter.page = await updateCurrentPage( + formFilter.page, + maxPage.value, + rows.value.length + ); await fetchListChart(); await success($q, "ลบข้อมูลสำเร็จ"); }) @@ -282,7 +288,7 @@ onMounted(() => { :rows="rows" :columns="columns" row-key="name" - :rows-per-page-options="[10, 20, 50, 100]" + :rows-per-page-options="[1, 10, 20, 50, 100]" :visible-columns="visibleColumns" @update:pagination="updatePageSize" >