diff --git a/src/modules/09_leave/components/1_Work/Tab1.vue b/src/modules/09_leave/components/1_Work/Tab1.vue index db0a08e78..5156d6679 100644 --- a/src/modules/09_leave/components/1_Work/Tab1.vue +++ b/src/modules/09_leave/components/1_Work/Tab1.vue @@ -28,7 +28,7 @@ const $q = useQuasar(); //ใช้ noti quasar /** ตัวแปร querySting*/ const keyword = ref(""); const page = ref(1); -const rowsPerPage = ref(3); +const rowsPerPage = ref(10); const maxPage = ref(1); const filetStatus = ref("ALL"); diff --git a/src/modules/09_leave/components/1_Work/Tab2.vue b/src/modules/09_leave/components/1_Work/Tab2.vue index 69cac47d5..f5596dfdd 100644 --- a/src/modules/09_leave/components/1_Work/Tab2.vue +++ b/src/modules/09_leave/components/1_Work/Tab2.vue @@ -95,7 +95,7 @@ const rows = ref([]); /** ตัวแปร QueryString*/ const keyword = ref(""); const page = ref(1); -const rowsPerPage = ref(2); +const rowsPerPage = ref(10); const maxPage = ref(1); /** function เรียกข้อมูลรายการลงเวลาปฏิบัติงาน (รายการลงเวลา) */ diff --git a/src/modules/09_leave/components/1_Work/TableList.vue b/src/modules/09_leave/components/1_Work/TableList.vue index 6a39974a6..e72e5e330 100644 --- a/src/modules/09_leave/components/1_Work/TableList.vue +++ b/src/modules/09_leave/components/1_Work/TableList.vue @@ -84,6 +84,11 @@ function closeDetail() { watch([() => currentPage.value, () => pagination.value.rowsPerPage], () => { updateProp(pagination.value, currentPage.value); }); + +function updateRowsPerPagen(newPagination: any) { + pagination.value.rowsPerPage = newPagination.rowsPerPage; + currentPage.value = 1; +}