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" >