feat: 完善Leader管理功能

- 修复LeaderList:移除不存在的字段(enabled, copyRatio),添加跟单关系数量和创建时间显示
- 修复LeaderAdd:移除不需要的字段(accountId, enabled),只保留leaderAddress, leaderName, category
- 新增LeaderEdit页面:支持编辑Leader名称和分类
- 添加移动端适配:LeaderList支持卡片式布局
- 统一地址验证:前后端使用相同的正则表达式验证钱包地址格式
- 更新路由配置:添加/leaders/edit路由
- 改进用户体验:删除前提示跟单关系数量
This commit is contained in:
WrBug
2025-12-01 23:36:23 +08:00
parent 4d322424c1
commit 844cd686eb
5 changed files with 318 additions and 67 deletions
+2
View File
@@ -9,6 +9,7 @@ import AccountDetail from './pages/AccountDetail'
import AccountEdit from './pages/AccountEdit'
import LeaderList from './pages/LeaderList'
import LeaderAdd from './pages/LeaderAdd'
import LeaderEdit from './pages/LeaderEdit'
import ConfigPage from './pages/ConfigPage'
import PositionList from './pages/PositionList'
import Statistics from './pages/Statistics'
@@ -129,6 +130,7 @@ function App() {
<Route path="/accounts/edit" element={<AccountEdit />} />
<Route path="/leaders" element={<LeaderList />} />
<Route path="/leaders/add" element={<LeaderAdd />} />
<Route path="/leaders/edit" element={<LeaderEdit />} />
<Route path="/templates" element={<TemplateList />} />
<Route path="/templates/add" element={<TemplateAdd />} />
<Route path="/templates/edit/:id" element={<TemplateEdit />} />