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();