import { useState } from 'react';
import {
Card, Row, Col, Button, Space, Input, Select, Table, Tag, Typography, Dropdown, Menu,
Timeline
} from 'antd';
import {
VideoCameraOutlined, BellOutlined, BorderOutlined, DatabaseOutlined,
PauseOutlined, SoundOutlined, CameraOutlined, FullscreenOutlined,
DownOutlined, AlertOutlined, UserOutlined, FireOutlined, ClockCircleOutlined,
ScanOutlined, PlayCircleOutlined, DownloadOutlined
} from '@ant-design/icons';
const { Text } = Typography;
const { Option } = Select;
export default function VideoMonitorPage() {
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' },
]);
const camColumns = [
{ title: '摄像头名称', dataIndex: 'name', key: 'name' },
{ title: '位置', dataIndex: 'position', key: 'position' },
{
title: '状态', dataIndex: 'status', key: 'status',
render: (text) => text === '在线'
?
实时视频监控、云台控制、录像回放与智能告警一体化管理