From b25bd1d1f00e061760736adf422b462469d410e4 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 25 Feb 2025 11:37:37 +0700 Subject: [PATCH] fixing employee label --- src/components/CardProfile.vue | 6 +++++- .../06_retirement/components/03_resignEmp/ResignByid.vue | 4 ++-- .../components/06_dismissOrder/DetailEMP.vue | 8 ++++---- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/CardProfile.vue b/src/components/CardProfile.vue index 7aa17c5ae..57f7029a2 100644 --- a/src/components/CardProfile.vue +++ b/src/components/CardProfile.vue @@ -151,7 +151,11 @@ watch(
- {{ props.type == "employee" ? "กลุ่มงาน" : "ประเภทตำแหน่ง" }} + {{ + props.type.toLowerCase() == "employee" + ? "กลุ่มงาน" + : "ประเภทตำแหน่ง" + }}
{{ profile.positionLevel }} diff --git a/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue b/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue index 2af2f43b3..95ca702ef 100644 --- a/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue +++ b/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue @@ -1279,9 +1279,9 @@ onMounted(async () => { :readonly="!edit" :borderless="!edit" v-model="positionLevelOld" - :rules="[(val:string) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]" + :rules="[(val:string) => !!val || `${'กรุณากรอกระดับชั้นงาน'}`]" hide-bottom-space - :label="`${'ระดับตำแหน่ง'}`" + :label="`${'ระดับชั้นงาน'}`" />
diff --git a/src/modules/06_retirement/components/06_dismissOrder/DetailEMP.vue b/src/modules/06_retirement/components/06_dismissOrder/DetailEMP.vue index 79942f876..0add29545 100644 --- a/src/modules/06_retirement/components/06_dismissOrder/DetailEMP.vue +++ b/src/modules/06_retirement/components/06_dismissOrder/DetailEMP.vue @@ -274,9 +274,9 @@ onMounted(async () => { :readonly="!edit" :borderless="!edit" v-model="positionTypeOld" - :rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]" + :rules="[(val:string) => !!val || `${'กรุณากรอกกลุ่มงาน'}`]" hide-bottom-space - :label="`${'ประเภทตำแหน่ง'}`" + :label="`${'กลุ่มงาน'}`" />
@@ -290,9 +290,9 @@ onMounted(async () => { :readonly="!edit" :borderless="!edit" v-model="positionLevelOld" - :rules="[(val:string) => !!val || `${'กรุณากรอกระดับ'}`]" + :rules="[(val:string) => !!val || `${'กรุณากรอกระดับชั้นงาน'}`]" hide-bottom-space - :label="`${'ระดับ'}`" + :label="`${'ระดับชั้นงาน'}`" />