Skip to content

fix: 修复操作人配置切换时的空值崩溃及 NodeHint 显示不一致#7

Merged
xlorne merged 3 commits intodevfrom
claude/mystifying-khayyam
Apr 13, 2026
Merged

fix: 修复操作人配置切换时的空值崩溃及 NodeHint 显示不一致#7
xlorne merged 3 commits intodevfrom
claude/mystifying-khayyam

Conversation

@xlorne
Copy link
Copy Markdown
Contributor

@xlorne xlorne commented Apr 13, 2026

Summary

  • GroovyScriptConvertorUtil 的 isCustomScriptformatScriptgetScriptTitlegetScriptMetaclearComments 方法增加空值守卫,防止 selectType 切换时 script 为 undefined 导致崩溃
  • NodeHint 组件新增 selectTypeFieldName 属性,当 selectType 为 INITIATOR_SELECT / APPROVER_SELECT 时展示对应中文标签,而非旧的脚本标题
  • 移除 operator-load-view 中已提升到 selectType 级别的发起人/审批人选项

Test plan

  • 流程设计器:编辑审批节点 → 操作人配置 → 切换"发起人设定"/"审批人设定",确认节点提示文本正确更新
  • 流程设计器:从"发起人设定"切回"脚本指定",确认无崩溃且脚本标题正常显示
  • pnpm run build 通过

🤖 Generated with Claude Code

xlorne and others added 3 commits April 13, 2026 14:54
支持发起人设定和审批人设定两种操作人选择模式:
- 新增 OperatorSelectViewPlugin 类型定义和 OperatorSelectView 组件(PC + Mobile)
- PassAction 中根据 responseType 区分显示操作人选择弹窗
- 流程设计器支持 selectType 配置和对应脚本模板

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1. GroovyScriptConvertorUtil 多个方法增加空值守卫,防止 script 为 undefined 时崩溃
2. NodeHint 组件支持 selectTypeFieldName,切换为发起人/审批人设定时显示对应标签

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
合并 dev 分支的 ManualView、ViewBindPlugin、ApprovalActionPassKey 功能,
同时保留 OperatorSelectView 和 responseType 逻辑,根据 responseType 区分展示。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xlorne xlorne merged commit d7c4476 into dev Apr 13, 2026
@xlorne xlorne deleted the claude/mystifying-khayyam branch April 13, 2026 07:33
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