fix: 修改移动端审批待办没有数据 (#1376)

Reviewed-on: daoyoucloud/tachybase#1376
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-07-24 14:55:19 +08:00 committed by sealday
parent 88e9c50000
commit bc563534a3

View File

@ -127,11 +127,11 @@ const changeApprovalRecordsService = (api, params, filter, cm, compile, t, setDa
...item, ...item,
title: `${nickName}${categoryTitle}`, title: `${nickName}${categoryTitle}`,
categoryTitle: categoryTitle, categoryTitle: categoryTitle,
statusTitle: t(statusType.label), statusTitle: t(statusType?.label),
statusColor: statusType.color, statusColor: statusType?.color || 'default',
reason: summary || [], reason: summary || [],
priorityTitle: priorityType.label, priorityTitle: priorityType?.label,
priorityColor: priorityType.color, priorityColor: priorityType?.color,
}; };
}); });
const filterResult = result.filter((value) => { const filterResult = result.filter((value) => {
@ -171,12 +171,12 @@ const changeUsersJobsService = (api, t, cm, compile, input, setData, params, fil
...item, ...item,
title: `${nickName}${categoryTitle}`, title: `${nickName}${categoryTitle}`,
categoryTitle: categoryTitle, categoryTitle: categoryTitle,
statusTitle: t(statusType.label), statusTitle: t(statusType?.label),
statusColor: statusType.color, statusColor: statusType?.color || 'default',
statusIcon: statusType.icon, statusIcon: statusType?.icon,
reason: [], reason: [],
priorityTitle: priorityType.label, priorityTitle: priorityType?.label,
priorityColor: priorityType.color, priorityColor: priorityType?.color,
}; };
}); });
const filterResult = result.filter((value) => { const filterResult = result.filter((value) => {