feat(permission): replace OA roles with post-bound roles and assignee posts
Unify effective roles via post-role bindings, remove dedicated OA role UI, and update OA assignee resolution plus related SQL/docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a3c73d76bb
commit
06db3bc966
66 files changed
+55337
-38647
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import FcDesigner from '@form-create/designer'
|
||||
|
||||
const FLAG = '__oaKitMenuConfigured'
|
||||
|
||||
/**
|
||||
* 确保「套件」左侧菜单只注册一次。
|
||||
* 全局 FcDesigner.addMenu 会无条件 push,多套件各自 addMenu 会导致同名分组重复,
|
||||
* 进而 appendMenuItem 把每个拖拽规则挂到所有同名分组上(N 套件 × N 分组)。
|
||||
*/
|
||||
export function ensureOaKitMenu() {
|
||||
if ((FcDesigner as any)[FLAG]) return
|
||||
if (typeof FcDesigner.addMenu === 'function') {
|
||||
FcDesigner.addMenu({ name: 'kit', title: '套件', list: [] })
|
||||
}
|
||||
;(FcDesigner as any)[FLAG] = true
|
||||
}
|
||||
Reference in new issue
Block a user