|
|
@ -122,7 +122,6 @@ const CameraHeader = (props) => { |
|
|
|
<sapn style={{ color: "blue" }} |
|
|
|
onClick={() => { |
|
|
|
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?<Popover |
|
|
|
let dataSet = [...(new Set(datas))] |
|
|
|
return dataSet.length > 0 ? <Popover |
|
|
|
key="updateTime" |
|
|
|
position="top" |
|
|
|
content={ |
|
|
|
<article style={{ padding: 12 }}> |
|
|
|
{dataSet.length>0?dataSet.map((v,index)=><div key={index}>{v}</div>):""} |
|
|
|
{dataSet.length > 0 ? dataSet.map((v, index) => <div key={index}>{v}</div>) : ""} |
|
|
|
</article> |
|
|
|
} |
|
|
|
> |
|
|
|
<Tag>{dataSet.length>0?`${dataSet[0]}...`:""}</Tag> |
|
|
|
</Popover>:"" |
|
|
|
<Tag>{dataSet.length > 0 ? `${dataSet[0]}...` : ""}</Tag> |
|
|
|
</Popover> : "" |
|
|
|
|
|
|
|
} |
|
|
|
//条件赛选样式 |
|
|
@ -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 }} |
|
|
|
/> |
|
|
|
</Button> |
|
|
|
<SimpleFileDownButton src="nvr/export" /> |
|
|
|
<SimpleFileDownButton src="camera/export" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<Skeleton |
|
|
|