monitor.js 1.8 KB

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