Explorar o código

电视墙 资源详情 样式 土地也能点 视频预览宽度 气泡去除地址 电视墙未绑定 资源详情背景高度 监控中心传感器离线图标 误报、重复 摄像头离线图标 视频会议动态url 云广播资源 云广播图标 云图接口替换 数据中心接口替换 监控中心接口替换

wangzhe %!s(int64=2) %!d(string=hai) anos
pai
achega
1c314f6caa
Modificáronse 1 ficheiros con 29 adicións e 10 borrados
  1. 29 10
      src/api/monitor.js

+ 29 - 10
src/api/monitor.js

@@ -3,7 +3,7 @@ import request from '@/utils/request'
 // 获取左侧动态感知设备
 export function selectDeviceType(deptId) {
   return request({
-    url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',
+    url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',//有逻辑
     method: 'post',
     data:{"deptId":deptId}
   })
@@ -11,16 +11,24 @@ export function selectDeviceType(deptId) {
 // 根据设备类型查看列表
 export function selectCameraByDeptId(deptId) {
   return request({
-    url: '/center-resources/VisuForestMonitorCenterController/selectCameraByDeptId',
+    // url: '/center-resources/VisuForestMonitorCenterController/selectCameraByDeptId',
+    url: '/center-monitor/camera/selectCameraByDeptId',//无逻辑
     method: 'post',
-    data:{"deptId":deptId}
+    // data:{"deptId":deptId}
+    data:{
+      "deptId":deptId,
+      "type":7,
+    }
   })
 }
 // 获取重点区域列表
 export function selectKeyAreaList() {
   return request({
-    url: '/center-resources/VisuForestCloudMapController/importarealistFegin',
-    method: 'get',
+    // url: '/center-resources/VisuForestCloudMapController/importarealistFegin',
+    url: '/center-data/importarea/listImportareaFegin',//无逻辑
+    // method: 'get',
+    method: 'post',
+    data:{"areaType":7}
   })
 }
 // 获取重点区域
@@ -35,7 +43,7 @@ export function findCameraByEventCoordinate(longitude,latitude) {
   // longitude = '124.41986560821533';
   // latitude = '43.08817137032747';
   return request({
-    url: '/center-resources/VisuForestMonitorCenterController/findCameraByEventCoordinate?longitude='+longitude+"&latitude="+latitude+"&type=1",
+    url: '/center-resources/VisuForestMonitorCenterController/findCameraByEventCoordinate?longitude='+longitude+"&latitude="+latitude+"&type=1",//有逻辑
     method: 'get',
   })
 }
@@ -45,8 +53,10 @@ export function rotation(lng,lat,list) {
   // lng = '124.41986560821533';
   // lat = '43.08817137032747';
   return request({
-    url: '/center-resources/VisuForestMonitorCenterController/rotation',
-    method: 'post',
+    // url: '/center-resources/VisuForestMonitorCenterController/rotation',
+    url: '/center-monitor/VisuForestMonitorCenterController/rotation',//无逻辑
+    // method: 'post',
+    method: 'get',
     data:{
       lng:lng,
       lat:lat,
@@ -57,16 +67,25 @@ export function rotation(lng,lat,list) {
 //根据部门ID获取具有查看权限的摄像头
 export function getCamerasByDeptId(deptId) {
   return request({
-    url: '/center-resources/VisuForestMonitorCenterController/getCamerasByDeptId?deptId=' + deptId,
+    // url: '/center-resources/VisuForestMonitorCenterController/getCamerasByDeptId?deptId=' + deptId,
+    url: '/center-monitor/TVWallController/getCamerasByDeptId',//无逻辑
     method: 'get',
+    data:{
+      deptId:deptId,
+      deptProtype:2
+    }
   })
 }
 
 //根据部门id查询部门及部门以下的数据,没有则默认查询所有
 export function getSensorListByDeptId(deptId) {
   return request({
-    url: '/center-resources/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId,
+    // url: '/center-resources/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId,
+    url: '/center-monitor/device/getSensorListByDeptId',//无逻辑
     method: 'get',
+    data:{
+      deptId:deptId
+    }
   })
 }
 //根据部门id查询部门及部门以下的数据,没有则默认查询所有