feat: 实现前端组件库和API服务基础架构
refactor: 移除废弃的AGI策略演进服务 fix: 修正磁盘I/O指标字段命名 chore: 更新项目依赖版本 test: 添加前后端集成测试用例 docs: 更新AI模块接口文档 style: 统一审计日志字段命名规范 perf: 优化Redis订阅连接错误处理 build: 配置多项目工作区结构 ci: 添加Vite开发服务器CORS支持
This commit is contained in:
126
dashboard/src/pages/index.tsx
Normal file
126
dashboard/src/pages/index.tsx
Normal file
@@ -0,0 +1,126 @@
|
||||
import React from 'react';
|
||||
import { Card, Layout, Menu, Typography, Row, Col, Statistic } from 'antd';
|
||||
import {
|
||||
DashboardOutlined,
|
||||
ShoppingOutlined,
|
||||
UserOutlined,
|
||||
TruckOutlined,
|
||||
AuditOutlined,
|
||||
AlertOutlined,
|
||||
FileTextOutlined,
|
||||
DollarOutlined,
|
||||
BarChartOutlined
|
||||
} from '@ant-design/icons';
|
||||
import { Link } from 'umi';
|
||||
|
||||
const { Header, Content, Sider } = Layout;
|
||||
const { Title, Text } = Typography;
|
||||
|
||||
const Dashboard: React.FC = () => {
|
||||
const menuItems = [
|
||||
{
|
||||
key: 'dashboard',
|
||||
icon: <DashboardOutlined />,
|
||||
label: <Link to="/">首页</Link>
|
||||
},
|
||||
{
|
||||
key: 'products',
|
||||
icon: <ShoppingOutlined />,
|
||||
label: <Link to="/Product">商品管理</Link>
|
||||
},
|
||||
{
|
||||
key: 'orders',
|
||||
icon: <FileTextOutlined />,
|
||||
label: <Link to="/Orders">订单管理</Link>
|
||||
},
|
||||
{
|
||||
key: 'merchants',
|
||||
icon: <UserOutlined />,
|
||||
label: <Link to="/Merchant">商户管理</Link>
|
||||
},
|
||||
{
|
||||
key: 'logistics',
|
||||
icon: <TruckOutlined />,
|
||||
label: <Link to="/Logistics">物流管理</Link>
|
||||
},
|
||||
{
|
||||
key: 'aftersales',
|
||||
icon: <AlertOutlined />,
|
||||
label: <Link to="/AfterSales">售后服务</Link>
|
||||
},
|
||||
{
|
||||
key: 'compliance',
|
||||
icon: <AuditOutlined />,
|
||||
label: <Link to="/Compliance">合规管理</Link>
|
||||
},
|
||||
{
|
||||
key: 'blacklist',
|
||||
icon: <AlertOutlined />,
|
||||
label: <Link to="/Blacklist">黑名单管理</Link>
|
||||
},
|
||||
{
|
||||
key: 'b2b',
|
||||
icon: <DollarOutlined />,
|
||||
label: <Link to="/B2B">B2B贸易</Link>
|
||||
},
|
||||
{
|
||||
key: 'ads',
|
||||
icon: <BarChartOutlined />,
|
||||
label: <Link to="/Ad">广告管理</Link>
|
||||
}
|
||||
];
|
||||
|
||||
return (
|
||||
<Layout style={{ minHeight: '100vh' }}>
|
||||
<Header style={{ display: 'flex', alignItems: 'center', background: '#1890ff' }}>
|
||||
<Title level={3} style={{ color: 'white', margin: 0 }}>Crawlful Hub 管理系统</Title>
|
||||
</Header>
|
||||
<Layout>
|
||||
<Sider width={200} style={{ background: '#f0f2f5' }}>
|
||||
<Menu
|
||||
mode="inline"
|
||||
style={{ height: '100%', borderRight: 0 }}
|
||||
defaultSelectedKeys={['dashboard']}
|
||||
items={menuItems}
|
||||
/>
|
||||
</Sider>
|
||||
<Layout style={{ padding: '0 24px 24px' }}>
|
||||
<Content style={{ padding: 24, margin: 0, minHeight: 280, background: '#fff' }}>
|
||||
<Title level={4}>系统概览</Title>
|
||||
<Row gutter={[16, 16]}>
|
||||
<Col span={6}>
|
||||
<Card>
|
||||
<Statistic title="商品数量" value={1280} />
|
||||
</Card>
|
||||
</Col>
|
||||
<Col span={6}>
|
||||
<Card>
|
||||
<Statistic title="订单数量" value={960} />
|
||||
</Card>
|
||||
</Col>
|
||||
<Col span={6}>
|
||||
<Card>
|
||||
<Statistic title="商户数量" value={120} />
|
||||
</Card>
|
||||
</Col>
|
||||
<Col span={6}>
|
||||
<Card>
|
||||
<Statistic title="总销售额" value={1280000} prefix="¥" />
|
||||
</Card>
|
||||
</Col>
|
||||
</Row>
|
||||
<div style={{ marginTop: 24 }}>
|
||||
<Card title="系统功能">
|
||||
<Text>
|
||||
欢迎使用 Crawlful Hub 管理系统,这是一个集商品管理、订单处理、商户管理、物流管理、售后服务、合规管理等功能于一体的综合管理平台。
|
||||
</Text>
|
||||
</Card>
|
||||
</div>
|
||||
</Content>
|
||||
</Layout>
|
||||
</Layout>
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
||||
export default Dashboard;
|
||||
Reference in New Issue
Block a user