monitor.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import request from '@/utils/request'
  2. // 获取左侧动态感知设备
  3. export function selectDeviceType() {
  4. return request({
  5. url: '/center-firecontrol/VisuForestMonitorCenterController/selectDeviceType',
  6. method: 'post',
  7. })
  8. }
  9. // 根据设备类型查看列表
  10. export function selectCameraByDeptId(deptId) {
  11. return request({
  12. url: '/center-firecontrol/VisuForestMonitorCenterController/selectCameraByDeptId',
  13. method: 'post',
  14. data:{"deptId":deptId}
  15. })
  16. }
  17. // 获取重点区域列表
  18. export function selectKeyAreaList() {
  19. return request({
  20. url: '/center-firecontrol/VisuForestCloudMapController/importarealistFegin',
  21. method: 'get',
  22. })
  23. }
  24. // 获取重点区域
  25. export function getRegionalFlag(id) {
  26. return request({
  27. url: '/center-firecontrol/VisuForestCloudMapController/getRegionalFlag/'+id,
  28. method: 'get',
  29. })
  30. }
  31. //转到固定点位
  32. export function rotation(lng,lat,list) {
  33. // lng = '124.41986560821533';
  34. // lat = '43.08817137032747';
  35. return request({
  36. url: '/center-firecontrol/VisuForestMonitorCenterController/rotation',
  37. method: 'post',
  38. data:{
  39. lng:lng,
  40. lat:lat,
  41. list:list
  42. }
  43. })
  44. }
  45. //根据部门ID获取具有查看权限的摄像头
  46. export function getCamerasByDeptId(deptId) {
  47. return request({
  48. url: '/center-firecontrol/VisuForestMonitorCenterController/getCamerasByDeptId?deptId=' + deptId,
  49. method: 'get',
  50. })
  51. }
  52. //根据部门id查询部门及部门以下的数据,没有则默认查询所有
  53. export function getSensorListByDeptId(deptId) {
  54. return request({
  55. url: '/center-firecontrol/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId,
  56. method: 'get',
  57. })
  58. }
  59. //根据部门id查询部门及部门以下的数据,没有则默认查询所有
  60. export function getDlblistBydeptId(deptId) {
  61. let url = "";
  62. if(deptId!=null){
  63. url= '/center-firecontrol/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId;
  64. }else{
  65. url= '/center-firecontrol/VisuForestMonitorCenterController/getDlblistBydeptId';
  66. }
  67. return request({
  68. url: url,
  69. method: 'get',
  70. })
  71. }
  72. //根据部门id查询部门及部门以下的数据,没有则默认查询所有
  73. export function getMonitorDeviceAndDataList(deptId) {
  74. let url = "";
  75. if(deptId!=null){
  76. url= '/center-monitor/device/getMonitorDeviceAndDataList?deptId=' + deptId;
  77. }else{
  78. url= '/center-monitor/device/getMonitorDeviceAndDataList';
  79. }
  80. return request({
  81. url: url,
  82. method: 'get',
  83. })
  84. }