From c9e14d6fcf2b57dbfc26257cb2d20a335bb7fcc0 Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Sat, 3 Feb 2024 09:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AB=E9=A1=B9=E4=BD=9C=E4=B8=9A=E6=91=84?= =?UTF-8?q?=E5=83=8F=E5=A4=B4=E6=92=AD=E6=94=BE=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/map.js | 1 + src/views/BI/components/bottom_options.vue | 6 +- .../BI/components/dialog/camera_dialog.vue | 91 +++++++++++++++++++ .../BI/components/video_ai_analysisRight.vue | 4 +- src/views/BI/js/camera.js | 37 ++++++++ src/views/BI/js/map.js | 13 +++ 6 files changed, 148 insertions(+), 4 deletions(-) create mode 100644 src/views/BI/components/dialog/camera_dialog.vue create mode 100644 src/views/BI/js/camera.js diff --git a/src/request/map.js b/src/request/map.js index 81d5b34..b084647 100644 --- a/src/request/map.js +++ b/src/request/map.js @@ -7,3 +7,4 @@ export const getUserByCardNo = (params) => export const getEightWorks = (params) => post("/map/getEightWorks", params); export const getHotworkList = (params) => post("/map/getHotworkList", params); +export const getCameraList = (params) => post("/map/getCameraList", params); diff --git a/src/views/BI/components/bottom_options.vue b/src/views/BI/components/bottom_options.vue index 69a8190..29e9cfd 100644 --- a/src/views/BI/components/bottom_options.vue +++ b/src/views/BI/components/bottom_options.vue @@ -39,6 +39,7 @@ import VideoAIAnalysisRight from "@/views/BI/components/video_ai_analysisRight.v import { useVModels } from "@vueuse/core"; import { handleTrajectory } from "@/views/BI/js/trajectory.js"; import { handleHortwork } from "@/views/BI/js/eight_work.js"; +import { handleCamera } from "@/views/BI/js/camera.js"; const props = defineProps({ leftCurrentComponent: { @@ -219,8 +220,9 @@ const bottomOptionsList = [ import.meta.url ).href, title: "摄像头", - type: "camera", + type: "workSafelyCamera", check: false, + action: handleCamera, }, ], }, @@ -336,7 +338,7 @@ const fnBottomChildOptionsListChange = (index, item1, index1) => { data.bottomOptionsList[index].list[index1].check = !data.bottomOptionsList[index].list[index1].check; data.bottomOptionsList[index].list[index1].action( - data.bottomOptionsList[index].list[index1].check + data.bottomOptionsList[index].list[index1].check,item1.type ); }; diff --git a/src/views/BI/components/dialog/camera_dialog.vue b/src/views/BI/components/dialog/camera_dialog.vue new file mode 100644 index 0000000..ac7c784 --- /dev/null +++ b/src/views/BI/components/dialog/camera_dialog.vue @@ -0,0 +1,91 @@ +