From 858624816bf93be635503a0a0acd6b6b01527506 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Fri, 6 Dec 2024 13:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=99=A8=E5=9B=9E=E6=98=BE?= =?UTF-8?q?=E6=9C=89=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Designer/components/NodeConfig/index.tsx | 170 ++++++++++++------ 1 file changed, 111 insertions(+), 59 deletions(-) diff --git a/frontend/src/pages/Workflow/Definition/Designer/components/NodeConfig/index.tsx b/frontend/src/pages/Workflow/Definition/Designer/components/NodeConfig/index.tsx index f1e93e36..20b13291 100644 --- a/frontend/src/pages/Workflow/Definition/Designer/components/NodeConfig/index.tsx +++ b/frontend/src/pages/Workflow/Definition/Designer/components/NodeConfig/index.tsx @@ -86,58 +86,123 @@ const NodeConfig: React.FC = ({ nodeType, form, onValuesChange ); + // 渲染网关节点配置 + const renderGatewayConfig = () => { + if (!nodeType.code?.includes('GATEWAY')) return null; + + return ( + + + + ); + }; + // 渲染Shell执行器特定配置 const renderShellExecutorConfig = () => { - if (selectedExecutor !== 'SHELL') return null; + if (!nodeType.code?.includes('SHELL')) return null; return ( <> - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + )} ); }; @@ -151,21 +216,8 @@ const NodeConfig: React.FC = ({ nodeType, form, onValuesChange > {renderBasicFormItems()} - - -