From 00d01ec9863f6b8772ffba566062b1c9c35e6fa4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 26 Apr 2024 11:06:38 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=A1?= =?UTF-8?q?=E0=B8=B4=E0=B8=99=E0=B8=9A=E0=B8=B8=E0=B8=84=E0=B8=84=E0=B8=A5?= =?UTF-8?q?=3D>=20=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20paging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Director/MainPage.vue | 46 +++++++++---------- .../components/Meeting/MainPage.vue | 46 +++++++++---------- .../12_evaluatePersonal/views/MainPage.vue | 32 ++----------- 3 files changed, 51 insertions(+), 73 deletions(-) diff --git a/src/modules/12_evaluatePersonal/components/Director/MainPage.vue b/src/modules/12_evaluatePersonal/components/Director/MainPage.vue index cc0308f3e..1abe0087e 100644 --- a/src/modules/12_evaluatePersonal/components/Director/MainPage.vue +++ b/src/modules/12_evaluatePersonal/components/Director/MainPage.vue @@ -13,36 +13,36 @@ const dataStore = useEvaluateDirectorDataStore(); const mixin = useCounterMixin(); const { messageError, showLoader, hideLoader, dialogRemove, success } = mixin; -const currentPage = ref(1); -const maxPage = ref(1); -const page = ref(1); -const rowsPerPage = ref(10); +// const currentPage = ref(1); +// const maxPage = ref(1); +// const page = ref(1); +// const rowsPerPage = ref(10); /** *pagination ของตาราง */ const pagination = ref({ descending: false, - page: page.value, - rowsPerPage: rowsPerPage.value, + page: 1, + rowsPerPage: 10, }); -watch( - () => currentPage.value, - () => { - rowsPerPage.value = pagination.value.rowsPerPage; - getList(); - } -); +// watch( +// () => currentPage.value, +// () => { +// rowsPerPage.value = pagination.value.rowsPerPage; +// getList(); +// } +// ); -watch( - () => pagination.value.rowsPerPage, - () => { - rowsPerPage.value = pagination.value.rowsPerPage; - currentPage.value = 1; - getList(); - } -); +// watch( +// () => pagination.value.rowsPerPage, +// () => { +// rowsPerPage.value = pagination.value.rowsPerPage; +// currentPage.value = 1; +// getList(); +// } +// ); function getList() { showLoader(); @@ -180,7 +180,7 @@ onMounted(() => { v-model:pagination="pagination" :visible-columns="dataStore.visibleColumns" > -