monitor.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. import request from '@/utils/request'
  2. // 获取左侧动态感知设备
  3. export function selectDeviceType(param) {
  4. return request({
  5. url: '/sooka-middlevisualization/visuMiddleVisualizationController/selectDeviceType',
  6. method: 'post',
  7. data:param
  8. })
  9. }
  10. // 根据设备类型查看列表
  11. export function selectCameraByDeptId(deptId) {
  12. return request({
  13. url: '/center-monitor/camera/selectCameraByDeptId',
  14. method: 'post',
  15. data:{"deptId":deptId,
  16. cameraUse: "1,2,3,4,5,7",
  17. type:18}
  18. })
  19. }
  20. // 查看摄像头详情
  21. export function selectByCameraId(id) {
  22. return request({
  23. url: `/center-monitor/camera/s/${id}`,
  24. method: 'get',
  25. })
  26. }
  27. // 查看传感器详情
  28. export function selectByDeviceId(id) {
  29. return request({
  30. url: `/center-monitor/device/selectByDeviceId/${id}`,
  31. method: 'get',
  32. })
  33. }
  34. // 查看云广播详情
  35. export function selectByBroadcastId(id) {
  36. return request({
  37. url: `/center-monitor/broadcast/selectByBroadcastId/${id}`,
  38. method: 'get',
  39. })
  40. }
  41. // 获取重点区域列表
  42. export function selectKeyAreaList() {
  43. return request({
  44. url: '/center-data/importarea/listImportareaFegin',
  45. method: 'post',
  46. data:{
  47. areaType:1
  48. }
  49. })
  50. }
  51. // 获取重点区域
  52. export function getRegionalFlag(id) {
  53. return request({
  54. url: '/center-data/importarea/getRegionalFlagFeign/' + id,
  55. method: 'get',
  56. })
  57. }
  58. // // 查询部门经纬度在摄像头半径范围内的摄像头列表(暂时不用 但不要删除)
  59. // export function findCameraByDept(deptId) {
  60. // return request({
  61. // url: '/center-fire/VisuForestEventCenterController/findCameraByDept',
  62. // method: 'post',
  63. // data: {deptId:deptId,type:'1'}
  64. // })
  65. // }
  66. //获取点位周边摄像头
  67. export function findCameraByEventCoordinate(longitude,latitude) {
  68. // longitude = '124.41986560818533';
  69. // latitude = '43.08817137032747';
  70. return request({
  71. url: '/center-fire/VisuForestMonitorCenterController/findCameraByEventCoordinate?longitude='+longitude+"&latitude="+latitude+"&type=18",
  72. method: 'get',
  73. })
  74. }
  75. //转到固定点位
  76. export function rotation(lng,lat,list) {
  77. // lng = '124.41986560818533';
  78. // lat = '43.08817137032747';
  79. return request({
  80. url: '/center-monitor/DahuaController/rotation?lng='+lng+'&lat='+lat+'&list='+list,
  81. method: 'get'
  82. // data:{
  83. // lng:lng,
  84. // lat:lat,
  85. // list:list
  86. // }
  87. })
  88. }
  89. //根据部门ID获取具有查看权限的摄像头
  90. export function getCamerasByDeptId(deptId,cameraUse) {
  91. return request({
  92. url: '/center-monitor/TVWallController/getCamerasByDeptId?deptId=' + deptId+'&cameraUse=' + cameraUse+'&deptProtype=2'+'&type=18',
  93. method: 'get',
  94. })
  95. }
  96. //根据部门id查询部门及部门以下的数据,没有则默认查询所有
  97. export function getSensorListByDeptId(deptId) {
  98. return request({
  99. url: '/center-monitor/device/getSensorListByDeptId?deptId=' +deptId +'&type=18',
  100. method: 'get',
  101. })
  102. }
  103. // //根据部门id查询部门及部门以下的数据,没有则默认查询所有
  104. // export function getDlblistBydeptId(deptId) {
  105. // return request({
  106. // url: '/center-firecontrol/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId,
  107. // method: 'get',
  108. // })
  109. // }
  110. //
  111. // //根据部门id查询部门及部门以下的数据,没有则默认查询所有
  112. // export function getMonitorDeviceAndDataList(deptId) {
  113. // return request({
  114. // url: '/center-monitor/device/getMonitorDeviceAndDataList?deptId=' + deptId,
  115. // method: 'get',
  116. // })
  117. // }
  118. //根据部门id查询部门及部门以下的数据,没有则默认查询所有
  119. export function getDlblistBydeptId(deptId) {
  120. let url = "";
  121. if(deptId!=null){
  122. url= '/center-monitor/broadcast/getDlblistBydeptId?deptId=' + deptId+"&type=18";
  123. }else{
  124. url= '/center-monitor/broadcast/getDlblistBydeptId?type=18';
  125. }
  126. return request({
  127. url: url,
  128. method: 'get',
  129. })
  130. }
  131. //根据部门id查询部门及部门以下的数据,没有则默认查询所有
  132. export function getMonitorDeviceAndDataList(deptId) {
  133. let url = "";
  134. if(deptId!=null){
  135. url= '/center-monitor/device/getMonitorDeviceAndDataList?deptId=' + deptId+"&type=18";
  136. }else{
  137. url= '/center-monitor/device/getMonitorDeviceAndDataList?type=18';
  138. }
  139. return request({
  140. url: url,
  141. method: 'get',
  142. })
  143. }
  144. //根据部门id查询部门及部门以下的数据,没有则默认查询所有
  145. export function selectRecorderByDeptId(param) {
  146. return request({
  147. url: '/center-monitor/camera/selectCameraByDeptId',
  148. method: 'post',
  149. data:param
  150. })
  151. }
  152. // 查询摄像头、传感器、执法设备数量
  153. export function selectCreamedAndDeviceCount() {
  154. return request({
  155. url: '/center-unobtrusive/unobtrusive/enterprise/selectCreamedAndDeviceCount',
  156. method: 'get'
  157. })
  158. }