import React, { useState } from 'react'; import { Row, Col, Card, Button, Space, Table, Tag, Typography, Progress, Badge, Tabs, Input, Switch, Divider, Tooltip, Timeline } from 'antd'; import { PlusOutlined, ImportOutlined, NodeIndexOutlined, SafetyCertificateOutlined, SaveOutlined, FullscreenOutlined, EnvironmentOutlined, RobotOutlined, BranchesOutlined, CloudOutlined, ThunderboltOutlined, CheckCircleOutlined, InfoCircleOutlined, ClockCircleOutlined, RiseOutlined, FallOutlined, SettingOutlined, WarningOutlined, ArrowRightOutlined, CloudSyncOutlined } from '@ant-design/icons'; const { Text, Title } = Typography; export default function WayLinePage() { const [activeMainTab, setActiveTab] = useState('wayline'); const cardStyle = { borderRadius: 8, border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.05)' }; // 模拟数据 const topCards = [ { title: '今日航线计划', value: '18', unit: '条', trend: '较昨日 +2', color: '#165DFF', icon: }, { title: '执行中任务', value: '6', unit: '个', desc: '进行中', color: '#165DFF', icon: }, { title: '待审批任务', value: '4', unit: '个', trend: '较昨日 -1', color: '#FF7D00', icon: }, { title: '任务完成率', value: '92', unit: '%', trend: '较昨日 +6%', color: '#00B42A', icon: }, { title: 'AI 优化收益', value: '+7.8', unit: '%', trend: '较昨日 +1.2%', color: '#722ED1', icon: }, { title: '覆盖装备', value: '4类 / 9台', unit: '', desc: '全部在线', color: '#165DFF', icon: }, ]; return (
{/* 顶部统计卡片 */} {topCards.map((item, index) => (
{item.icon}
{item.title}
{item.value} {item.unit}
{item.trend || item.desc}
))}
{/* 中间主要内容区 */} {/* 左侧:航线编辑与路径规划 */} 航线编辑与路径规划} extra={