From 4b316bcfe0cdc4945e277e35105305ad564e622e Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Mon, 1 Apr 2024 11:20:49 +0700 Subject: [PATCH] paging --- src/api/registry/api.profile.ts | 1 + .../04_registry/components/TableProfile.vue | 40 ++++++++++++++----- src/modules/04_registry/views/Main.vue | 32 ++++++++++++--- 3 files changed, 56 insertions(+), 17 deletions(-) diff --git a/src/api/registry/api.profile.ts b/src/api/registry/api.profile.ts index 60d6650be..ca388d7cd 100644 --- a/src/api/registry/api.profile.ts +++ b/src/api/registry/api.profile.ts @@ -212,4 +212,5 @@ export default { /**ปรับรายการเงินเดือนขึ้น-ลง*/ salarySwap: (dierction: string, id: string) => `${profile}salary/swap/${dierction}/${id}`, + listProfileNew:(id:string,page:number,pageSize:number)=>`${profile}search/new-page/oc/${id}/officer?page=${page}&pageSize=${pageSize}` }; diff --git a/src/modules/04_registry/components/TableProfile.vue b/src/modules/04_registry/components/TableProfile.vue index 7f97f0cc0..f4a9f1e66 100644 --- a/src/modules/04_registry/components/TableProfile.vue +++ b/src/modules/04_registry/components/TableProfile.vue @@ -11,19 +11,19 @@ dense virtual-scroll :virtual-scroll-sticky-size-start="48" - :rows-per-page-options="[10, 25, 50, 100]" + :pagination-label="paginationLabel" v-model:pagination="pagination" > -