From 560ff3411c04d18421aca2cee27ce8bdd9e2b99d Mon Sep 17 00:00:00 2001 From: zhaowei Date: Tue, 3 Jun 2025 14:20:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9E=E9=AA=8C=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E6=8E=A7=E5=88=B6=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ExperimentParameter/index.tsx | 110 ++++++++++-------- .../components/PipelineNodeDrawer/index.tsx | 11 +- 2 files changed, 66 insertions(+), 55 deletions(-) diff --git a/react-ui/src/pages/Experiment/components/ExperimentParameter/index.tsx b/react-ui/src/pages/Experiment/components/ExperimentParameter/index.tsx index edb66534..2bd39c29 100644 --- a/react-ui/src/pages/Experiment/components/ExperimentParameter/index.tsx +++ b/react-ui/src/pages/Experiment/components/ExperimentParameter/index.tsx @@ -11,9 +11,15 @@ type ExperimentParameterProps = { function ExperimentParameter({ nodeData }: ExperimentParameterProps) { // 控制策略 - const controlStrategyList = Object.entries(nodeData.control_strategy ?? {}).map( - ([key, value]) => ({ key, value }), - ); + // const controlStrategyList = Object.entries(nodeData.control_strategy ?? {}).map( + // ([key, value]) => ({ key, value }), + // ); + const nodeId = nodeData.id; + const hasTaskInfo = + nodeId && + !nodeId.startsWith('git-clone') && + !nodeId.startsWith('dataset-export') && + !nodeId.startsWith('model-export'); // 输入参数 const inParametersList = Object.entries(nodeData.in_parameters ?? {}).map(([key, value]) => ({ @@ -74,54 +80,58 @@ function ExperimentParameter({ nodeData }: ExperimentParameterProps) { > -
- -
- - - - - - + {hasTaskInfo && ( + <> +
+ +
+ + + + + + - - - - - - - - - - - - - {controlStrategyList.map((item) => ( - - - - ))} + + + + + + + {/* + + */} + + + + {/* {controlStrategyList.map((item) => ( + + + + ))} */} + + )}