From 35ab0b2fa6967071d83f9a8e1caea48315699afe Mon Sep 17 00:00:00 2001 From: wenlele Date: Fri, 24 Jun 2022 08:55:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/cascadeCamera.jsx | 2 +- .../equipmentWarehouse/containers/camera.jsx | 24 +++++++++---------- .../equipmentWarehouse/containers/nvr.jsx | 17 +++---------- code/VideoAccess-VCMP/web/package.json | 2 +- 4 files changed, 16 insertions(+), 29 deletions(-) diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cascadeCamera.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cascadeCamera.jsx index f3603d8..471e7a3 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cascadeCamera.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cascadeCamera.jsx @@ -91,7 +91,7 @@ function cascadeCamera ({ dRef, dispatch, actions, cameraData ,parentCamera}) { - + { { if (deviceClickb.current) { - if (row.type == "nvr") { setearch({ ...searchb.current, nvrId: row.nvr.id }) } else { @@ -145,7 +144,6 @@ const CameraHeader = (props) => { ); }, }, - { title: "操作", width: "20%", @@ -406,27 +404,27 @@ const CameraHeader = (props) => { r.station.map((v) => { if (exhibition == "structure") { datas.push(v.structure.name) - }else{ - if(exhibition == "point"){ + } else { + if (exhibition == "point") { datas.push(v.name) - }else{ + } else { datas.push(v.factor.name) } } }) } - let dataSet =[...(new Set(datas))] - return dataSet.length>0? 0 ? - {dataSet.length>0?dataSet.map((v,index)=>
{v}
):""} + {dataSet.length > 0 ? dataSet.map((v, index) =>
{v}
) : ""} } > - {dataSet.length>0?`${dataSet[0]}...`:""} -
:"" + {dataSet.length > 0 ? `${dataSet[0]}...` : ""} +
: "" } //条件赛选样式 @@ -610,8 +608,8 @@ const CameraHeader = (props) => { }} onClick={() => { api.current.validate().then((v) => { - setearch(v); - searchb.current = v + setearch({ ...v, limit: 10, page: 0 }); + searchb.current = { ...v, limit: 10, page: 0 } }); equipmentGetCamera(); }} @@ -684,7 +682,7 @@ const CameraHeader = (props) => { style={{ width: 18, height: 18 }} /> - + { }} onClick={() => { api.current.validate().then((v) => { - setearch(v); + setearch({ ...v, limit: 10, page: 0 }); }); equipmentGetNvr(); }} @@ -523,19 +524,7 @@ const NvrHeader = (props) => { style={{ width: 18, height: 18 }} /> - - - +