|
@ -11,6 +11,7 @@ import { |
|
|
Tag, |
|
|
Tag, |
|
|
Skeleton, |
|
|
Skeleton, |
|
|
Popconfirm, |
|
|
Popconfirm, |
|
|
|
|
|
Row, |
|
|
} from "@douyinfe/semi-ui"; |
|
|
} from "@douyinfe/semi-ui"; |
|
|
import { SimpleFileDownButton, VideoPlayModal } from "$components"; |
|
|
import { SimpleFileDownButton, VideoPlayModal } from "$components"; |
|
|
import "../style.less"; |
|
|
import "../style.less"; |
|
@ -38,6 +39,7 @@ const CameraHeader = (props) => { |
|
|
const [parentCamera, setParentCamera] = useState(""); //级联摄像头父级设备 |
|
|
const [parentCamera, setParentCamera] = useState(""); //级联摄像头父级设备 |
|
|
const [addNvr, setAddNvr] = useState(false); //nvr页面传递参数打开NVR摄像头添加弹框 |
|
|
const [addNvr, setAddNvr] = useState(false); //nvr页面传递参数打开NVR摄像头添加弹框 |
|
|
const [nvrNumber, setNvrNumber] = useState(); |
|
|
const [nvrNumber, setNvrNumber] = useState(); |
|
|
|
|
|
const [videoObj, setVideoObj] = useState(); //播放条件 |
|
|
const [axyData, setAxyData] = useState(); |
|
|
const [axyData, setAxyData] = useState(); |
|
|
const { equipmentWarehouse } = actions; |
|
|
const { equipmentWarehouse } = actions; |
|
|
const api = useRef(); |
|
|
const api = useRef(); |
|
@ -118,7 +120,7 @@ const CameraHeader = (props) => { |
|
|
return ( |
|
|
return ( |
|
|
<div> |
|
|
<div> |
|
|
{row.name} |
|
|
{row.name} |
|
|
<span style={{ color: "blue" }} |
|
|
<span style={{ color: "#1859C1" }} |
|
|
onClick={() => { |
|
|
onClick={() => { |
|
|
if (deviceClickb.current) { |
|
|
if (deviceClickb.current) { |
|
|
if (row.type == "nvr") { |
|
|
if (row.type == "nvr") { |
|
@ -148,6 +150,7 @@ const CameraHeader = (props) => { |
|
|
width: "20%", |
|
|
width: "20%", |
|
|
dataIndex: "", |
|
|
dataIndex: "", |
|
|
render: (_, row) => { |
|
|
render: (_, row) => { |
|
|
|
|
|
console.log(row); |
|
|
return ( |
|
|
return ( |
|
|
<div style={{ display: "flex" }}> |
|
|
<div style={{ display: "flex" }}> |
|
|
<Button |
|
|
<Button |
|
@ -184,8 +187,22 @@ const CameraHeader = (props) => { |
|
|
<Button |
|
|
<Button |
|
|
theme="borderless" |
|
|
theme="borderless" |
|
|
onClick={() => { |
|
|
onClick={() => { |
|
|
// setRowId(row.id); |
|
|
if (row.type == "yingshi") { |
|
|
|
|
|
// console.log(row.serialNo); |
|
|
|
|
|
// console.log(row.secretYingshi.token); |
|
|
|
|
|
// console.log(row.gbCamera.playUrl.liveUrl.sd.ezopen); |
|
|
|
|
|
// console.log(row.gbCamera.playUrl.liveUrl.hd.ezopen); |
|
|
|
|
|
|
|
|
|
|
|
setVideoObj({ |
|
|
|
|
|
type:row.type, |
|
|
|
|
|
serialNo: row.serialNo, |
|
|
|
|
|
yingshiToken: row.secretYingshi.token, |
|
|
|
|
|
playUrlSd: row.gbCamera.playUrl.liveUrl.sd.ezopen, |
|
|
|
|
|
playUrlHd: row.gbCamera.playUrl.liveUrl.hd.ezopen, |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
setVideoPlay(true) |
|
|
setVideoPlay(true) |
|
|
|
|
|
|
|
|
}} |
|
|
}} |
|
|
> |
|
|
> |
|
|
播放 |
|
|
播放 |
|
@ -780,6 +797,7 @@ const CameraHeader = (props) => { |
|
|
{videoPlay ? |
|
|
{videoPlay ? |
|
|
<VideoPlayModal |
|
|
<VideoPlayModal |
|
|
visible={true} |
|
|
visible={true} |
|
|
|
|
|
videoObj={videoObj} |
|
|
close={() => { |
|
|
close={() => { |
|
|
setVideoPlay(false) |
|
|
setVideoPlay(false) |
|
|
}} /> |
|
|
}} /> |
|
|