monitor.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. // 获取左侧动态感知设备
  3. export function selectDeviceType() {
  4. return request({
  5. url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',
  6. method: 'post',
  7. })
  8. }
  9. // 根据设备类型查看列表
  10. export function selectCameraByDeptId(deptId) {
  11. return request({
  12. url: '/center-resources/VisuForestMonitorCenterController/selectCameraByDeptId',
  13. method: 'post',
  14. data:{"deptId":deptId}
  15. })
  16. }
  17. // 获取重点区域列表
  18. export function selectKeyAreaList() {
  19. return request({
  20. url: '/center-resources/VisuForestCloudMapController/importarealistFegin',
  21. method: 'get',
  22. })
  23. }
  24. // 获取重点区域
  25. export function getRegionalFlag(id) {
  26. return request({
  27. url: '/center-resources/VisuForestCloudMapController/getRegionalFlag/'+id,
  28. method: 'get',
  29. })
  30. }
  31. //获取点位周边摄像头
  32. export function findCameraByEventCoordinate(longitude,latitude) {
  33. // longitude = '124.41986560821533';
  34. // latitude = '43.08817137032747';
  35. return request({
  36. url: '/center-resources/VisuForestMonitorCenterController/findCameraByEventCoordinate?longitude='+longitude+"&latitude="+latitude+"&type=1",
  37. method: 'get',
  38. })
  39. }
  40. //转到固定点位
  41. export function rotation(lng,lat,list) {
  42. // lng = '124.41986560821533';
  43. // lat = '43.08817137032747';
  44. return request({
  45. url: '/center-resources/VisuForestMonitorCenterController/rotation',
  46. method: 'post',
  47. data:{
  48. lng:lng,
  49. lat:lat,
  50. list:list
  51. }
  52. })
  53. }
  54. //根据部门ID获取具有查看权限的摄像头
  55. export function getCamerasByDeptId(deptId) {
  56. return request({
  57. url: '/center-resources/VisuForestMonitorCenterController/getCamerasByDeptId?deptId=' + deptId,
  58. method: 'get',
  59. })
  60. }