Przeglądaj źródła

单点摄像头触发电视墙

wang_xy 2 lat temu
rodzic
commit
3e1d734b15
1 zmienionych plików z 9 dodań i 3 usunięć
  1. 9 3
      src/api/monitor.js

+ 9 - 3
src/api/monitor.js

@@ -52,18 +52,24 @@ export function rotation(lng,lat,list) {
     }
   })
 }
-
+//根据部门ID获取具有查看权限的摄像头
+export function getCamerasByDeptId(deptId) {
+  return request({
+    url: '/center-firecontrol/VisuForestMonitorCenterController/getCamerasByDeptId?deptId=' + deptId,
+    method: 'get',
+  })
+}
 //根据部门id查询部门及部门以下的数据,没有则默认查询所有
 export function getSensorListByDeptId(deptId) {
   return request({
-    url: '/center-environment/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId,
+    url: '/center-firecontrol/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId,
     method: 'get',
   })
 }
 //根据部门id查询部门及部门以下的数据,没有则默认查询所有
 export function getDlblistBydeptId(deptId) {
   return request({
-    url: '/center-environment/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId,
+    url: '/center-firecontrol/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId,
     method: 'get',
   })
 }