diff --git a/backend/service_implementation/service/data/futures_analysis.db b/backend/service_implementation/service/data/futures_analysis.db
index 4f43464..fa05b4b 100644
Binary files a/backend/service_implementation/service/data/futures_analysis.db and b/backend/service_implementation/service/data/futures_analysis.db differ
diff --git a/src/components/layout/MainLayout.jsx b/src/components/layout/MainLayout.jsx
index f2e53f5..40766d3 100644
--- a/src/components/layout/MainLayout.jsx
+++ b/src/components/layout/MainLayout.jsx
@@ -16,9 +16,6 @@ const MainLayout = ({ children }) => {
const path = location.pathname;
if (path === '/') return '1';
if (path === '/watchlist') return '2';
- if (path.includes('/detail/')) return '3';
- if (path === '/risk-control') return '4';
- if (path === '/config') return '5';
return '1';
};
@@ -33,21 +30,6 @@ const MainLayout = ({ children }) => {
icon: ,
label: 自选合约,
},
- {
- key: '3',
- icon: ,
- label: 详情分析,
- },
- {
- key: '4',
- icon: ,
- label: 风控管理,
- },
- {
- key: '5',
- icon: ,
- label: 配置管理,
- },
];
const toggleCollapse = () => {
@@ -90,6 +72,14 @@ const MainLayout = ({ children }) => {
AI期货分析系统
+
}
+ style={{ marginRight: 16 }}
+ onClick={() => window.location.href = '/config'}
+ >
+ 配置管理
+
}
unCheckedChildren={
}
diff --git a/src/pages/config/Config.jsx b/src/pages/config/Config.jsx
index 7d7dc1c..dc21363 100644
--- a/src/pages/config/Config.jsx
+++ b/src/pages/config/Config.jsx
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
-import { Card, Row, Col, Form, Input, Button, Select, Switch, Slider, Tag, Alert, InputNumber, Radio, Space, Divider } from 'antd';
-import { SettingOutlined, SlidersOutlined, SaveOutlined, CloseOutlined } from '@ant-design/icons';
+import { Card, Row, Col, Form, Input, Button, Select, Switch, Slider, Tag, Alert, InputNumber, Radio, Space, Divider, Statistic } from 'antd';
+import { SettingOutlined, SlidersOutlined, SaveOutlined, CloseOutlined, SafetyOutlined } from '@ant-design/icons';
import './Config.css';
const { Option } = Select;
@@ -234,6 +234,170 @@ const Config = () => {
+ {/* 风控管理 */}
+
风控管理}
+ className="config-card"
+ style={{ marginTop: 24 }}
+ >
+ {/* 止损策略设置 */}
+
+
+
+
+ {/* 仓位管理 */}
+
+
+
+ {/* 风险偏好设置 */}
+
+
+
+
+
+
+ 适中
+
+
+
+
+
+
+
+ {/* 风险监控 */}
+
+
+
+
+
+
+
+ 中等风险
+
+
+
+
+
+
+
+
+
+ 低风险
+
+
+
+
+
+
+
+
+
+ 高
+
+
+
+
+
+
+
+
+
+ 中等风险
+
+
+
+
+
+
+
+
);