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, SearchOutlined, MoreOutlined, AimOutlined } from '@ant-design/icons'; import { Plane, Navigation, Wind, Thermometer, Droplets, Satellite, LayoutGrid, Clock, CheckCircle2, AlertCircle, Zap, Waves, Calendar, User, TrendingUp, GripVertical, Maximize2, Target } from 'lucide-react'; const { Text, Title } = Typography; export default function WayLinePage() { // 响应式字体大小 const fontSmall = 'clamp(10px, 0.7vw, 11px)'; const fontNormal = 'clamp(12px, 0.75vw, 13px)'; const fontTitle = 'clamp(14px, 0.85vw, 16px)'; const fontLarge = 'clamp(18px, 1.1vw, 24px)'; const cardStyle = { borderRadius: 12, border: 'none', boxShadow: '0 2px 12px rgba(0,0,0,0.04)' }; // 顶部统计卡片数据 const topCards = [ { title: '今日航线计划', value: '18', unit: '条', trend: '较昨日 +2', trendColor: '#00B42A', icon: , color: '#165DFF', bg: 'linear-gradient(135deg, #E8F3FF 0%, #BAE0FF 100%)' }, { title: '执行中任务', value: '6', unit: '个', desc: '进行中', icon: , color: '#165DFF', bg: 'linear-gradient(135deg, #E8F3FF 0%, #BAE0FF 100%)' }, { title: '待审批任务', value: '4', unit: '个', trend: '较昨日 -1', trendColor: '#F53F3F', icon: , color: '#FF7D00', bg: 'linear-gradient(135deg, #FFF7E6 0%, #FFE4BA 100%)' }, { title: '任务完成率', value: '92', unit: '%', trend: '较昨日 +6%', trendColor: '#00B42A', icon: , color: '#00B42A', bg: 'linear-gradient(135deg, #E8FFEA 0%, #AFF0B5 100%)' }, { title: 'AI 优化收益', value: '+7.8', unit: '%', trend: '较昨日 +1.2%', trendColor: '#00B42A', icon: , color: '#722ED1', bg: 'linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%)' }, { title: '覆盖装备', value: '4 类 / 9 台', unit: '', desc: '全部在线', icon: , color: '#165DFF', bg: 'linear-gradient(135deg, #E8F3FF 0%, #BAE0FF 100%)' }, ]; return (
{topCards.map((item, index) => (
{React.cloneElement(item.icon as React.ReactElement, { size: 18 })}
{item.title}
{item.value} {item.unit}
{item.trend || item.desc}
))}
{/* 中间主要内容区 */} {/* 左侧:航线编辑与路径规划 */} 航线编辑与路径规划} size="small" extra={