tuqin
2 天以前 31c5d480157676380dfbae2805e98caa9fd71b21
分支
用户 tuqin <tuqin@local>
星期五, 十一月 6, 2026 10:32 +0800
提交者 tuqin <tuqin@local>
星期五, 十一月 6, 2026 10:32 +0800
提交31c5d480157676380dfbae2805e98caa9fd71b21
目录 414b5e7f96c3d18b14dfa48b3ae708d2b0d0ed8f 目录 | zip | gz
上一版本 3f7a6f7b519d92b638536b67d5ec811d25159e1c 查看 | 对比
fix(bpm): 修正超级管理员匹配方式(simple-list 不返回 username)

问题:/system/user/simple-list 只返回 {id, nickname, avatar, sex, deptId},
没有 username 字段,原来用 user.username === 'admin' 判断永远匹配不到:
- 流程设计里默认审批人拿不到候选人 → showText 为空 → 节点校验不通过
- 流程管理员也定位不到超级管理员

改动:三处统一改为 user.id === 1 || user.nickname === '超级管理员'
(内置超级管理员 id=1,昵称兜底)
- simple-process-designer.vue:默认审批人指到超级管理员
- index.vue:流程管理员写入超级管理员
- basic-info.vue:流程管理员强制回写超级管理员
已修改3个文件
12 ■■■■■ 文件已修改
src/views/bpm/components/simple-process-design/components/simple-process-designer.vue 4 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/views/bpm/model/form/index.vue 4 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/views/bpm/model/form/modules/basic-info.vue 4 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史