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