diff --git a/src/api/video/aiBoxVideo.js b/src/api/video/aiBoxVideo.js index a8f37cc..33389fe 100644 --- a/src/api/video/aiBoxVideo.js +++ b/src/api/video/aiBoxVideo.js @@ -7,6 +7,14 @@ const listView=(deptId,projectId)=> { }) } +const list=(data,pageNum,pageSize)=> { + return request({ + url: `/bgscreen/aiBoxVideo/list?pageNum=${pageNum}&pageSize=${pageSize}`, + data:data, + method: 'post' + }) +} + const getVideoPassage=(deptId,projectId,passageType,importance)=> { return request({ url: `/bgscreen/aiBoxVideo/getVideoPassage?deptId=${deptId||0}&projectId=${projectId||0}&passageType=${passageType}&importance=${importance}`, @@ -21,6 +29,13 @@ const groupCountByAlarmType=(deptId,projectId,now)=> { }) } +const groupCountByProject=(deptId,projectId)=> { + return request({ + url: `/bgscreen/aiBoxVideo/groupCountByProject?deptId=${deptId||0}&projectId=${projectId||0}`, + method: 'get' + }) +} + // 查询视频分布汇总 const selectGroupCountVideoConfig=(deptId,projectId)=> { return request({ @@ -31,8 +46,10 @@ const selectGroupCountVideoConfig=(deptId,projectId)=> { export default{ + list, listView, getVideoPassage, groupCountByAlarmType, - selectGroupCountVideoConfig + selectGroupCountVideoConfig, + groupCountByProject } \ No newline at end of file diff --git a/src/components/project-overview-chart.js b/src/components/project-overview-chart.js index 5559f0c..8ed17a2 100644 --- a/src/components/project-overview-chart.js +++ b/src/components/project-overview-chart.js @@ -2,7 +2,7 @@ import Vue from 'vue' Vue.component("project-overview-chart", { template: `
今日预警
-累计预警
-排名 | +项目名称 | +预警数量 | +预警占比 | +
---|---|---|---|
{{ it.ord }} | +{{ it.projectName }} | +{{ it.value }} | +{{ it.percent.toFixed(2) }}% | +