import React, { useEffect, useState } from 'react' import { connect } from 'react-redux'; import { Box, YSIframePlayer } from '$components'; import { Select } from 'antd'; import './style.less'; const DataTop5 = ({ dispatch, actions }) => { const [videoList, setVideoList] = useState([]) const [options, setOptions] = useState([]) const [videoData, setVideoData] = useState({}) useEffect(() => { dispatch(actions.firecontrol.getVideoCenterList()).then(res => { if (res.success) { setVideoList(res.payload.data || []) setOptions(res.payload.data?.map(v => ({ value: v.deviceSerial, label: v.deviceName })) || []) setVideoData(res.payload.data[0] || {}) } }) }, []) return
视频监控