screen.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. import request from '@/utils/request'
  2. /**
  3. * 1. 实验室基本情况统计 & 安全分级统计
  4. * GET /laboratory/labScreen/labBasicStatistics
  5. */
  6. export function getLabBasicStatistics() {
  7. return request({
  8. url: '/laboratory/labScreen/labBasicStatistics',
  9. method: 'get'
  10. })
  11. }
  12. /**
  13. * 2. 实验室进入人数统计及走势(24小时)
  14. * GET /laboratory/labScreen/passOutTrend
  15. */
  16. export function getPassOutTrend() {
  17. return request({
  18. url: '/laboratory/labScreen/passOutTrend',
  19. method: 'get'
  20. })
  21. }
  22. /**
  23. * 3. 实验环境安全实时监测(分页)
  24. * GET /laboratory/labScreen/envMonitor
  25. */
  26. export function getEnvMonitor(params = { page: 1, pageSize: 10 }) {
  27. return request({
  28. url: '/laboratory/labScreen/envMonitor',
  29. method: 'get',
  30. params
  31. })
  32. }
  33. /**
  34. * 4. 实验室实时风险预警
  35. * GET /laboratory/labScreen/riskWarning
  36. */
  37. export function getRiskWarning() {
  38. return request({
  39. url: '/laboratory/labScreen/riskWarning',
  40. method: 'get'
  41. })
  42. }
  43. /**
  44. * 5. 智能环境感知应用设备统计
  45. * GET /laboratory/labScreen/iotDeviceStatistics
  46. */
  47. export function getIotDeviceStatistics() {
  48. return request({
  49. url: '/laboratory/labScreen/iotDeviceStatistics',
  50. method: 'get'
  51. })
  52. }
  53. /**
  54. * 6. 实验室设备分类及使用统计
  55. * GET /laboratory/labScreen/deviceCategoryStat
  56. */
  57. export function getDeviceCategoryStat() {
  58. return request({
  59. url: '/laboratory/labScreen/deviceCategoryStat',
  60. method: 'get'
  61. })
  62. }
  63. /**
  64. * 7. 风险预警 - 触发预案信息查询
  65. * GET /laboratory/labScreen/selectTriggerInfo
  66. */
  67. export function selectTriggerInfo() {
  68. return request({
  69. url: '/laboratory/labScreen/selectTriggerInfo',
  70. method: 'get'
  71. })
  72. }
  73. /**
  74. * 11. 耗材相关二级学院下拉列表
  75. * POST /laboratory/labScreen/deptDropList
  76. */
  77. export function getDeptDropList(data = {}) {
  78. return request({
  79. url: '/laboratory/labScreen/deptDropList',
  80. method: 'post',
  81. data
  82. })
  83. }
  84. /**
  85. * 12. 根据条件查询楼道实验室信息
  86. * POST /laboratory/labScreen/rooms
  87. */
  88. export function getRooms(data = {}) {
  89. return request({
  90. url: '/laboratory/labScreen/rooms',
  91. method: 'post',
  92. data
  93. })
  94. }
  95. /**
  96. * 13. 实验室分级配置列表
  97. * POST /laboratory/labScreen/getLevelTitleList
  98. */
  99. export function getLevelTitleList() {
  100. return request({
  101. url: '/laboratory/labScreen/getLevelTitleList',
  102. method: 'post',
  103. data: {}
  104. })
  105. }
  106. /**
  107. * 14. 获取摄像头播放地址
  108. * GET /laboratory/labScreen/getPreviewURLs
  109. */
  110. export function getPreviewURLs(params) {
  111. return request({
  112. url: '/laboratory/labScreen/getPreviewURLs',
  113. method: 'get',
  114. params
  115. })
  116. }
  117. /**
  118. * 8. 实时监控 - 楼栋楼层树
  119. * POST /laboratory/labScreen/monitorTree
  120. */
  121. export function getMonitorTree(data = {}) {
  122. return request({
  123. url: '/laboratory/labScreen/monitorTree',
  124. method: 'post',
  125. data
  126. })
  127. }
  128. /**
  129. * 9. 实时监控 - 摄像头流地址
  130. * POST /laboratory/labScreen/cameraStream
  131. */
  132. export function getCameraStream(data) {
  133. return request({
  134. url: '/laboratory/labScreen/cameraStream',
  135. method: 'post',
  136. data
  137. })
  138. }
  139. /**
  140. * getCameraList - 兼容 SecurityMonitor 组件,获取摄像头列表名称
  141. * 复用 cameraStream,返回设备名列表
  142. */
  143. export function getCameraList(data = {}) {
  144. return request({
  145. url: '/laboratory/labScreen/cameraStream',
  146. method: 'post',
  147. data
  148. })
  149. }
  150. /**
  151. * 10. 大屏天气及服务器时间
  152. * GET /laboratory/labScreen/weather
  153. */
  154. export function getWeather() {
  155. return request({
  156. url: '/laboratory/labScreen/weather',
  157. method: 'get'
  158. })
  159. }
  160. /**
  161. * 11. 根据设备ID查询视频流
  162. * GET /iot/camera/getPreviewURLs
  163. */
  164. export function iotCameraGetPreviewURLs(params) {
  165. return request({
  166. url: '/iot/camera/getPreviewURLs',
  167. method: 'get',
  168. params
  169. })
  170. }
  171. //应急处置-获取楼层布局数据
  172. export function laboratoryBigViewGetFloorByBigView(params) {
  173. return request({
  174. url: '/laboratory/bigView/getFloorByBigView',
  175. method: 'get',
  176. params
  177. })
  178. }
  179. //应急处置-查询当前正在发生的预案
  180. export function laboratoryBigViewSelectTriggerInfo(params) {
  181. return request({
  182. url: '/laboratory/bigView/selectTriggerInfo',
  183. method: 'get',
  184. params
  185. })
  186. }
  187. //应急处置-获取当前楼栋-楼层下的疏散数据
  188. export function laboratoryExitLineGetRedisEvacuation(data = {}) {
  189. return request({
  190. url: '/laboratory/exitLine/getRedisEvacuation',
  191. method: 'post',
  192. data
  193. })
  194. }
  195. //获取摄像头流地址
  196. export function iotCameraFindByCondition(data = {}) {
  197. return request({
  198. url: '/iot/camera/findByCondition',
  199. method: 'post',
  200. data
  201. })
  202. }
  203. //应急处置-查询实验室传感器列表
  204. export function iotBigViewDeviceFindBySubId(params) {
  205. return request({
  206. url: '/iot/bigView/device/findBySubId',
  207. method: 'get',
  208. params
  209. })
  210. }
  211. //应急处置-查询实验室喇叭列表
  212. export function iotBigViewDeviceFindByType(data = {}) {
  213. return request({
  214. url: '/iot/bigView/device/findByType',
  215. method: 'post',
  216. data
  217. })
  218. }
  219. //应急处置-结束预案
  220. export function laboratoryPlanCloseRiskPlan(params) {
  221. return request({
  222. url: '/laboratory/plan/closeRiskPlan',
  223. method: 'get',
  224. params
  225. })
  226. }
  227. //应急处置-结束疏散
  228. export function laboratoryExitLineEndEvacuation(data = {}) {
  229. return request({
  230. url: '/laboratory/exitLine/endEvacuation',
  231. method: 'post',
  232. data
  233. })
  234. }
  235. //应急处置-开灯
  236. export function laboratoryExitRelayOpenLight(data = {}) {
  237. return request({
  238. url: '/laboratory/exitRelay/openLight',
  239. method: 'post',
  240. data
  241. })
  242. }
  243. //应急处置-关灯
  244. export function laboratoryExitRelayCloseLight(data = {}) {
  245. return request({
  246. url: '/laboratory/exitRelay/closeLight',
  247. method: 'post',
  248. data
  249. })
  250. }
  251. //应急处置-执行疏散
  252. export function laboratoryExitLineExecuteEvacuation(data = {}) {
  253. return request({
  254. url: '/laboratory/exitLine/executeEvacuation',
  255. method: 'post',
  256. data
  257. })
  258. }
  259. //应急处置-喇叭播放文本
  260. export function iotBigViewSpeakerPlayText(params) {
  261. return request({
  262. url: '/iot/bigView/speaker/playText',
  263. method: 'get',
  264. params
  265. })
  266. }
  267. // 化学品库存动态统计
  268. export function getChemicalStockSummary() {
  269. return request({
  270. url: '/chemical/stock/stockSummary',
  271. method: 'get'
  272. })
  273. }