From 817d4da196b14825d0f58c94c9acacd75fa6081c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 17 Nov 2023 15:28:03 +0700 Subject: [PATCH] =?UTF-8?q?paging=20=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../09_leave/components/1_Work/Tab1.vue | 1 - .../09_leave/components/2_Leave/TableList.vue | 65 ++++++-- .../09_leave/components/2_Leave/ToolBar.vue | 133 +++++++++++++++-- src/modules/09_leave/interface/index/Main.ts | 12 +- .../09_leave/interface/request/leave.ts | 17 ++- .../09_leave/interface/response/leave.ts | 10 +- src/modules/09_leave/stores/LeaveStore.ts | 141 +----------------- src/modules/09_leave/views/LeaveListMain.vue | 61 ++++++-- 8 files changed, 248 insertions(+), 192 deletions(-) diff --git a/src/modules/09_leave/components/1_Work/Tab1.vue b/src/modules/09_leave/components/1_Work/Tab1.vue index ed16da718..ebcf9745a 100644 --- a/src/modules/09_leave/components/1_Work/Tab1.vue +++ b/src/modules/09_leave/components/1_Work/Tab1.vue @@ -152,7 +152,6 @@ async function fetchListTimeRecord() { ]; const date = new Date(workStore.selectDate as string | Date); - const querySting = { startDate: dateToISO(date), //*วันที่เริ่ม endDate: dateToISO(date), //*วันที่สิ้นสุด status: filetStatus.value, //*สถานะ diff --git a/src/modules/09_leave/components/2_Leave/TableList.vue b/src/modules/09_leave/components/2_Leave/TableList.vue index cbd3ca300..56eaf4e88 100644 --- a/src/modules/09_leave/components/2_Leave/TableList.vue +++ b/src/modules/09_leave/components/2_Leave/TableList.vue @@ -1,5 +1,5 @@ @@ -89,7 +122,6 @@ const pagination = ref({ ref="table" :columns="columns" :rows="leaveStore.rows" - :filter="leaveStore.filterTable" row-key="id" flat bordered @@ -98,7 +130,6 @@ const pagination = ref({ class="custom-header-table" :visible-columns="leaveStore.visibleColumns" v-model:pagination="pagination" - :loading="leaveStore.loadTable" > - diff --git a/src/modules/09_leave/components/2_Leave/ToolBar.vue b/src/modules/09_leave/components/2_Leave/ToolBar.vue index 0742441b9..c8cc60529 100644 --- a/src/modules/09_leave/components/2_Leave/ToolBar.vue +++ b/src/modules/09_leave/components/2_Leave/ToolBar.vue @@ -1,9 +1,116 @@