From aa5c41e8ba89775511de9f4be2b82759bcdcdef2 Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Mon, 29 Jan 2024 17:35:09 +0800 Subject: [PATCH] =?UTF-8?q?bi=E9=A1=B5=E4=BA=BA=E5=91=98=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?=EF=BC=8Cai=E8=A7=86=E9=A2=91=E5=88=86=E6=9E=90=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/bi/mapApi.js | 33 +++ src/request/video_manager.js | 2 + src/views/BI/components/personnel.vue | 252 ++++++++++-------- src/views/BI/components/video_ai_analysis.vue | 54 +++- .../BI/components/video_ai_analysisRight.vue | 190 ++++++++----- src/views/BI/components/work_safely.vue | 7 +- src/views/BI/js/echarts1.js | 12 +- src/views/BI/js/echarts2.js | 16 +- .../ai_warning/components/add.vue | 10 +- src/views/video_manager/ai_warning/index.vue | 38 ++- .../video_manager/video_manager/index.vue | 26 +- 11 files changed, 427 insertions(+), 213 deletions(-) create mode 100644 src/request/bi/mapApi.js diff --git a/src/request/bi/mapApi.js b/src/request/bi/mapApi.js new file mode 100644 index 0000000..2753d4b --- /dev/null +++ b/src/request/bi/mapApi.js @@ -0,0 +1,33 @@ +import { post } from "@/request/axios.js"; + +export const getPersonnelTypeCount = (params) => + post("/map/getPersonnelTypeCount", params); // 人员类型统计 +export const getAlarmTypeCount = (params) => + post("/map/getAlarmTypeCount", params); // 告警类型统计 +export const getPersonnelPositioningCount = (params) => + post("/map/getPersonnelPositioningCount", params); // 人员定位情况 +// 八项作业 +export const getEightWorkEcharts = (params) => + post("/map/Eight/getEcharts", params); // 安全作业情况统计 +export const getSafetyStatusStatistics = (params) => + post("/map/Eight/findFormCount", params); // 安全作业状态统计 +// 摄像头 +export const getCameraAlarmCount = (params) => + post("/map/getCameraAlarmCount", params); // 摄像头告警数 +export const getCameraAlarmTypeCount = (params) => + post("/map/getCameraAlarmTypeCount", params); // 报警类型 + +export const getCameraAlarmTimeCount = (params) => + post("/map/getCameraAlarmTimeCount", params); // 告警时间趋势 +export const getCameraAlarmSourceCount = (params) => + post("/map/getCameraAlarmSourceCount", params); // 告警来源 +export const getAiWarningList = (params) => + post( + "/aiwarning/list?currentPage=" + + params.currentPage + + "&showCount=" + + params.showCount, + params + ); // ai报警列表 +export const getCameraTopToShow = (params) => + post("/map/getCameraTopToShow", params); // bi页播放摄像头信息 diff --git a/src/request/video_manager.js b/src/request/video_manager.js index 50e3cf5..4856b7d 100644 --- a/src/request/video_manager.js +++ b/src/request/video_manager.js @@ -9,5 +9,7 @@ export const getVideoManagerView = (params) => post("/videomanager/goEdit", params); // 台账添加 export const setVideoManagerDelete = (params) => post("/videomanager/delete", params); // 删除 +export const setUpToBi = (params) => + post("/videomanager/editZhiding", params); // 删除 export const setVideoManagerEdit = (params) => post("/videomanager/edit", params); diff --git a/src/views/BI/components/personnel.vue b/src/views/BI/components/personnel.vue index 84afa4e..9f46315 100644 --- a/src/views/BI/components/personnel.vue +++ b/src/views/BI/components/personnel.vue @@ -5,7 +5,7 @@