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