ME6 完成移动二轮自动化复检与小修

这个提交包含在:
2026-05-12 13:55:28 +08:00
父节点 cd4fe8d544
当前提交 96e5d2ecba
共修改 9 个文件,包含 105 行新增和 16 行删除
+5 -4
查看文件
@@ -68,6 +68,7 @@ function LeaveRecordCard({
}) {
const canEdit = item.status === "draft" || item.status === "rejected";
const canSubmit = item.status === "draft" || item.status === "rejected";
const approvalHistory = item.approvalHistory ?? [];
return (
<article className="mobile-card" data-testid="mobile-leave-record-card">
@@ -94,12 +95,12 @@ function LeaveRecordCard({
<div className="mt-3 rounded-lg bg-zinc-50 px-3 py-2 text-xs text-zinc-600" data-testid="mobile-leave-status-hint">
{resolveLeaveStatusHint(item)}
</div>
{item.approvalHistory.length ? (
{approvalHistory.length ? (
<div className="mt-2 text-xs text-zinc-500">
最近审批:{workflowActionLabel(item.approvalHistory[0].action)}
{item.approvalHistory[0].comment ? ` · ${item.approvalHistory[0].comment}` : ""}
最近审批:{workflowActionLabel(approvalHistory[0].action)}
{approvalHistory[0].comment ? ` · ${approvalHistory[0].comment}` : ""}
{" · "}
{formatApprovalHistoryTime(item.approvalHistory[0].createdAt)}
{formatApprovalHistoryTime(approvalHistory[0].createdAt)}
</div>
) : null}
+2 -1
查看文件
@@ -220,6 +220,7 @@ export function MobilePortalPage() {
? workflowSummaryQuery.data?.pendingTotal ?? pendingCountQuery.data?.total ?? 0
: 0;
const overdueApprovalCount = canAccessApprovals ? workflowSummaryQuery.data?.overdueTotal ?? 0 : 0;
const workflowEntityTypeCount = workflowSummaryQuery.data?.byEntityType?.length ?? 0;
const pendingTasks = pendingCountQuery.data?.items ?? [];
const notifications = notificationsQuery.data?.items ?? [];
const unreadNotificationCount = notifications.filter((item) => !item.readAt).length;
@@ -365,7 +366,7 @@ export function MobilePortalPage() {
<div className="mt-1 text-zinc-500">超时</div>
</div>
<div className="rounded-lg bg-zinc-50 px-2 py-2">
<div className="font-semibold text-zinc-900">{workflowSummaryQuery.data.byEntityType.length}</div>
<div className="font-semibold text-zinc-900">{workflowEntityTypeCount}</div>
<div className="mt-1 text-zinc-500">类型</div>
</div>
</div>