Skip to content

fix: 待办列表合并为「办理人」列,修复移动端已办显示错人 - #91

Merged
xlorne merged 1 commit into
devfrom
feature/todo-operator-column
Dec 3, 2026
Merged

xlorne merged 1 commit into
devfrom
feature/todo-operator-column

Conversation

@xlorne

@xlorne xlorne commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

背景

待办列表(PC / 移动端)原来有「审批人」和「身份」两列,两列都绑定 current_operator_*,已办时再由 render 换成 handle_operator_*。表头只写「身份」,无法表达是待办归属身份还是实际办理身份,容易误读成提交时锁定的 submit_operator_identity。

同时移动端 apps/app-mobile/src/pages/todo.tsx 只取 current_*,没有跟随 #306 取 handle_*,导致手机上「已办」显示的是待办归属人,而不是实际办理人(PC 端在 #306 已修)。

改动

  • PC:把「谁 + 以什么身份」合并为一列「办理人」,身份用小标签区分,空身份显示「默认身份」;同一列在待办/已办下语义一致(待办=归属人+归属身份,已办=办理人+办理身份)。
  • 移动端:已办改为优先读 handle_operator_name / handle_operator_identity,回退 current_*;身份改用标签展示,与 PC 对齐。
  • PC 列宽:补齐各列 width 并启用横向滚动,避免窄窗口下「流程名称」「节点名称」被压成竖排文字。

验证

本地(example-dev.db)实测:

记录 场景 current_* handle_* 展示
8 已办 张三 / 空 张三 / department2 张三 + department2 ✅
2 待办 张三 / 空 — 张三 + 默认身份 ✅
4 待办 张三 / department1 — 张三 + department1 ✅
  • pnpm -F @flow-example/app-pc build、pnpm -F @flow-example/app-mobile build 均通过
  • pnpm test 25 例通过
  • PC 与移动端页面均已实际点击验证

关联

后续 UI 完善,依赖 #89 / #90(已合入 dev)。

「审批人」与「身份」两列都绑定 current_operator_*,却在已办时由 render
换成 handle_operator_*;表头只写「身份」无法表达是「待办归属身份」还是
「实际办理身份」,用户容易误读成提交时锁定的 submit_operator_identity。

- PC:把「谁 + 以什么身份」合并为一列「办理人」,身份用标签区分,
  空身份显示「默认身份」,避免同一列在不同 tab 下语义漂移
- 移动端:已办改为优先取 handle_operator_name/identity(此前只取
  current_*,已办列表显示的是待办归属人而非实际办理人),身份改用标签展示
- PC 补齐列宽并启用横向滚动,避免窄窗口下中文列名被压成竖排

本地实测(example-dev.db):已办记录 8 的 current 身份为空、handle 为
department2,PC 与移动端均展示「张三 + department2」;待办记录 2 展示
「张三 + 默认身份」。两端 rsbuild build 通过,frontend 测试 25 例通过。
@xlorne
xlorne merged commit a8f5ff5 into dev Dec 3, 2026
1 check passed
@xlorne
xlorne deleted the feature/todo-operator-column branch December 3, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant