From cb0f198afca234d52a1258b2de84f8ab3d67b052 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 14 May 2024 19:45:02 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=20=3D>=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20function=20convert=20status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/PersonalInformation/04_FamilyNew.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue index 6114da0e2..2b9ebe1d9 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue @@ -87,6 +87,7 @@ const columns = ref([ field: "isLive", headerStyle: "font-size: 14px", style: "font-size: 14px", + format: (val) => convertisLive(val), }, ]); const rows = ref([]); @@ -262,6 +263,18 @@ const filterSelectorRelation = (val: any, update: Function) => { }); }; +function convertisLive(status: number) { + switch (status) { + case 1: + return "ถึงแก่กรรม"; + case 2: + return "มีชีวิต"; + + default: + break; + } +} + onMounted(() => { fetchData(); fetchDataRelationship();