|
@ -100,20 +100,20 @@ const Control = (props) => { |
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
if (pepProjectId) setProjectId(pepProjectId) |
|
|
if (pepProjectId) setProjectId(pepProjectId) |
|
|
if (!projectId) { |
|
|
if (!projectId) { |
|
|
工作台数据请求 |
|
|
// 工作台数据请求 |
|
|
dispatch(control.getConsoleCount({ pepProjectId: pepProjectId })).then(res => { |
|
|
dispatch(control.getConsoleCount({ pepProjectId: pepProjectId })).then(res => { |
|
|
if (res.success) setWorkData(res.payload.data) |
|
|
if (res.success) setWorkData(res.payload.data) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
查询BI分析数据-数据 |
|
|
// 查询BI分析数据-数据 |
|
|
dispatch(control.getDataAlarmsAggDay({ pepProjectId: pepProjectId })).then(res => { |
|
|
dispatch(control.getDataAlarmsAggDay({ pepProjectId: pepProjectId })).then(res => { |
|
|
if (res.success) setDataBI(res.payload.data) |
|
|
if (res.success) setDataBI(res.payload.data) |
|
|
}) |
|
|
}) |
|
|
查询BI分析数据-视频异常 |
|
|
// 查询BI分析数据-视频异常 |
|
|
dispatch(control.getVideoAlarmsAggDay({ pepProjectId: pepProjectId })).then(res => { |
|
|
dispatch(control.getVideoAlarmsAggDay({ pepProjectId: pepProjectId })).then(res => { |
|
|
if (res.success) setVideoBI(res.payload.data) |
|
|
if (res.success) setVideoBI(res.payload.data) |
|
|
}) |
|
|
}) |
|
|
查询BI分析数据-应用 |
|
|
// 查询BI分析数据-应用 |
|
|
dispatch(control.getAppAlarmsAggDay({ pepProjectId: pepProjectId })).then(res => { |
|
|
dispatch(control.getAppAlarmsAggDay({ pepProjectId: pepProjectId })).then(res => { |
|
|
if (res.success) setAppBI(res.payload.data) |
|
|
if (res.success) setAppBI(res.payload.data) |
|
|
}) |
|
|
}) |
|
|