fix: 移动端我的发起和抄送没有数据 (#1368)
Co-authored-by: bai.zixv <bai.zixv@foxmail.com> Reviewed-on: daoyoucloud/tachybase#1368 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:
parent
16bb3ff31d
commit
27ce763165
@ -112,11 +112,11 @@ const changService = (api, setData, user, filter, t, setDefaultData, cm, compile
|
|||||||
...item,
|
...item,
|
||||||
title: `${user.data.data.nickname}的${categoryTitle}`,
|
title: `${user.data.data.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,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
result.sort((a, b) => {
|
result.sort((a, b) => {
|
||||||
@ -125,7 +125,6 @@ const changService = (api, setData, user, filter, t, setDefaultData, cm, compile
|
|||||||
setData(result);
|
setData(result);
|
||||||
setDefaultData(result);
|
setDefaultData(result);
|
||||||
})
|
})
|
||||||
|
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
console.error;
|
console.error;
|
||||||
});
|
});
|
||||||
|
@ -243,11 +243,11 @@ export const changeWorkflowNoticeService = (api, t, cm, compile, input, setData,
|
|||||||
...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,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user