feat(ai-web): 增加任务和任务模板
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
ClusterOutlined,
|
||||
CompressOutlined,
|
||||
DatabaseOutlined,
|
||||
FileTextOutlined,
|
||||
GatewayOutlined,
|
||||
InfoCircleOutlined,
|
||||
OpenAIOutlined,
|
||||
@@ -34,6 +35,10 @@ import YarnCluster from './pages/overview/YarnCluster.tsx'
|
||||
import Test from './pages/Test.tsx'
|
||||
import {commonInfo} from './util/amis.tsx'
|
||||
import FlowEditor from './pages/ai/flow/FlowEditor.tsx'
|
||||
import FlowTaskTemplate from './pages/ai/task/template/FlowTaskTemplate.tsx'
|
||||
import FlowTaskTemplateEdit from './pages/ai/task/template/FlowTaskTemplateEdit.tsx'
|
||||
import FlowTask from './pages/ai/task/FlowTask.tsx'
|
||||
import FlowTaskAdd from './pages/ai/task/FlowTaskAdd.tsx'
|
||||
|
||||
export const routes: RouteObject[] = [
|
||||
{
|
||||
@@ -111,6 +116,22 @@ export const routes: RouteObject[] = [
|
||||
path: 'knowledge/detail/:knowledge_id/segment/:group_id',
|
||||
Component: DataSegment,
|
||||
},
|
||||
{
|
||||
path: 'flow_task',
|
||||
Component: FlowTask,
|
||||
},
|
||||
{
|
||||
path: 'flow_task/add',
|
||||
Component: FlowTaskAdd,
|
||||
},
|
||||
{
|
||||
path: 'flow_task_template',
|
||||
Component: FlowTaskTemplate,
|
||||
},
|
||||
{
|
||||
path: 'flow_task_template/edit/:template_id',
|
||||
Component: FlowTaskTemplateEdit,
|
||||
},
|
||||
{
|
||||
path: 'flowable',
|
||||
Component: FlowEditor,
|
||||
@@ -158,7 +179,7 @@ export const menus = {
|
||||
icon: <SyncOutlined/>,
|
||||
},
|
||||
{
|
||||
path: `/yarn/${commonInfo.clusters.compaction_names()}/${values(commonInfo.clusters.compaction).join(",")}/Compaction`,
|
||||
path: `/yarn/${commonInfo.clusters.compaction_names()}/${values(commonInfo.clusters.compaction).join(',')}/Compaction`,
|
||||
name: '压缩集群',
|
||||
icon: <SyncOutlined/>,
|
||||
},
|
||||
@@ -222,6 +243,23 @@ export const menus = {
|
||||
name: '流程编排',
|
||||
icon: <GatewayOutlined/>,
|
||||
},
|
||||
{
|
||||
path: '1089caa6-9477-44a5-99f1-a9c179f6cfd3',
|
||||
name: '任务',
|
||||
icon: <FileTextOutlined/>,
|
||||
routes: [
|
||||
{
|
||||
path: '/ai/flow_task',
|
||||
name: '任务列表',
|
||||
icon: <FileTextOutlined/>,
|
||||
},
|
||||
{
|
||||
path: '/ai/flow_task_template',
|
||||
name: '任务模板',
|
||||
icon: <FileTextOutlined/>,
|
||||
},
|
||||
]
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user