From feb1824eed03fe6e4bfdad9a82bd0d1002d52a9d Mon Sep 17 00:00:00 2001 From: wenlele Date: Thu, 30 Jun 2022 17:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=AD=E6=94=BE=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/videoPlayer/videoPlay.jsx | 1 + .../components/nvrCamera.jsx | 4 +++- .../components/sideSheet.jsx | 6 +++-- .../equipmentWarehouse/containers/camera.jsx | 22 +++++++++++++++++-- 4 files changed, 28 insertions(+), 5 deletions(-) diff --git a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx index b63a263..1cf1348 100644 --- a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx +++ b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx @@ -27,6 +27,7 @@ const VideoPlay = ({ // replayUrl: 'ezopen://open.ys7.com/G75922040/1.rec', }, }) => { + console.log(videoObj); const [jessibuca, setjessibuca] = useState(null) const [isPlaying, setIsPlaying] = useState(false) const [operationState, setoperationState] = useState() diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/nvrCamera.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/nvrCamera.jsx index 7ecc849..f97c41f 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/nvrCamera.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/nvrCamera.jsx @@ -55,10 +55,11 @@ function nvrCamera ({ dispatch, actions, nvrRef, cameraData, addNvr, nvrNumber } ).then((res) => { let oneData = res.payload.data[0]; let modifyData = res.payload.data.find( - (item) =>item.id == cameraData.gbId); + (item) => item.id == cameraData.gbId); let data = res.payload.data.map((item, index) => { if (item.camera) { item.name = item.camera.name; + item.support = item.camera.cloudControl } if (item.id == cameraData.gbId) { item = oneData; @@ -66,6 +67,7 @@ function nvrCamera ({ dispatch, actions, nvrRef, cameraData, addNvr, nvrNumber } if (index == 0) { item = modifyData; } + return item; }); setNVRcameraList(data); diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/sideSheet.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/sideSheet.jsx index 82815b2..a02dc5f 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/sideSheet.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/sideSheet.jsx @@ -138,6 +138,7 @@ function SideSheets (props) { rowId ) ).then((res) => { + console.log(res.payload.data); setNvrDetails(res.payload.data); projectScrollbar = new PerfectScrollbar("#project_information", { suppressScrollX: true, @@ -163,6 +164,7 @@ function SideSheets (props) { const statusNvr = nvrDetails.gbNvr const statusCamera = nvrDetails.gbCamera + console.log(); function colorStatus (data) { switch (data) { case "ON": @@ -179,8 +181,8 @@ function SideSheets (props) { 污水管理出出口 - : <>智慧设备NVR + <>污水管理出出口 + : <>智慧设备NVR } style={{ background: "#F9FBFF" }} size="large" diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx index dcaa71f..e036e43 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx @@ -11,6 +11,7 @@ import { Tag, Skeleton, Popconfirm, + Row, } from "@douyinfe/semi-ui"; import { SimpleFileDownButton, VideoPlayModal } from "$components"; import "../style.less"; @@ -38,6 +39,7 @@ const CameraHeader = (props) => { const [parentCamera, setParentCamera] = useState(""); //级联摄像头父级设备 const [addNvr, setAddNvr] = useState(false); //nvr页面传递参数打开NVR摄像头添加弹框 const [nvrNumber, setNvrNumber] = useState(); + const [videoObj, setVideoObj] = useState(); //播放条件 const [axyData, setAxyData] = useState(); const { equipmentWarehouse } = actions; const api = useRef(); @@ -118,7 +120,7 @@ const CameraHeader = (props) => { return (
{row.name} - { if (deviceClickb.current) { if (row.type == "nvr") { @@ -148,6 +150,7 @@ const CameraHeader = (props) => { width: "20%", dataIndex: "", render: (_, row) => { + console.log(row); return (