diff --git a/leopard-web/src/index.tsx b/leopard-web/src/index.tsx index b5ea14e..aabfa12 100644 --- a/leopard-web/src/index.tsx +++ b/leopard-web/src/index.tsx @@ -13,6 +13,7 @@ import TaskTemplateSave from './pages/task/TaskTemplateSave.tsx' import TaskScheduleList from './pages/task/TaskScheduleList.tsx' import TaskScheduleSave from './pages/task/TaskScheduleSave.tsx' import StockCollectionList from './pages/stock/StockCollectionList.tsx' +import TaskDetail from './pages/task/TaskDetail.tsx' const routes: RouteObject[] = [ { @@ -56,6 +57,10 @@ const routes: RouteObject[] = [ path: 'list', Component: TaskList, }, + { + path: 'detail/:id', + Component: TaskDetail, + }, { path: 'template', children: [ diff --git a/leopard-web/src/pages/task/TaskDetail.tsx b/leopard-web/src/pages/task/TaskDetail.tsx new file mode 100644 index 0000000..ed2476a --- /dev/null +++ b/leopard-web/src/pages/task/TaskDetail.tsx @@ -0,0 +1,72 @@ +import React from 'react' +import {useParams} from 'react-router' +import {amisRender, commonInfo, remoteMappings, time} from '../../util/amis.tsx' + +function TaskDetail() { + const {id} = useParams() + return ( +