From 4f93c38fc0b4bd1be42b708de4a60045cf1e327c Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 25 Mar 2024 14:08:04 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/registry/api.registry.ts | 13 + .../detail/GovernmentInformation/01_Info.vue | 168 ++++++++----- .../detail/GovernmentInformation/03_Leave.vue | 230 ++++++++++-------- .../GovernmentInformation/03_LeaveHistory.vue | 11 +- .../04_registryNew/interface/index/leave.ts | 1 + 5 files changed, 252 insertions(+), 171 deletions(-) diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index 8647a7385..cc66adb93 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -109,4 +109,17 @@ profileNewDutyByDutyId: (dutyId: string) => `${registryNew}duty/${dutyId}`, profileNewDutyHisByDutyId: (dutyId: string) => `${registryNew}duty/history/${dutyId}`, + + +//ข้อมูลราชการ +profileNewGovernment:()=>`${registryNew}government`, +profileNewGovernmentById:(id:string)=>`${registryNew}government/${id}`, +profileNewGovernmentHistory:(id:string)=>`${registryNew}government/history/${id}`, + +//การลา +profileNewLeave:()=>`${registryNew}leave`, +profileNewLeaveById:(id:string)=>`${registryNew}leave/${id}`, +profileNewLeaveHistory:(id:string)=>`${registryNew}leave/history/${id}`, +profileCheckDate:()=>`${env.API_URI}/leave/user/check`, +profileNewLeaveType:()=>`${env.API_URI}/leave/type`, }; diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue index d87c7f308..a1801bbbc 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue @@ -1,5 +1,5 @@