From d6f6dbd374d0a1b20ea7d32e3e02160c10696b60 Mon Sep 17 00:00:00 2001 From: lorne <1991wangliang@gmail.com> Date: Thu, 3 Dec 2026 16:02:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(app-pc):=20=E5=B7=B2=E5=8A=9E=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=B1=95=E7=A4=BA=E6=9C=AC=E6=AC=A1=E5=8A=9E=E7=90=86?= =?UTF-8?q?=E4=BA=BA=E4=B8=8E=E5=8A=9E=E7=90=86=E8=BA=AB=E4=BB=BD=20(issue?= =?UTF-8?q?=20#306)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 已办记录的「审批人」「身份」列优先取 handleOperatorName / handleOperatorIdentity - 历史数据与待办记录回退到归属信息,升级前后展示行为一致 对应后端 codingapi/flow-engine#306 --- apps/app-pc/src/pages/todo.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/apps/app-pc/src/pages/todo.tsx b/apps/app-pc/src/pages/todo.tsx index d3da81d..1c44ed3 100644 --- a/apps/app-pc/src/pages/todo.tsx +++ b/apps/app-pc/src/pages/todo.tsx @@ -91,14 +91,22 @@ const TodoPage: React.FC = () => { { dataIndex: 'currentOperatorName', title: '审批人', + render: (value, record) => { + // 已办记录展示「谁办的」(办理人,issue #306);历史数据没有办理人时回退到待办归属人。 + return record.recordState ? (record.handleOperatorName || value) : value; + } }, { dataIndex: 'currentOperatorIdentity', title: '身份', - render: (value) => { - // 记录归属身份(留痕信息):空表示默认身份(issue #288)。 - // 列表本身不按身份过滤(issue #297),该列仅用于展示这条记录落在哪个身份下。 - return value || '默认身份'; + render: (value, record) => { + // 已办记录优先展示「以什么身份办的」(issue #306), + // 历史数据与待办记录展示待办归属身份(issue #288),空表示默认身份。 + // 列表本身不按身份过滤(issue #297),该列仅用于展示留痕信息。 + const identity = record.recordState + ? (record.handleOperatorIdentity || record.currentOperatorIdentity) + : record.currentOperatorIdentity; + return identity || '默认身份'; } }, {