From b7ee12468a0f6fd957febf07e813282a89b528e3 Mon Sep 17 00:00:00 2001 From: AnandaTon <125332905+anandaAiemvong@users.noreply.github.com> Date: Mon, 24 Jul 2023 17:29:21 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20tap=20?= =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=82=E0=B8=A7=E0=B8=B2?= =?UTF-8?q?=E0=B9=83=E0=B8=99=20=20addEmployee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/MainLayout.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index f75b39507..76ee21a07 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -68,7 +68,7 @@ const options = ref([ * ให้แสดง แทปด้านขวา เมื่อเข้าหน้า รายละเอียดทะเบียนประวัติ */ const tabScroll = () => { - return route.name == "registryDetail" || route.name == "registryEmployeeAdd"; + return route.name == "registryDetail"; }; /** @@ -157,10 +157,7 @@ const updateScroll = (position: number) => { * ให้แสดง แทปด้านขวา เมื่อเข้าหน้า รายละเอียดทะเบียนประวัติ และ rightActive เท่ากับ true */ const activeBtn = () => { - return ( - (route.name == "registryDetail" || route.name == "registryEmployeeAdd") && - rightActive.value - ); + return route.name == "registryDetail" && rightActive.value; }; /** @@ -225,8 +222,7 @@ const myEventHandler = (e: any, setSCroll: boolean) => { const activeMenu = (path: string) => { if (path == "dashboard" && route.fullPath == "/") return true; - if (path == "registry" && route.fullPath.includes("registryEmployee")) - return false; + if (path == "registry" && route.fullPath == "/") return false; const bool = route.fullPath.includes(path); return bool; }; From 3e626d48e1718e85d4b895f705481c78bb3c1317 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 24 Jul 2023 17:38:57 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87=20get?= =?UTF-8?q?=20(=E0=B8=A2=E0=B8=B1=E0=B8=87=E0=B9=84=E0=B8=A1=E0=B9=88?= =?UTF-8?q?=E0=B9=80=E0=B8=AA=E0=B8=A3=E0=B9=87=E0=B8=88)=20=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=81=E0=B8=B2=E0=B8=A8=E0=B9=80=E0=B8=81?= =?UTF-8?q?=E0=B8=A9=E0=B8=B5=E0=B8=A2=E0=B8=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/06_retirement/api.retirement.ts | 8 +-- src/api/index.ts | 5 ++ .../06_retirement/interface/response/Main.ts | 9 ++- src/modules/06_retirement/views/Main.vue | 60 +++++++++++-------- 4 files changed, 52 insertions(+), 30 deletions(-) diff --git a/src/api/06_retirement/api.retirement.ts b/src/api/06_retirement/api.retirement.ts index d3dd56997..22c78de12 100644 --- a/src/api/06_retirement/api.retirement.ts +++ b/src/api/06_retirement/api.retirement.ts @@ -1,6 +1,6 @@ -/** - * api พ้นจากราชการ - */ import env from "../index"; +const retirement = `${env.API_RETIREMENT_URI}/retirement` -export default {}; +export default { + retirement:(type:string) => `${retirement}/${type}/2023` +}; diff --git a/src/api/index.ts b/src/api/index.ts index 292285657..4ca191632 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -25,6 +25,7 @@ const config = ref({ API_URI_ORG_TREE: "https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230712_172702.json", MEET_URI: "meet.frappet.com", + API_RETIREMENT_URI: "https://bma-ehr.frappet.synology.me/api/v1", }, test: { API_URI: "http://localhost:5010/api/v1", @@ -65,6 +66,9 @@ const API_URI_PROFILE_SERVICE = ref( const API_PLACEMENT_URI = ref( config.value[env.value].API_PLACEMENT_URI ); +const API_RETIREMENT_URI = ref( + config.value[env.value].API_RETIREMENT_URI +); const API_URI_ORG_TREE = ref(config.value[env.value].API_URI_ORG_TREE); export default { @@ -79,4 +83,5 @@ export default { API_PLACEMENT_URI: API_PLACEMENT_URI.value, API_URI_ORG_TREE: API_URI_ORG_TREE.value, MEET_URI: MEET_URI.value, + API_RETIREMENT_URI:API_RETIREMENT_URI.value, }; diff --git a/src/modules/06_retirement/interface/response/Main.ts b/src/modules/06_retirement/interface/response/Main.ts index e4ea7770c..91abd91ef 100644 --- a/src/modules/06_retirement/interface/response/Main.ts +++ b/src/modules/06_retirement/interface/response/Main.ts @@ -1 +1,8 @@ -export type {}; +interface resMain{ +id:string; +createdAt:Date; +year:string; +round:number; +total:number; +} +export type {resMain}; diff --git a/src/modules/06_retirement/views/Main.vue b/src/modules/06_retirement/views/Main.vue index dbe9044a2..f2411c8da 100644 --- a/src/modules/06_retirement/views/Main.vue +++ b/src/modules/06_retirement/views/Main.vue @@ -13,8 +13,8 @@ indicator-color="primary" align="left" > - - + + @@ -175,7 +175,7 @@