fix: 排班管理数据未处理空值bug

This commit is contained in:
fyy
2025-08-29 12:12:32 +08:00
parent 358fc577b0
commit 7db1f717e9

View File

@@ -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}`;