From e0e1f4e9891294d95920a9bdb3555a43f4e82102 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Thu, 23 Oct 2025 20:18:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=9A=E7=9F=A5=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/Workflow/Instance/types.ts | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Workflow/Instance/types.ts b/frontend/src/pages/Workflow/Instance/types.ts index 6e06c1e1..e4ff71ad 100644 --- a/frontend/src/pages/Workflow/Instance/types.ts +++ b/frontend/src/pages/Workflow/Instance/types.ts @@ -1,4 +1,4 @@ -import { Page, BaseQuery } from '@/types/base'; +import { BaseQuery } from '@/types/base'; export interface WorkflowTemplateWithInstances { id: number; @@ -22,6 +22,40 @@ export interface WorkflowInstanceStage { endTime: string | null; } +export interface WorkflowGraphNode { + id: string; + nodeCode: string; + nodeType: string; + nodeName: string; + position: { + x: number; + y: number; + }; + configs: Record; + inputMapping: Record; + outputs: any[]; +} + +export interface WorkflowGraphEdge { + id: string; + from: string; + to: string; + name: string; + config: { + type: string; + condition: { + type: string; + priority: number; + }; + }; + vertices: any[]; +} + +export interface WorkflowGraph { + nodes: WorkflowGraphNode[]; + edges: WorkflowGraphEdge[]; +} + export interface WorkflowHistoricalInstance { id: number; processInstanceId: string; @@ -31,6 +65,7 @@ export interface WorkflowHistoricalInstance { startTime: string; endTime: string | null; stages: WorkflowInstanceStage[]; + graph?: WorkflowGraph; } export interface WorkflowHistoricalInstanceQuery extends BaseQuery {