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 @@ +