diff --git a/src/request/map.js b/src/request/map.js index 92baed3..5487198 100644 --- a/src/request/map.js +++ b/src/request/map.js @@ -9,6 +9,7 @@ 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); export const getConfinedspaceWorkList = (params) => post("/map/getConfinedspaceWorkList", params); diff --git a/src/views/BI/components/bottom_options.vue b/src/views/BI/components/bottom_options.vue index 81a89a4..30856a0 100644 --- a/src/views/BI/components/bottom_options.vue +++ b/src/views/BI/components/bottom_options.vue @@ -43,6 +43,7 @@ import { handleConfinedspaceWork, handleHighWork } from "@/views/BI/js/eight_work.js"; +import { handleCamera } from "@/views/BI/js/camera.js"; const props = defineProps({ leftCurrentComponent: { @@ -113,6 +114,7 @@ const bottomOptionsList = [ ).href, title: "电子围栏", type: "electronicFence", + check: false, action: handleFence, }, ], @@ -225,8 +227,9 @@ const bottomOptionsList = [ import.meta.url ).href, title: "摄像头", - type: "camera", + type: "workSafelyCamera", check: false, + action: handleCamera, }, ], }, @@ -342,7 +345,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 @@ +