feat(): 视频监控对接
parent
c5b4fbdebd
commit
aa5874bbc5
|
|
@ -68,6 +68,7 @@ const apiurl = {
|
||||||
//闸门监控
|
//闸门监控
|
||||||
zmjk: {
|
zmjk: {
|
||||||
getList: service_xyt + '/attGateB/list',
|
getList: service_xyt + '/attGateB/list',
|
||||||
|
video:service_xyt + '/attCctvBase/list',
|
||||||
getInformation: service_xyt + '/attGateB/data',
|
getInformation: service_xyt + '/attGateB/data',
|
||||||
getDamData: service_xyt + '/gatePore/listByStcd',
|
getDamData: service_xyt + '/gatePore/listByStcd',
|
||||||
getVideo: service_xyt + '/gateValveCctvRel/list'
|
getVideo: service_xyt + '/gateValveCctvRel/list'
|
||||||
|
|
|
||||||
|
|
@ -263,19 +263,20 @@ const Page = () => {
|
||||||
const pts = contextCoordinates(xunit, hole);
|
const pts = contextCoordinates(xunit, hole);
|
||||||
const eqpnoList = useMemo(() => damList ? new Array(damList.length).fill(0).map((o, index) => index) : [], [damList]);
|
const eqpnoList = useMemo(() => damList ? new Array(damList.length).fill(0).map((o, index) => index) : [], [damList]);
|
||||||
|
|
||||||
// useEffect(() => {
|
useEffect(() => {
|
||||||
// getList()
|
getList()
|
||||||
// }, [])
|
}, [])
|
||||||
|
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
const { code, data } = await httppost2(apiurl.zmjk.getList)
|
const { code, data } = await httppost2(apiurl.zmjk.video)
|
||||||
if (code !== 200) {
|
if (code !== 200) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const obj = data[0] || {}
|
const obj = data[0] || {}
|
||||||
// getInformation(obj.gateCode)
|
// getInformation(obj.gateCode)
|
||||||
// getDamData(obj.stcd)
|
// getDamData(obj.stcd)
|
||||||
getVideo(obj.gateCode)
|
// getVideo(obj.indexCode)
|
||||||
|
getVideoSrc(data[0]?.indexCode)
|
||||||
setData(obj)
|
setData(obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue