From c72382140a1f6715be4f83f03ff19adeb46f9fbc Mon Sep 17 00:00:00 2001 From: ZLY Date: Wed, 17 Sep 2025 14:50:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(orchestration):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=BC=96=E6=8E=92=E5=8A=9F=E8=83=BD=E5=B9=B6?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=84=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ideContainer/config/menuData.ts | 12 ++++++------ src/pages/ideContainer/index.tsx | 8 +++++--- src/pages/orchestration/application/index.tsx | 10 ++++++++++ 3 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 src/pages/orchestration/application/index.tsx diff --git a/src/pages/ideContainer/config/menuData.ts b/src/pages/ideContainer/config/menuData.ts index 364d803..0df5c22 100644 --- a/src/pages/ideContainer/config/menuData.ts +++ b/src/pages/ideContainer/config/menuData.ts @@ -6,8 +6,8 @@ export const menuData = [ children: [ { title: '应用A', - path: 'appFlow', - key: 'appFlow', + path: 'compFlow', + key: 'compFlow', parentKey: 'appList', children: [ { @@ -22,8 +22,8 @@ export const menuData = [ }, { title: '应用B', - path: 'appFlow', - key: 'appFlow', + path: 'compFlow', + key: 'compFlow', parentKey: 'appList', children: [ { @@ -40,9 +40,9 @@ export const menuData = [ }, { title: '应用编排', - key: 'null', + key: 'appFlow', children: null, - path: 'null' + path: 'appFlow' }, { title: '事件', diff --git a/src/pages/ideContainer/index.tsx b/src/pages/ideContainer/index.tsx index b571811..ff4d9fc 100644 --- a/src/pages/ideContainer/index.tsx +++ b/src/pages/ideContainer/index.tsx @@ -7,6 +7,7 @@ import LogBar from './logBar'; import RightSideBar from './rightSideBar'; import NavBar from './navBar'; import ProjectContainer from '@/pages/orchestration/project'; +import ApplicationContainer from '@/pages/orchestration/application'; import { menuData, menuData2 } from './config/menuData'; interface Selected { @@ -32,7 +33,7 @@ const ComponentTest = () =>
组 // 所有可显示的组件路径列表 const ALL_PATHS = [ - 'appFlow', 'compList', 'appInstance', 'event', 'globalVar', + 'compFlow', 'appFlow', 'compList', 'appInstance', 'event', 'globalVar', 'myComponents', 'matchingComponents', 'componentReview', 'componentCoding', 'componentDeployment', 'componentTest' ]; @@ -52,7 +53,6 @@ function IDEContainer() { // 当selected.currentPath变化时,添加到已打开的tab集合中 useEffect(() => { if (selected.currentPath) { - console.log(1); setOpenedTabs(prev => new Set(prev).add(selected.currentPath!)); } }, [selected.currentPath]); @@ -92,8 +92,10 @@ function IDEContainer() { // 根据路径获取对应的组件 const getContentByPath = (path: string) => { switch (path) { - case 'appFlow': + case 'compFlow': return ; + case 'appFlow': + return ; case 'compList': return ; case 'appInstance': diff --git a/src/pages/orchestration/application/index.tsx b/src/pages/orchestration/application/index.tsx new file mode 100644 index 0000000..c81685a --- /dev/null +++ b/src/pages/orchestration/application/index.tsx @@ -0,0 +1,10 @@ +import React from 'react'; +import FlowEditor from '@/pages/flowEditor/index'; + +const ApplicationContainer = () => { + return ( + + ); +}; + +export default ApplicationContainer; \ No newline at end of file