feat: 归档L03与L09审批发布能力

- 新增统一审批中心与审批管理页面,支持流程配置、审批详情与角色/用户审批对象

- 接入聊天助手、知识库、工作流的发布与删除审批,并补齐发布态校验与快照展示
This commit is contained in:
2026-04-07 14:41:52 +08:00
parent 7e7c236c2a
commit 3f128e977a
138 changed files with 13035 additions and 346 deletions

View File

@@ -1,17 +1,20 @@
import { type Edge, type Node, type Viewport } from '@xyflow/svelte';
const DEFAULT_VIEWPORT: Viewport = { x: 250, y: 100, zoom: 1 };
const createStore = () => {
let nodesInternal = $state.raw([] as Node[]);
let edgesInternal = $state.raw([] as Edge[]);
let viewport = $state.raw({ x: 250, y: 100, zoom: 1 } as Viewport);
let viewport = $state.raw({ ...DEFAULT_VIEWPORT } as Viewport);
return {
// nodes: nodesInternal,
// edges: edgesInternal,
// viewport,
init: (nodes: Node[], edges: Edge[]) => {
init: (nodes: Node[], edges: Edge[], nextViewport?: Viewport | null) => {
nodesInternal = nodes;
edgesInternal = edges;
viewport = nextViewport ? { ...nextViewport } : { ...DEFAULT_VIEWPORT };
},
getNodes: () => nodesInternal,