From 468f1a5cf085b18adc46db12611328c981471e88 Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Thu, 14 May 2026 15:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E8=BF=98?= =?UTF-8?q?=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Weather/WeatherCloudy.css | 4 + src/components/Weather/WeatherSunny.css | 2 + src/components/devices/WayLinePage.tsx | 528 +++++++++++++++-------- src/pages/AIAnalysis.tsx | 136 ++++-- src/pages/Home.tsx | 275 +++++++++--- 5 files changed, 680 insertions(+), 265 deletions(-) diff --git a/src/components/Weather/WeatherCloudy.css b/src/components/Weather/WeatherCloudy.css index 8731c4f..1eeeb16 100644 --- a/src/components/Weather/WeatherCloudy.css +++ b/src/components/Weather/WeatherCloudy.css @@ -16,6 +16,10 @@ left: 60px; animation: floatCloud 4s ease-in-out infinite; } +.weather-box{ + width: 80px; + height: 80px; +} @keyframes floatCloud { 0%, 100% { transform: translateX(0); } diff --git a/src/components/Weather/WeatherSunny.css b/src/components/Weather/WeatherSunny.css index 5c2a973..7f97a6e 100644 --- a/src/components/Weather/WeatherSunny.css +++ b/src/components/Weather/WeatherSunny.css @@ -1,6 +1,8 @@ .weather-sunny { text-align: center; font-size: 18px; + width: 80px; + height: 80px; } .sun { diff --git a/src/components/devices/WayLinePage.tsx b/src/components/devices/WayLinePage.tsx index bb291aa..f67b8a9 100644 --- a/src/components/devices/WayLinePage.tsx +++ b/src/components/devices/WayLinePage.tsx @@ -8,46 +8,127 @@ import { SaveOutlined, FullscreenOutlined, EnvironmentOutlined, RobotOutlined, BranchesOutlined, CloudOutlined, ThunderboltOutlined, CheckCircleOutlined, InfoCircleOutlined, ClockCircleOutlined, RiseOutlined, FallOutlined, - SettingOutlined, WarningOutlined, ArrowRightOutlined, CloudSyncOutlined + 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 [activeMainTab, setActiveTab] = useState('wayline'); + // 响应式字体大小 + 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: 8, border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.05)' }; + const cardStyle = { borderRadius: 12, border: 'none', boxShadow: '0 2px 12px rgba(0,0,0,0.04)' }; - // 模拟数据 + // 顶部统计卡片数据 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: }, + { + 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) => ( - - -
-
+ + +
+
{item.icon}
-
-
{item.title}
+
+
{item.title}
- {item.value} - {item.unit} + {item.value} + {item.unit}
-
+
{item.trend || item.desc}
@@ -58,58 +139,96 @@ export default function WayLinePage() { {/* 中间主要内容区 */} - + {/* 左侧:航线编辑与路径规划 */} - + 航线编辑与路径规划} + title={航线编辑与路径规划} extra={ - - - - - - - + + + + +