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:
zlwuandCursor committed 2026-08-04 17:41:04 +08:00
1 parent a3c73d76bb
commit 06db3bc966
66 files changed
+55337 -38647

No files matched your search

@@ -1,5 +1,6 @@
import FcDesigner from '@form-create/designer'
import OaOvertimeKit from '@/components/oa-approval/OaOvertimeKit.vue'
import { ensureOaKitMenu } from '@/utils/oa-form-create-kit-menu'
import { overtimeKitDragRule } from '@/utils/oa-overtime-kit-rule'
const FLAG = '__oaOvertimeKitConfigured'
@@ -7,13 +8,7 @@ const FLAG = '__oaOvertimeKitConfigured'
export function setupOaOvertimeKit(formCreate?: { component?: (name: string, c: unknown) => void }) {
if ((FcDesigner as any)[FLAG]) return
if (typeof FcDesigner.addMenu === 'function') {
try {
FcDesigner.addMenu({ name: 'kit', title: '套件', list: [] })
} catch {
/* kit menu may already exist */
}
}
ensureOaKitMenu()
FcDesigner.component('overtimeKit', OaOvertimeKit)
if (typeof formCreate?.component === 'function') {