1
0

feat: 增加股票集相关服务

This commit is contained in:
2025-09-08 23:12:21 +08:00
parent 1ad5b10e20
commit 388456ff24
7 changed files with 146 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ import TaskTemplateList from './pages/task/TaskTemplateList.tsx'
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'
const routes: RouteObject[] = [
{
@@ -29,10 +30,6 @@ const routes: RouteObject[] = [
{
path: 'stock',
children: [
{
index: true,
element: <Navigate to="/stock/list" replace/>,
},
{
path: 'list',
Component: StockList,
@@ -41,6 +38,15 @@ const routes: RouteObject[] = [
path: 'detail/:id',
Component: StockDetail,
},
{
path: "collection",
children: [
{
path: 'list',
Component: StockCollectionList,
},
],
},
],
},
{

View File

@@ -1,7 +1,10 @@
import {
ClockCircleOutlined,
DeploymentUnitOutlined,
FileOutlined,
InfoCircleOutlined,
MoneyCollectOutlined,
StarOutlined,
UnorderedListOutlined,
} from '@ant-design/icons'
import {type AppItemProps, ProLayout} from '@ant-design/pro-components'
@@ -39,23 +42,37 @@ const menus = {
{
path: '/stock',
name: '股票',
icon: <MoneyCollectOutlined/>,
}, {
routes: [
{
path: '/stock/list',
name: '股票列表',
icon: <MoneyCollectOutlined/>,
},
{
path: "/stock/collection/list",
name: '股票集',
icon: <StarOutlined/>,
},
]
},
{
path: '/task',
name: '任务',
icon: <UnorderedListOutlined/>,
routes: [
{
path: '/task/list',
name: '任务列表',
icon: <UnorderedListOutlined/>,
},
{
path: '/task/template/list',
name: '任务模板',
icon: <FileOutlined/>,
},
{
path: '/task/schedule/list',
name: '定时任务',
icon: <ClockCircleOutlined/>,
},
],
},
@@ -105,7 +122,7 @@ const Root: React.FC = () => {
title="金钱豹"
route={menus}
location={{pathname: location.pathname}}
menu={{type: 'sub'}}
menu={{type: 'group'}}
menuItemRender={(item, defaultDom) =>
<NavLink to={item.path || '/'}>{defaultDom}</NavLink>
}

View File

@@ -0,0 +1,9 @@
import React from "react"
function StockCollectionList() {
return (
<div className="stock-collection-list"></div>
)
}
export default React.memo(StockCollectionList)

View File

@@ -45,8 +45,6 @@ function TaskList() {
name: 'step',
label: '进度',
type: 'progress',
stripe: true,
animate: true,
showLabel: false,
},
{