-
-
+
清洗作业影响综合评估} bordered={false} style={cardStyle} bodyStyle={{ padding: 16 }}>
+
+ {[
+ { icon: , bg: '#E8F3FF', label: '预计用水量', value: '18 吨', sub: '节水 30% (机器人)', subColor: '#00B42A' },
+ { icon: , bg: '#E8F3FF', label: '预计总耗时', value: '12 小时', sub: '并行作业 2 组', subColor: '#86909C' },
+ { icon: , bg: '#E8FFEA', label: '碳减排贡献', value: '6.85 吨', sub: 'CO₂ 减排量', subColor: '#86909C' },
+ { icon: , bg: '#FFF7E8', label: '作业风险评估', value: '低风险', valueColor: '#00B42A', sub: '安全可控', subColor: '#86909C' },
+ ].map((item, idx) => (
+
+
+
{item.icon}
+
+
{item.label}
+
{item.value}
+
{item.sub}
+
-
-
预计用水量
-
18 吨
-
节水率 30% (机器人)
-
-
-
-
-
-
-
-
-
-
预计耗时
-
12 小时
-
并行作业 2 组
-
-
-
-
-
-
-
-
-
-
碳减排量
-
6.85 吨
-
CO₂ 减排量
-
-
-
-
-
-
+
+ ))}
-
-
-
以上建议基于历史数据、实时气象及发电损失模型综合计算。实际效果可能因天气和现场情况有所差异。
+
+
+
+ 以上决策建议基于历史数据、实时气象及发电损失模型综合计算。实际执行效果可能受天气骤变、现场突发障碍等不确定因素影响。
+
@@ -585,3 +588,4 @@ export default function CleanOptimizationPage() {
);
}
+
diff --git a/src/pages/ReportCenter.tsx b/src/pages/ReportCenter.tsx
index aff9521..90fd35c 100644
--- a/src/pages/ReportCenter.tsx
+++ b/src/pages/ReportCenter.tsx
@@ -1,19 +1,23 @@
import React, { useState } from 'react';
import {
- Card, Row, Col, Tabs, Button, Space, Select, Table, Statistic,
- DatePicker, message, Tag, Typography,
- Radio, Checkbox, Divider
+ Card, Row, Col, Tabs, Button, Space, Select, Table, Tag, Typography,
+ DatePicker, Divider, Checkbox, Avatar, Badge, Tooltip, Progress,
+ Statistic
} from 'antd';
import {
- CloudOutlined, BarChartOutlined, BellOutlined,
- CalendarOutlined, FileTextOutlined,
+ BarChartOutlined, BellOutlined, CalendarOutlined, FileTextOutlined,
DownloadOutlined, ArrowUpOutlined, CheckCircleOutlined,
ClockCircleOutlined, WarningOutlined, FileExcelOutlined,
FilePdfOutlined, MailOutlined, SendOutlined, SettingOutlined,
- RobotOutlined
+ RobotOutlined, CloudOutlined, ThunderboltOutlined,
+ PieChartOutlined, LineChartOutlined, InfoCircleOutlined,
+ ReloadOutlined, MoreOutlined, FileDoneOutlined, EyeOutlined,
+ EditOutlined, RiseOutlined, FallOutlined,
+ CheckCircleFilled
} from '@ant-design/icons';
-import { Line, Bar, Pie } from '@ant-design/charts';
+import { Line, Column, Pie, Area, DualAxes, Bar } from '@ant-design/charts';
import dayjs from 'dayjs';
+import { ChevronRight } from 'lucide-react';
const { TabPane } = Tabs;
const { RangePicker } = DatePicker;
@@ -22,58 +26,74 @@ const { Text, Title } = Typography;
// 模拟数据(完全匹配参考图)
const overviewCards = [
- { title: '本月发电量', value: '138.6', unit: 'MWh', rate: '+6.2%', rateUp: true, color: '#52c41a' },
- { title: 'PR均值', value: '82.8', unit: '%', rate: '+1.1%', rateUp: true, color: '#1890ff' },
- { title: '运维工单完成率', value: '93.4', unit: '%', desc: '本月累计 126 单', color: '#1890ff' },
- { title: '告警闭环率', value: '94.2', unit: '%', desc: '严重告警 8 条', color: '#faad14' },
- { title: '清洗收益提升', value: '+7.6', unit: '%', desc: '预估增发 12,850 kWh', color: '#52c41a' },
- { title: '自动生成报告', value: '24', unit: '份', desc: '本月累计', color: '#722ed1' },
+ { title: '本月发电量', value: '138.6', unit: 'MWh', trend: '环比 ↑ +6.2%', color: '#00B42A', bg: '#E8FFEA', icon:
},
+ { title: 'PR均值', value: '82.8', unit: '%', trend: '环比 ↑ +1.1%', color: '#165DFF', bg: '#E8F3FF', icon:
},
+ { title: '运维工单完成率', value: '93.4', unit: '%', trend: '本月累计 126 单', color: '#165DFF', bg: '#E8F3FF', icon:
},
+ { title: '告警闭环率', value: '94.2', unit: '%', trend: '严重告警 8 条', color: '#F53F3F', bg: '#FFF1F0', icon:
},
+ { title: '清洗收益提升', value: '+7.6', unit: '%', trend: '预估增发 12,850 kWh', color: '#00B42A', bg: '#E8FFEA', icon:
},
+ { title: '自动生成报告', value: '24', unit: '份', trend: '本月累计', color: '#722ED1', bg: '#F9F0FF', icon:
},
];
const monthlyPowerData = [
{ date: '05-01', generation: 6, predicted: 8, pr: 105 },
- { date: '05-06', generation: 7, predicted: 9, pr: 108 },
- { date: '05-11', generation: 3, predicted: 7, pr: 102 },
- { date: '05-16', generation: 8, predicted: 10, pr: 112 },
- { date: '05-21', generation: 9, predicted: 10, pr: 110 },
- { date: '05-26', generation: 7, predicted: 9, pr: 108 },
- { date: '05-31', generation: 5, predicted: 7, pr: 105 },
+ { date: '05-03', generation: 5.5, predicted: 7.8, pr: 102 },
+ { date: '05-05', generation: 6.2, predicted: 8.2, pr: 108 },
+ { date: '05-07', generation: 7, predicted: 8.5, pr: 110 },
+ { date: '05-09', generation: 6.8, predicted: 8.3, pr: 105 },
+ { date: '05-11', generation: 4, predicted: 7.5, pr: 98 },
+ { date: '05-13', generation: 3, predicted: 7, pr: 95 },
+ { date: '05-15', generation: 8, predicted: 9.5, pr: 112 },
+ { date: '05-17', generation: 8.5, predicted: 10, pr: 115 },
+ { date: '05-19', generation: 7.8, predicted: 9.2, pr: 108 },
+ { date: '05-21', generation: 9, predicted: 10.5, pr: 118 },
+ { date: '05-23', generation: 8.2, predicted: 9.8, pr: 110 },
+ { date: '05-25', generation: 7, predicted: 9, pr: 105 },
+ { date: '05-27', generation: 6.5, predicted: 8.5, pr: 102 },
+ { date: '05-29', generation: 5, predicted: 7.5, pr: 98 },
+ { date: '05-31', generation: 4.5, predicted: 7, pr: 95 },
];
const powerMeteorologyData = [
- { date: '05-05-05', generation: 70, irradiance: 60, temp: 20 },
- { date: '05-12-05', generation: 60, irradiance: 50, temp: 22 },
- { date: '05-19-05', generation: 65, irradiance: 65, temp: 25 },
- { date: '05-26-05', generation: 55, irradiance: 55, temp: 23 },
+ { date: '05-05-11', generation: 70, irradiance: 60, temp: 20 },
+ { date: '05-12-18', generation: 60, irradiance: 50, temp: 22 },
+ { date: '05-19-25', generation: 65, irradiance: 65, temp: 25 },
+ { date: '05-26-31', generation: 55, irradiance: 55, temp: 23 },
];
const orderAlarmData = [
- { date: '05-05-05', newOrder: 80, completed: 60, alarmCount: 10, closedRate: 80 },
- { date: '05-12-05', newOrder: 100, completed: 80, alarmCount: 20, closedRate: 85 },
- { date: '05-19-05', newOrder: 70, completed: 50, alarmCount: 15, closedRate: 90 },
- { date: '05-26-05', newOrder: 90, completed: 70, alarmCount: 18, closedRate: 92 },
+ { date: '05-05-11', newOrder: 80, completed: 60, alarmCount: 10, closedRate: 80 },
+ { date: '05-12-18', newOrder: 100, completed: 80, alarmCount: 20, closedRate: 85 },
+ { date: '05-19-25', newOrder: 70, completed: 50, alarmCount: 15, closedRate: 90 },
+ { date: '05-26-31', newOrder: 90, completed: 70, alarmCount: 18, closedRate: 92 },
];
const aiAnalysisData = [
- { type: '热斑识别', value: 36 },
- { type: '异常组串', value: 8 },
- { type: '推荐清洗区块', value: 8 },
- { type: '视频异常事件', value: 6 },
+ { type: '热斑识别', value: 36, color: '#F53F3F', icon:
},
+ { type: '异常组串', value: 8, color: '#FF7D00', icon:
},
+ { type: '推荐清洗区块', value: 8, color: '#00B42A', icon:
},
+ { type: '视频异常事件', value: 6, color: '#722ED1', icon:
},
];
const reportFileList = [
- { name: '电站月报', date: '2025年05月', type: '发电报表', status: '已生成', operator: '张运维', time: '2025-05-31 08:15' },
- { name: '周运维总结', date: '2025年05月', type: '运维报表', status: '已生成', operator: '系统自动', time: '2025-05-26 09:10' },
- { name: 'AI诊断日报', date: '2025年05月', type: 'AI分析报告', status: '生成中', operator: '系统自动', time: '2025-05-31 07:30' },
- { name: '告警闭环周报', date: '2025年05月', type: '告警报表', status: '已生成', operator: '李工程师', time: '2025-05-31 09:00' },
- { name: '清洗效果报告', date: '2025年05月', type: '运维报表', status: '已生成', operator: '王运维', time: '2025-05-28 10:20' },
+ { name: '2025年05月电站月报', status: '已生成' },
+ { name: '周运维总结', status: '已生成' },
+ { name: 'AI诊断日报', status: '生成中' },
+ { name: '告警闭环周报', status: '已生成' },
];
const reportTemplates = [
- { name: '月度经营报告', desc: '综合经营分析与收益评估模板', icon:
, color: '#1890ff' },
- { name: '设备健康分析报告', desc: '设备健康与故障分析模板', icon:
, color: '#faad14' },
- { name: '清洗优化效果报告', desc: '清洗前后对比与收益分析模板', icon:
, color: '#52c41a' },
- { name: '巡检与机器人作业报告', desc: '巡检与机器人作业统计模板', icon:
, color: '#722ed1' },
+ { name: '月度经营报告', desc: '综合经营分析与收益评估模板', color: '#165DFF', bg: '#E8F3FF', icon:
},
+ { name: '设备健康分析报告', desc: '设备健康度与故障分析模板', color: '#165DFF', bg: '#E8F3FF', icon:
},
+ { name: '清洗优化效果报告', desc: '清洗前后对比与收益分析模板', color: '#165DFF', bg: '#E8F3FF', icon:
},
+ { name: '巡检与机器人作业报告', desc: '巡检与机器人作业统计模板', color: '#722ED1', bg: '#F9F0FF', icon:
},
+];
+
+const generationRecord = [
+ { name: '电站月报', time: '2025-05-31 08:15', operator: '张运维', type: '发电报表', status: '已生成' },
+ { name: '告警周报', time: '2025-05-26 09:10', operator: '系统自动', type: '告警报表', status: '已生成' },
+ { name: 'AI诊断日报', time: '2025-05-31 07:30', operator: '系统自动', type: 'AI分析报告', status: '生成中' },
+ { name: '运维汇总报表', time: '2025-05-31 09:00', operator: '李工程师', type: '运维报表', status: '已生成' },
+ { name: '清洗效果报告', time: '2025-05-28 10:20', operator: '王运维', type: '运维报表', status: '已生成' },
];
export default function ReportCenterPage() {
@@ -82,10 +102,56 @@ export default function ReportCenterPage() {
const [reportType, setReportType] = useState('all');
const [dateRange, setDateRange] = useState([dayjs('2025-05-01'), dayjs('2025-05-31')]);
+ const cardStyle = {
+ borderRadius: 12,
+ border: '1px solid #f0f0f0',
+ boxShadow: '0 4px 12px rgba(0,0,0,0.05)',
+ overflow: 'hidden'
+ };
+
return (
-
+
+
+
+
报表中心
+
{/* 页面头部标签 */}
-
+
@@ -93,8 +159,6 @@ export default function ReportCenterPage() {
- {/* 顶部统计卡片 */}
- {/* 概览统计卡片 —— 统一风格 + 自动换行 + 宽高一致 */}
{/* 筛选栏 */}
-
-
-
-
-
- }>生成报表
- }>导出PDF
- }>导出Excel
-
+
+
+ 报表周期:
+
+
+
+ 报表类型:
+
+
+
+ 时间范围:
+
+
+
+
+ } size="small" style={{ borderRadius: 6, height: 32, padding: '0 16px' }}>生成报表
+ } size="small" style={{ borderRadius: 6, height: 32, color: '#F53F3F', borderColor: '#F53F3F' }}>导出PDF
+ } size="small" style={{ borderRadius: 6, height: 32, color: '#00B42A', borderColor: '#00B42A' }}>导出Excel
+
+
-
+
{/* 左侧主内容区 */}
-
+
{/* 月度综合经营分析 */}
-
- {
- if (datum.type === 'pr') return { lineDash: [4, 4] };
- return {};
- }}
- tooltip={{
- formatter: (datum) => {
- return {
- name: datum.date,
- data: [
- { name: '发电量(MWh)', value: datum.generation },
- { name: '预测发电(MWh)', value: datum.predicted },
- { name: 'PR(%)', value: datum.pr }
+ 月度综合经营分析}>
+
+
+
+
发电量 (MWh)
+
预测发电 (MWh)
+
PR (%)
+
+ {
+ if (datum.type === 'pr') return { lineDash: [4, 4] };
+ return {};
+ }}
+ tooltip={{
+ formatter: (datum) => {
+ return {
+ name: datum.date,
+ data: [
+ { name: '发电量(MWh)', value: datum.generation },
+ { name: '预测发电(MWh)', value: datum.predicted },
+ { name: 'PR(%)', value: datum.pr }
+ ]
+ };
+ }
+ }}
+ legend={{
+ items: [
+ { name: '发电量(MWh)', marker: { symbol: 'line', style: { stroke: '#52c41a' } } },
+ { name: '预测发电(MWh)', marker: { symbol: 'line', style: { stroke: '#1890ff', lineDash: [4, 4] } } },
+ { name: 'PR(%)', marker: { symbol: 'line', style: { stroke: '#fa8c16' } } },
]
- };
- }
- }}
- legend={{
- items: [
- { name: '发电量(MWh)', marker: { symbol: 'line', style: { stroke: '#52c41a' } } },
- { name: '预测发电(MWh)', marker: { symbol: 'line', style: { stroke: '#1890ff', lineDash: [4, 4] } } },
- { name: 'PR(%)', marker: { symbol: 'line', style: { stroke: '#fa8c16' } } },
- ]
- }}
- yAxis={[
- {
- label: { formatter: (v) => `${v}` },
- name: '发电量',
- },
- {
- label: { formatter: (v) => `${v}%` },
- name: 'PR',
- position: 'right',
- }
- ]}
- height={200}
- />
-
-
-
+ }}
+ yAxis={[
+ {
+ label: { formatter: (v) => `${v}` },
+ name: '发电量',
+ },
+ {
+ label: { formatter: (v) => `${v}%` },
+ name: 'PR',
+ position: 'right',
+ }
+ ]}
+ height={200}
+ />
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {[
+ { label: '本月累计发电量', value: '138.6', unit: 'MWh' },
+ { label: '理论发电量', value: '166.8', unit: 'MWh' },
+ { label: 'PR均值', value: '82.8', unit: '%' },
+ { label: '发电偏差', value: '-3.4', unit: '%', color: '#F53F3F' },
+ { label: '平均辐照度', value: '5.3', unit: 'kWh/㎡/天' },
+ ].map((item, idx) => (
+
+ {item.label}
+ {item.value} {item.unit}
+
+ ))}
+
+
- {/* 发电与气象 + 工单与告警 */}
-
-
-
+ {/* 第二排:三个图表 */}
+
+
+ 发电与气象统计}>
+
+
+
+
+
+
+
-
-
+
+ 工单与告警闭环分析}>
+
+
+
+
+
+
+
+
+ AI 分析成果统计}>
+
+
+
+
d.color)}
+ radius={1}
+ innerRadius={0.7}
+ legend={false}
+ height={160}
+ autoFit
+ />
+
+
+
+
+
+ {aiAnalysisData.map((item, idx) => (
+
+
+
+ {item.type}
+
+
{item.value} 个
+
+ ))}
+
+
+
+
+
- {/* AI分析成果统计 */}
-
-
-
-
-
-
-
- {aiAnalysisData.map((item, idx) => (
-
-
-
+ {/* 订阅与分发 */}
+ 订阅与分发}>
+
+
+ 订阅人员 (6)
+
+ {[
+ { name: '张运维', role: '运维主管', img: 'https://img.icons8.com/fluency/48/user-male-circle.png' },
+ { name: '李工程师', role: '电站工程师', img: 'https://img.icons8.com/fluency/48/user-male-circle.png' },
+ { name: '王运维', role: '设备运维', img: 'https://img.icons8.com/fluency/48/user-male-circle.png' },
+ { name: '陈经理', role: '运维经理', img: 'https://img.icons8.com/fluency/48/user-male-circle.png' },
+ ].map((p, idx) => (
+
+
+
))}
-
+
+2
+
+
+
+
+ 分发渠道 (可多选)
+
+ } style={{ borderRadius: 6, background: '#E8F3FF', border: 'none', color: '#165DFF' }}>邮件
+
+ } style={{ borderRadius: 6, background: '#E8F3FF', border: 'none', color: '#165DFF' }}>系统通知
+
+
+
+
+ 发送计划
+
+
+
+ 每周一 09:00 自动发送
+
+ } style={{ fontSize: 12, whiteSpace: 'nowrap' }}>编辑
+
{/* 右侧边栏 */}
-
+
{/* 报表目录 / 快捷下载 */}
-
- 报表目录 / 快捷下载
-
-
- }>
+ 报表目录 / 快捷下载} extra={}>
(
- {v}
- )
+ title: '报表名称', dataIndex: 'name',
+ render: (text) => {text}
},
{
- title: '操作', render: () => (
-
-
-
-
- )
- }
- ]}
- dataSource={reportFileList.slice(0, 4)}
- pagination={false}
- size="small"
- />
-
-
- {/* 模板中心 */}
-
- 模板中心
-
-
- }>
-
- {reportTemplates.map((tpl, idx) => (
-
-
-
-
- {tpl.icon}
-
-
-
{tpl.name}
-
{tpl.desc}
-
-
-
-
- ))}
-
-
-
- {/* 报表生成记录 */}
-
- 报表生成记录
-
-
- }>
- (
- {v}
- )
+ title: '状态', dataIndex: 'status', width: 80,
+ render: (v) => {v}
},
{
- title: '操作', render: () => (
-
-
-
+ title: '操作', width: 120,
+ render: () => (
+ }>
+
+
)
}
@@ -398,52 +491,58 @@ export default function ReportCenterPage() {
dataSource={reportFileList}
pagination={false}
size="small"
+ className="compact-table"
/>
- {/* 订阅与分发 */}
-
-
-
订阅人员
-
- {['张运维', '李工程师', '王运维', '陈经理'].map((name, idx) => (
-
-
- {name.charAt(0)}
+ {/* 模板中心 */}
+
模板中心} extra={}>
+
+ {reportTemplates.map((tpl, idx) => (
+
+
+
+
+ {tpl.icon}
+
+
{tpl.name}
-
{name}
+
{tpl.desc}
- ))}
- +2
-
-
+
+ ))}
+
+
-
-
-
-
分发渠道(可多选)
-
-
- 邮件
-
-
- Telegram
-
-
- 系统通知
-
-
-
-
-
-
-
- 发送计划
- }>编辑
-
-
- 每周一 09:00 自动发送
-
+ {/* 报表生成记录 */}
+
报表生成记录} extra={}>
+ {v}
+ },
+ {
+ title: '操作', width: 90,
+ render: () => (
+
+ } size="small" />
+ } size="small" />
+
+ )
+ }
+ ]}
+ dataSource={generationRecord}
+ pagination={false}
+ size="small"
+ className="compact-table"
+ scroll={{ y: 240 }}
+ />
diff --git a/src/pages/VideoMonitorPage.tsx b/src/pages/VideoMonitorPage.tsx
index 95628ce..1890695 100644
--- a/src/pages/VideoMonitorPage.tsx
+++ b/src/pages/VideoMonitorPage.tsx
@@ -1,60 +1,100 @@
import React, { useState } from 'react';
import {
Card, Row, Col, Button, Space, Input, Select, Table, Tag, Typography, Dropdown, Menu,
- Timeline
+ Timeline, Badge, Divider, Tooltip
} from 'antd';
import {
VideoCameraOutlined, BellOutlined, BorderOutlined, DatabaseOutlined,
PauseOutlined, SoundOutlined, CameraOutlined, FullscreenOutlined,
DownOutlined, AlertOutlined, UserOutlined, FireOutlined, ClockCircleOutlined,
- ScanOutlined, PlayCircleOutlined, DownloadOutlined
+ ScanOutlined, PlayCircleOutlined, DownloadOutlined, ReloadOutlined,
+ PictureOutlined, VideoCameraAddOutlined, ScissorOutlined,
+ ExpandOutlined, SettingOutlined, SearchOutlined, MoreOutlined
} from '@ant-design/icons';
+import { Fence, Monitor, HardDrive, BellRing, History, Eye, Play, Square, Volume2, ChevronRight } from 'lucide-react';
-const { Text } = Typography;
+const { Text, Title } = Typography;
const { Option } = Select;
export default function VideoMonitorPage() {
+ const cardStyle = {
+ borderRadius: 12,
+ border: '1px solid #f0f0f0',
+ boxShadow: '0 4px 12px rgba(0,0,0,0.05)',
+ overflow: 'hidden'
+ };
+
const [camList] = useState([
- { key: '1', name: 'CAM-01', position: '1#阵列区', status: '在线', recStatus: '录制中', time: '2025-05-20 10:23:45' },
- { key: '2', name: 'CAM-02', position: '逆变器室', status: '在线', recStatus: '录制中', time: '2025-05-20 10:24:10' },
- { key: '3', name: 'CAM-03', position: '电站大门', status: '在线', recStatus: '录制中', time: '2025-05-20 10:23:58' },
- { key: '4', name: 'CAM-04', position: '周界北侧', status: '在线', recStatus: '录制中', time: '2025-05-20 10:24:01' },
- { key: '5', name: 'CAM-05', position: '气象站', status: '在线', recStatus: '录制中', time: '2025-05-20 10:24:05' },
- { key: '6', name: 'CAM-06', position: '设备区', status: '在线', recStatus: '录制中', time: '2025-05-20 10:23:50' },
- { key: '7', name: 'CAM-07', position: '储能区', status: '在线', recStatus: '录制中', time: '2025-05-20 10:23:47' },
- { key: '8', name: 'CAM-08', position: '周界南侧', status: '离线', recStatus: '停止', time: '2025-05-20 09:12:31' },
- { key: '9', name: 'CAM-09', position: '1#阵列区西侧', status: '离线', recStatus: '停止', time: '2025-05-20 08:55:02' },
+ { key: '1', name: 'CAM-01 1#阵列区球机', position: '1#阵列区', status: '在线', recStatus: '录制中', time: '2025-05-20 10:23:45' },
+ { key: '2', name: 'CAM-02 2#逆变器室', position: '逆变器室', status: '在线', recStatus: '录制中', time: '2025-05-20 10:24:10' },
+ { key: '3', name: 'CAM-03 3#电站大门', position: '电站大门', status: '在线', recStatus: '录制中', time: '2025-05-20 10:23:58' },
+ { key: '4', name: 'CAM-04 4#周界北侧', position: '周界北侧', status: '在线', recStatus: '录制中', time: '2025-05-20 10:24:01' },
+ { key: '5', name: 'CAM-05 5#气象站', position: '气象站', status: '在线', recStatus: '录制中', time: '2025-05-20 10:24:05' },
+ { key: '6', name: 'CAM-06 6#设备区', position: '设备区', status: '在线', recStatus: '录制中', time: '2025-05-20 10:23:50' },
+ { key: '7', name: 'CAM-07 7#储能电池舱', position: '储能区', status: '在线', recStatus: '录制中', time: '2025-05-20 10:23:47' },
+ { key: '8', name: 'CAM-08 8#周界南侧', position: '周界南侧', status: '离线', recStatus: '停止', time: '2025-05-20 09:12:31' },
+ { key: '9', name: 'CAM-09 9#阵列区西侧', position: '1#阵列区西侧', status: '离线', recStatus: '停止', time: '2025-05-20 08:55:02' },
]);
const camColumns = [
- { title: '摄像头名称', dataIndex: 'name', key: 'name' },
- { title: '位置', dataIndex: 'position', key: 'position' },
+ { title: '摄像头名称', dataIndex: 'name', key: 'name', width: 200 },
+ { title: '位置', dataIndex: 'position', key: 'position', width: 120 },
{
- title: '状态', dataIndex: 'status', key: 'status',
- render: (text) => text === '在线'
- ? 在线
- : 离线
- },
- { title: '录像状态', dataIndex: 'recStatus', key: 'recStatus' },
- { title: '最后事件时间', dataIndex: 'time', key: 'time' },
- {
- title: '操作', key: 'action',
- render: () => (
-
- } />
+ title: '状态', dataIndex: 'status', key: 'status', width: 100,
+ render: (text: string) => (
+
+
+ {text}
)
+ },
+ {
+ title: '录像状态', dataIndex: 'recStatus', key: 'recStatus', width: 100,
+ render: (text: string) => (
+
+
+ {text}
+
+ )
+ },
+ { title: '最后事件时间', dataIndex: 'time', key: 'time', width: 180 },
+ {
+ title: '操作', key: 'action', width: 60,
+ render: () => (
+ } size="small" />
+ )
}
];
return (
-
-
-
视频监控
-
实时视频监控、云台控制、录像回放与智能告警一体化管理
-
- {/* ========== 顶部统计卡片:统一高度 ========== */}
- {/* 视频监控统计卡片 —— 宽高统一 + 最小宽度168px + 自动换行 */}
+
+
+
+ {/* 顶部统计卡片 */}
))}
-
- {/* ========== 视频区域 + AI:高度对齐 ========== */}
-
-
-
-
-
-
- }>
-
-
-

-
-
主画面:1#阵列区球机
-
2025-05-20 10:24:15
-
-
-
- } className="text-white" />
- } className="text-white" />
- } className="text-white" />
- } className="text-white" />
-
- 超清
- 高清
- 标清
-
- }>
-
-
-
-
-
-
-
- {[11, 12, 13, 14, 15, 16].map((id) => (
-
-

-
直播中
+ {/* 中间视频监控中心 */}
+
+
+ 视频监控中心}
+ extra={
+
+ }>自定义布局
+ }>全屏
+
+ }
+ bordered={false}
+ style={cardStyle}
+ bodyStyle={{ padding: 16 }}
+ >
+
+
+
+

+
+ 主画面:1#阵列区球机
+ 2025-05-20 10:24:15
- ))}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {[
+ { title: '2#逆变器室', img: 'https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=400&q=60' },
+ { title: '3#电站大门', img: 'https://images.unsplash.com/photo-1541888946425-d81bb19480c5?auto=format&fit=crop&w=400&q=60' },
+ { title: '4#周界北侧', img: 'https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=400&q=60' },
+ { title: '5#气象站', img: 'https://images.unsplash.com/photo-1534088568595-a066f7104211?auto=format&fit=crop&w=400&q=60' },
+ { title: '6#设备区', img: 'https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=400&q=60' },
+ { title: '7#储能电池舱', img: 'https://images.unsplash.com/photo-1593941707882-a5bba14938c7?auto=format&fit=crop&w=400&q=60' },
+ ].map((v, i) => (
+
+
+

+
{v.title}
+
+
+
+
+ ))}
+
+
+
-
-
设置}>
-
-
-
-
+
+
AI 视频智能分析}
+ extra={}
+ bordered={false}
+ style={{ ...cardStyle, height: '100%' }}
+ bodyStyle={{ padding: '16px 20px' }}
+ >
+
+ {[
+ { icon:

, bg: '#FFF1F0', title: '周界入侵检测', desc: '识别翻越、攀爬、破坏围栏等行为', count: 2, color: '#F53F3F' },
+ { icon:

, bg: '#E8F3FF', title: '人员闯入', desc: '识别未经授权人员进入区域', count: 1, color: '#165DFF' },
+ { icon:
, bg: '#FFF7E8', title: '烟火识别', desc: '识别烟雾、明火等异常情况', count: 0, color: '#86909C' },
+ { icon:
, bg: '#FFF7E8', title: '设备区域滞留', desc: '识别人员在设备区滞留行为', count: 1, color: '#F7BA1E' },
+ { icon:

, bg: '#E8FFEA', title: '运动检测', desc: '识别画面异常运动目标', count: 2, color: '#00B42A' },
+ ].map((item, idx) => (
+
+
+ {item.icon}
+
+
+
{item.title}
+
{item.desc}
+
+
0 ? '#F53F3F' : '#86909C' }}>{item.count}
-
-
周界入侵检测
-
识别翻越、攀爬、破坏围栏
-
-
2
-
-
-
-
-
-
-
-
-
+ ))}
- {/* ========== 底部三张卡片:高度完全统一 ========== */}
-
-
-
+
+ 摄像头设备列表}
extra={
-
-
}
+ bordered={false}
+ style={cardStyle}
+ bodyStyle={{ padding: 0 }}
>
-
-
- 全部类型
- 周界入侵
- 人员闯入
-
- }
+
+ 事件时间线}
+ extra={}
+ bordered={false}
+ style={cardStyle}
+ bodyStyle={{ padding: '16px 20px' }}
>
-
-
- 10:23:41
- 周界入侵检测
- 周界北侧区域检测到翻越围栏事件
-
-
-
- 10:18:09
- 人员闯入
- 设备区检测到人员闯入
-
-
-
- 10:05:33
- 设备区域滞留
- 逆变器区人员滞留超过5分钟
-
-
-
- 09:52:17
- 运动检测
- 气象站区域检测到异常运动
-
-
-
- 09:41:28
- 周界入侵检测
- 周界南侧区域检测到攀爬事件
-
+
+ {[
+ { time: '10:23:41', title: '周界入侵检测', desc: '周界北侧区域检测到翻越围栏事件', color: '#F53F3F' },
+ { time: '10:18:09', title: '人员闯入', desc: '设备区检测到人员闯入', color: '#F7BA1E' },
+ { time: '10:05:33', title: '设备区域滞留', desc: '逆变器区人员滞留超过5分钟', color: '#F7BA1E' },
+ { time: '09:52:17', title: '运动检测', desc: '气象站区域检测到异常运动', color: '#165DFF' },
+ { time: '09:41:28', title: '周界入侵检测', desc: '周界南侧区域检测到攀爬事件', color: '#F53F3F' },
+ ].map((item, idx) => (
+ {item.time}} dot={}>
+
+
{item.title}
+
{item.desc}
+
+
+ ))}
-
-
+
+
-
-
查看更多}>
-
- {[20, 21, 22, 23].map((id) => (
-
-

-
-
告警事件
-
2025-05-20 10:23
+
+
最近告警快照}
+ extra={}
+ bordered={false}
+ style={cardStyle}
+ bodyStyle={{ padding: '16px 20px' }}
+ >
+
+ {[
+ { title: '周界北侧', time: '10:23:41', type: '周界入侵', img: 'https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=300&q=60', boxColor: '#F53F3F' },
+ { title: '设备区', time: '10:18:09', type: '人员闯入', img: 'https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=300&q=60', boxColor: '#F7BA1E' },
+ { title: '逆变器室', time: '10:05:33', type: '设备区域滞留', img: 'https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=300&q=60', boxColor: '#F7BA1E' },
+ //{ title: '气象站', time: '09:52:17', type: '运动检测', img: 'https://images.unsplash.com/photo-1534088568595-a066f7104211?auto=format&fit=crop&w=300&q=60', boxColor: '#165DFF' },
+ ].map((item, idx) => (
+
+
+

+ {/* 模拟检测框 */}
+
+
+
{item.time}
+
{item.title}
+
+
+
+ } size="small" />
+ } size="small" />
+ } size="small" />
-
- } />
- } />
-
))}
diff --git a/src/pages/WorkOrder.tsx b/src/pages/WorkOrder.tsx
index 4149a6a..04aa8a1 100644
--- a/src/pages/WorkOrder.tsx
+++ b/src/pages/WorkOrder.tsx
@@ -10,7 +10,8 @@ import {
EyeOutlined, CommentOutlined, PauseOutlined, FormOutlined,
ReloadOutlined, FilterOutlined, MoreOutlined,
CheckCircleFilled, PlayCircleFilled, InfoCircleFilled,
- RobotOutlined, ThunderboltOutlined, AlertOutlined
+ RobotOutlined, ThunderboltOutlined, AlertOutlined,
+ CheckCircleOutlined
} from '@ant-design/icons';
import { Pie, Line } from '@ant-design/charts';
import {
@@ -82,55 +83,6 @@ const WorkOrderPage = () => {
{ title: 'AI建议生成', value: 7, unit: '单', subValue: '', subText: '今日自动生成', icon: , bg: '#f9f0ff' },
];
- // 表格列【已适配后端真实字段】
- const columns = [
- { title: '工单编号', dataIndex: 'orderNo', key: 'orderNo', width: 130 },
- { title: '工单标题', dataIndex: 'orderTitle', key: 'orderTitle', width: 180, ellipsis: true },
- {
- title: '类型',
- dataIndex: 'orderType',
- key: 'orderType',
- width: 80,
- render: (val) => orderTypeConfig[val] || '未知'
- },
- {
- title: '优先级',
- dataIndex: 'priorityLevel',
- key: 'priorityLevel',
- width: 80,
- render: (p) => (
-
- {priorityConfig[p]?.label}
-
- )
- },
- { title: '负责人', dataIndex: 'assigneeName', key: 'assigneeName', width: 80 },
- { title: '截止时间', dataIndex: 'deadlineTime', key: 'deadlineTime', width: 150 },
- {
- title: '状态',
- dataIndex: 'orderStatus',
- key: 'orderStatus',
- width: 90,
- render: (s) => (
- {orderStatusConfig[s]?.label}
- )
- },
- {
- title: '操作',
- key: 'action',
- width: 60,
- fixed: "right",
- render: () =>
- },
- ];
-
// 图表模拟数据保留不变
const pieData = [
{ type: '待处理', value: 12 },
@@ -259,11 +211,101 @@ const WorkOrderPage = () => {
getWorkOrderList();
}, []);
+ const cardStyle = {
+ borderRadius: 12,
+ border: '1px solid #f0f0f0',
+ boxShadow: '0 4px 12px rgba(0,0,0,0.05)',
+ overflow: 'hidden'
+ };
+
+ // 表格列【已适配后端真实字段】
+ const columns = [
+ { title: '工单编号', dataIndex: 'orderNo', key: 'orderNo', width: 130 },
+ { title: '工单标题', dataIndex: 'orderTitle', key: 'orderTitle', width: 180, ellipsis: true },
+ { title: '来源', dataIndex: 'sourceType', key: 'sourceType', width: 100 },
+ {
+ title: '类型',
+ dataIndex: 'orderType',
+ key: 'orderType',
+ width: 80,
+ render: (val) => orderTypeConfig[val] || '未知'
+ },
+ {
+ title: '优先级',
+ dataIndex: 'priorityLevel',
+ key: 'priorityLevel',
+ width: 80,
+ render: (p) => (
+
+ {priorityConfig[p]?.label}
+
+ )
+ },
+ { title: '负责人', dataIndex: 'assigneeName', key: 'assigneeName', width: 80 },
+ { title: '截止时间', dataIndex: 'deadlineTime', key: 'deadlineTime', width: 150 },
+ {
+ title: '状态',
+ dataIndex: 'orderStatus',
+ key: 'orderStatus',
+ width: 90,
+ render: (s) => (
+
+
+ {orderStatusConfig[s]?.label}
+
+ )
+ },
+ {
+ title: '操作',
+ key: 'action',
+ width: 60,
+ fixed: "right",
+ render: () =>
+ },
+ ];
+
return (
-
+
+
+
{/* 顶部标题和页签 */}
-
工单任务
+ 工单任务管理
{
{/* 统计卡片 */}
- {/* 统一风格统计卡片 —— 宽高一致 + 自动换行 + 最小宽度168px */}
-
+
{stats.map((item, index) => (
-
-
-
- {/* 左侧文字 */}
-
-
{item.title}
-
-
-
{item.value}
- {item.unit &&
{item.unit}}
+
+
+
+
+
{item.title}
+
+
{item.value}
+ {item.unit &&
{item.unit}}
-
-
-
{item.subText}
-
+
+ {item.subText}
+
{item.subValue}
-
- {/* 右侧图标 */}
-
@@ -342,78 +355,80 @@ const WorkOrderPage = () => {
))}
+
{/* 筛选栏 */}
-
-
-
+
+
+
- 工单类型
-
+ 工单类型
+
-
+
- 优先级
-
+ 优先级
+
-
+
- 负责人
-
+ 负责人
+
-
+
- 时间范围
-
+ 时间范围
+
-
+
- 状态
-
+ 状态
+
-
+
- 关键词
- } />
+ 关键词
+ } size="small" />
-
+
-
-
+
+ }>查询
-
+
{/* 左侧:列表 + 底部图表 */}
-
+
工单列表(共 {workOrderTotal} 条)
}
+ title={
工单列表(共 {workOrderTotal} 条)}
bodyStyle={{ padding: 0 }}
- style={{ borderRadius: 8, marginBottom: 16 }}
+ style={{ ...cardStyle, marginBottom: 16 }}
>
{
onChange: handleRowSelect
}}
/>
-
+
-
-
-
-
+
+
+ 工单状态分布} style={{ ...cardStyle, height: 380 }}>
+
{
const total = pieData.reduce((a, b) => a + b.value, 0);
- const percent = ((item.value / total) * 100).toFixed(2);
+ const percent = ((item.value / total) * 100).toFixed(1);
return `${item.value} (${percent}%)`;
}
}
}}
- height={240}
+ height={260}
/>
-
总数
-
{workOrderTotal}
+
总数
+
{workOrderTotal}
-
+
任务排班 / 日历视图}
extra={}
- style={{ borderRadius: 8, height: 360 }}
+ style={{ ...cardStyle, height: 380 }}
+ bodyStyle={{ padding: '16px' }}
>
-
+
} />
- 2025-05-24 (今天)
+ 2025-05-24 (今天)
} />
-
-
-
+
+
+
{['08:00', '10:00', '12:00', '14:00', '16:00', '18:00'].map(t => (
-
{t}
+
{t}
))}
{['李工', '王工', '赵工', '陈工'].map((name, idx) => (
-
-
{name}
+
+
{name}
- {idx === 0 &&
INV-05 告警排查
08:30 - 12:00
}
- {idx === 1 &&
B-12 热斑复检
13:30 - 15:00
}
- {idx === 1 &&
无人机巡检
16:00-18:00
}
- {idx === 2 &&
组件清洗 C-05
09:00 - 12:00
}
- {idx === 2 &&
清洗效果复检
15:00 - 17:00
}
- {idx === 3 &&
周界摄像头修复
10:00 - 12:30
}
- {idx === 3 &&
设备巡检
15:30 - 17:30
}
+ {idx === 0 &&
INV-05 告警排查
08:30 - 12:00
}
+ {idx === 1 &&
B-12 热斑复检
13:30 - 15:00
}
+ {idx === 1 &&
无人机巡检
16:00-18:00
}
+ {idx === 2 &&
组件清洗 C-05
09:00 - 12:00
}
+ {idx === 2 &&
清洗效果复检
15:00 - 17:00
}
+ {idx === 3 &&
周界摄像头修复
10:00 - 12:30
}
+ {idx === 3 &&
设备巡检
15:30 - 17:30
}
))}
@@ -499,26 +516,29 @@ const WorkOrderPage = () => {
{/* 右侧:详情 + AI + 告警 */}
-
+
-
-
工单详情
-
工单编号: {currentDetail?.orderNo || '--'}
+
+ 工单详情
+ 工单编号: {currentDetail?.orderNo || '--'}
-
-
-
{currentDetail?.orderTitle || '暂无标题'}
+
+
+
{currentDetail?.orderTitle || '暂无标题'}
{currentDetail?.priorityLevel && (
{priorityConfig[currentDetail.priorityLevel].label}优先级
@@ -526,126 +546,133 @@ const WorkOrderPage = () => {
)}
-
- 来源:{currentDetail?.sourceType || '--'}
- 工单类型:{orderTypeConfig[currentDetail?.orderType] || '--'}
- 负责人:{currentDetail?.assigneeName || '--'}
- 协同人员:{currentDetail?.collaboratorNames || '无'}
- 计划时间:{currentDetail?.planStartTime ? `${currentDetail.planStartTime} ~ ${currentDetail.planEndTime}` : '--'}
- 关联设备:{currentDetail?.deviceName || '无'}
- 关联电站:{currentDetail?.siteName || '无'}
+
+ 来源:{currentDetail?.sourceType || '--'}
+ 工单类型:{orderTypeConfig[currentDetail?.orderType] || '--'}
+ 负责人:{currentDetail?.assigneeName || '--'}
+ 协同人员:{currentDetail?.collaboratorNames || '无'}
+ 计划时间:{currentDetail?.planStartTime ? `${currentDetail.planStartTime} ~ ${currentDetail.planEndTime}` : '--'}
+ 关联设备:{currentDetail?.deviceName || '无'}
+ 关联区域:{currentDetail?.siteName || '无'}
- 当前状态:
- {orderStatusConfig[currentDetail?.orderStatus]?.label || '--'}
+ 当前状态:
+ {orderStatusConfig[currentDetail?.orderStatus]?.label || '--'}
- 任务描述:
- {currentDetail?.taskDescription || '暂无描述'}
+ 任务描述:
+ {currentDetail?.taskDescription || '暂无描述'}
-
-
-
-
-
-
-
-
-
-
4
-
已完成
+
+
+ {/* 连线 */}
+
+
= 3 ? '100%' : (currentDetail?.orderStatus === 2 ? '66%' : '33%'), height: '100%', background: '#00B42A' }}>
+
+ {[
+ { label: '已创建', step: 1, active: currentDetail?.orderStatus >= 1 },
+ { label: '已派发', step: 2, active: currentDetail?.orderStatus >= 2 },
+ { label: '执行中', step: 3, active: currentDetail?.orderStatus >= 2 },
+ { label: '已完成', step: 4, active: currentDetail?.orderStatus >= 4 },
+ ].map(item => (
+
+
+ {item.active ? : item.step}
+
+
{item.label}
+
+ ))}
-
-
- } block onClick={openEditModal}>转派
- } danger ghost block>挂起
- } style={{ background: '#52c41a', color: '#fff', border: 'none' }} block>完成工单
+
+
+ } block onClick={openEditModal} style={{ borderRadius: 8, height: 36, fontWeight: 600 }}>转派
+ } danger ghost block style={{ borderRadius: 8, height: 36, fontWeight: 600 }}>挂起
+ } style={{ background: '#00B42A', color: '#fff', border: 'none', borderRadius: 8, height: 36, fontWeight: 600 }} block>完成工单
AI 建议与关联信息
}
- style={{ borderRadius: 8, marginBottom: 16 }}
- bodyStyle={{ padding: '12px' }}
+ title={
AI 建议与关联信息}
+ style={{ ...cardStyle, marginTop: 16 }}
+ bodyStyle={{ padding: '16px' }}
>
-
+
-
-
-
建议携带
-
{currentDetail?.requiredEquipment || '无'}
+
-
-
-
AI建议方案
-
{currentDetail?.aiSuggestion || '无'}
+
+
+
+
+
优先复检组件
+
B-12-03 / B-12-05
-
-
-
预计发电影响
-
{currentDetail?.estimatedImpact ?? 0}%
+
-
-
-
-
+
+
+ 关联告警趋势 (近 7 天)
-
-
-
- 查看全部 } style={{ borderRadius: 8 }}>
-
-
-
- INV-05 逆变器告警
- 05-24 10:24
-
-
-
- B-12 区块热斑告警
- 05-24 09:56
-
-
-
- B-12 组件温度异常
- 05-24 09:32
-
+
+
+
-
-
-
+
+ {[
+ { title: 'INV-05 逆变器告警', time: '05-24 10:24', status: 'error' },
+ { title: 'B-12 区块热斑告警', time: '05-24 09:56', status: 'warning' },
+ { title: 'B-12 组件温度异常', time: '05-24 09:32', status: 'warning' },
+ ].map((item, idx) => (
+
+
+
{item.title}
+
{item.time}
+
+ ))}
+
+
+
+