From 7812d6d3e8df6279ec41fde8f1314941255f174c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 13 May 2025 11:59:32 +0700 Subject: [PATCH] =?UTF-8?q?fix=20columns=20=E0=B8=97=E0=B8=B0=E0=B9=80?= =?UTF-8?q?=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=20=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=A8=E0=B8=B6=E0=B8=81=E0=B8=A9=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/PersonalInformation/05_Education.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue index e27628e6b..48cde1fab 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue @@ -78,9 +78,11 @@ const baseColumns = ref([ sortable: true, field: "startDate", format(val, row) { - return row.isDate - ? date2Thai(row.startDate) - : (new Date(row.startDate).getFullYear() + 543).toString(); + return row.startDate + ? row.isDate + ? date2Thai(row.startDate) + : (new Date(row.startDate).getFullYear() + 543).toString() + : "-"; }, headerStyle: "font-size: 14px", style: "font-size: 14px", @@ -94,9 +96,11 @@ const baseColumns = ref([ sortable: true, field: "endDate", format(val, row) { - return row.isDate - ? date2Thai(row.endDate) - : (new Date(row.endDate).getFullYear() + 543).toString(); + return row.endDate + ? row.isDate + ? date2Thai(row.endDate) + : (new Date(row.endDate).getFullYear() + 543).toString() + : "-"; }, headerStyle: "font-size: 14px", style: "font-size: 14px",