From c0d26d9cf75feb060ba774544810fb3879707ea0 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 7 Jul 2025 13:26:21 +0700 Subject: [PATCH] fix display check out time --- src/components/TableHistory.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/TableHistory.vue b/src/components/TableHistory.vue index 6e4a5de..78743db 100644 --- a/src/components/TableHistory.vue +++ b/src/components/TableHistory.vue @@ -104,6 +104,9 @@ const columns = ref( field: 'checkOutTime', headerStyle: 'font-size: 14px', style: 'font-size: 14px; width:15%;', + format: (val: string, row: DataCheckIn) => { + return row.checkOutStatus != '-' && val ? val : '-' + }, }, { name: 'checkOutLocation', @@ -160,6 +163,9 @@ const columns = ref( field: 'checkOutTime', headerStyle: 'font-size: 14px', style: 'font-size: 14px; width:15%;', + format: (val: string, row: DataCheckIn) => { + return row.checkOutStatus != '-' && val ? val : '-' + }, }, { name: 'checkOutLocation',