From 7db1f717e98f5448e398ffe02e52cf5cd7301a35 Mon Sep 17 00:00:00 2001 From: fyy <2717885210@qq.com> Date: Fri, 29 Aug 2025 12:12:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=92=E7=8F=AD=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9C=AA=E5=A4=84=E7=90=86=E7=A9=BA=E5=80=BC?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../property/attendanceManagement/workforceManagement/data.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/data.ts b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/data.ts index 1134544e..0383df0f 100644 --- a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/data.ts +++ b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/data.ts @@ -328,6 +328,9 @@ export const workforceDayDetailColumns: VxeGridProps['columns'] = [ width: 'auto', slots: { default: ({ row }) => { + if (!row.shift) { + return '/'; + } if (row.shift.startTime && row.shift.endTime) { if (row.shift.restEndTime && row.shift.restStartTime) { return `${row.shift.startTime}~${row.shift.endTime} ${row.shift.restStartTime}~${row.shift.restEndTime}`;