From df2dd3aa25924cdd2001ecfc3d6f493d58664a5b Mon Sep 17 00:00:00 2001 From: Tanyalak Date: Wed, 16 Aug 2023 17:01:57 +0700 Subject: [PATCH 1/4] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20css?= =?UTF-8?q?=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=E0=B9=80?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interface/request/main/main.ts | 4 +- .../04_registry/components/TableProfile.vue | 44 ++++--------------- .../components/ListRetirement/AddList.vue | 5 +-- src/modules/08_registryEmployee/router.ts | 14 +++--- .../08_registryEmployee/views/EditDetail.vue | 4 +- .../08_registryEmployee/views/Main.vue | 4 +- .../08_registryEmployee/views/information.vue | 9 ++-- 7 files changed, 27 insertions(+), 57 deletions(-) diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index fe7b5080c..e7f521186 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -364,11 +364,11 @@ const menuList = readonly([ ], }, { - key: 10, + key: 11, icon: "o_contact_page", activeIcon: "contact_page", label: "ทะเบียนประวัติลูกจ้าง", - path: "registryEmployee", + path: "employee", role: "registryEmployee", }, ]); diff --git a/src/modules/04_registry/components/TableProfile.vue b/src/modules/04_registry/components/TableProfile.vue index 0e722ed28..a946465f2 100644 --- a/src/modules/04_registry/components/TableProfile.vue +++ b/src/modules/04_registry/components/TableProfile.vue @@ -117,17 +117,10 @@
- -
-
+ +
-
+
- diff --git a/src/modules/05_placement/components/probation/FormEvaluation/Template2.vue b/src/modules/05_placement/components/probation/FormEvaluation/Template2.vue index 16d721f29..2726711d9 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/Template2.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/Template2.vue @@ -43,9 +43,9 @@ const fecthAssign = async (id: string) => { await http .get(config.API.evaluateCreate(id)) .then((res: any) => { - if (res.data.data.evaluate_no > 2) { + if (res.data.data.evaluate_no > 0) { tabs.value = res.data.data.evaluate; - } else tabs.value.push({ no: 1 }, { no: 2 }); + } }) .catch((e: any) => { console.log(e); @@ -56,7 +56,9 @@ const fecthAssign = async (id: string) => { }); }; const addData = () => { - router.push(`/probation/detail/addevalua/${personalId.value}/${assignId.value}`); + router.push( + `/probation/detail/addevalua/${personalId.value}/${assignId.value}` + ); }; @@ -66,6 +68,7 @@ const addData = () => { :activeTab="activeTab" :loop="tabs.length" :add-data="addData" + v-if="tabs.length > 0" />