fix: 将审批节点名称改为直接显示人名

- 数据库:将节点名称从"经理审批"、"主管审批"等改为直接显示人名
- 前端:未审批时显示节点名称(人名),而非"待审批"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-02-26 00:16:55 +08:00
parent 349b6c9fe3
commit be5dea1d24
+4 -7
View File
@@ -258,13 +258,10 @@ export default function ApprovalDetail() {
return approverRecords.map(r => r.approver?.name).join('、')
}
// 对于通知节点,显示节点名称
if (nodeType === 'notify') {
return '待通知'
}
// 未审批的节点,显示节点名称
return '待审批'
// 未审批的节点,显示节点名称(人名)
const nodes = detail.flow?.nodes || []
const node = nodes.find((n) => n.id === nodeId)
return node?.name || '待审批'
}
// 获取节点显示名称(只显示人名)