index.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. import request from '@/utils/request'
  2. /* 分类获取公共配置
  3. * category 1.系统参数 2.公共配置
  4. * configType 1.基础配置 2.管控一体机 3.化学品终端 4.小程序配置 5.开发配置 6.首页配置
  5. */
  6. export function getConfigByType(data) {
  7. return request({
  8. url: '/system/config/info/getConfigByType',
  9. method: 'post',
  10. data: data
  11. })
  12. }
  13. // 院校通知/工作通知列表
  14. // notifyType 3.工作通知 2.校院通知
  15. export function systemNotifyList(data) {
  16. return request({
  17. url: '/system/notify/list',
  18. method: 'post',
  19. data: data
  20. })
  21. }
  22. // 分级管控列表
  23. export function laboratoryGradeManageList(data) {
  24. return request({
  25. url: '/laboratory/gradeManage/list',
  26. method: 'post',
  27. data: data
  28. })
  29. }
  30. // 查询安全分级列表(不带分页)
  31. export function laboratoryLevelConfigGetLevelTitleList(data) {
  32. return request({
  33. url: '/laboratory/levelConfig/getLevelTitleList',
  34. method: 'post',
  35. data: data
  36. })
  37. }
  38. // 查询安全分类列表(不带分页)
  39. export function laboratoryClassTypeGetList(data) {
  40. return request({
  41. url: '/laboratory/classType/getList',
  42. method: 'post',
  43. data: data
  44. })
  45. }
  46. // 实验室人员-列表
  47. export function laboratoryBigViewSubUserCount(data) {
  48. return request({
  49. url: '/laboratory/bigView/subUserCount',
  50. method: 'post',
  51. data: data
  52. })
  53. }
  54. // 实验室人员-总数
  55. export function laboratoryBigViewSubTotalUserCount(data) {
  56. return request({
  57. url: '/laboratory/bigView/subTotalUserCount',
  58. method: 'post',
  59. data: data
  60. })
  61. }
  62. //实验室分类分级统计
  63. export function laboratoryBigViewsSubTypeLevelCount(data) {
  64. return request({
  65. url: '/laboratory/bigView/subTypeLevelCount',
  66. method: 'post',
  67. data: data
  68. })
  69. }
  70. //危险源统计
  71. export function laboratoryBigViewSubHazardCount(data) {
  72. return request({
  73. url: '/laboratory/bigView/subHazardCount',
  74. method: 'post',
  75. data: data
  76. })
  77. }
  78. //危险源统计
  79. export function laboratoryBigViewSubHazardBarChartCount(data) {
  80. return request({
  81. url: '/laboratory/bigView/subHazardBarChartCount',
  82. method: 'post',
  83. data: data
  84. })
  85. }
  86. //危险源统计
  87. export function laboratoryBigViewSubHazardList(data) {
  88. return request({
  89. url: '/laboratory/bigView/subHazardList',
  90. method: 'post',
  91. data: data
  92. })
  93. }
  94. // 根据字典类型查询字典数据信息
  95. export function getDicts(dictType) {
  96. return request({
  97. url: '/system/dict/item/option?dictCode=' + dictType,
  98. method: 'get'
  99. })
  100. }
  101. //本月隐患统计
  102. export function securityBigViewCheckOptionCharts(data) {
  103. return request({
  104. url: '/security/bigView/checkOptionCharts',
  105. method: 'post',
  106. data: data
  107. })
  108. }
  109. //隐患统计
  110. export function securityBigViewCheckOptionChartDetails(data) {
  111. return request({
  112. url: '/security/bigView/checkOptionChartDetails',
  113. method: 'post',
  114. data: data
  115. })
  116. }
  117. //隐患统计-隐患类型
  118. export function securityCheckOptionList(data) {
  119. return request({
  120. url: '/security/checkOption/list',
  121. method: 'post',
  122. data: data
  123. })
  124. }
  125. //实验室-传感器
  126. export function laboratoryBigViewFindSubSensor(data) {
  127. return request({
  128. url: '/laboratory/bigView/findSubSensor',
  129. method: 'post',
  130. data: data
  131. })
  132. }
  133. //查询当前正在发生的预案
  134. export function laboratoryBigViewSelectTriggerInfo(query) {
  135. return request({
  136. url: '/laboratory/bigView/selectTriggerInfo',
  137. method: 'get',
  138. params: query
  139. })
  140. }
  141. //首页-风险预警统计
  142. export function laboratoryBigViewCollegeEventStatistics(query) {
  143. return request({
  144. url: '/laboratory/bigView/collegeEventStatistics',
  145. method: 'get',
  146. params: query
  147. })
  148. }
  149. //首页-安全准入办理统计
  150. export function laboratoryBigViewListCollegeApplyColumn(query) {
  151. return request({
  152. url: '/laboratory/bigView/listCollegeApplyColumn',
  153. method: 'get',
  154. params: query
  155. })
  156. }
  157. //安全准入办理列表
  158. export function laboratoryBigViewListCollege(data) {
  159. return request({
  160. url: '/laboratory/bigView/listCollege',
  161. method: 'post',
  162. data: data
  163. })
  164. }
  165. //首页-人员违规统计
  166. export function examBigViewNewStatistics(data) {
  167. return request({
  168. url: '/exam/bigView/newStatistics',
  169. method: 'post',
  170. data: data
  171. })
  172. }
  173. //首页-人员违规统计-柱状图
  174. export function examBigViewDetailColumnar(data) {
  175. return request({
  176. url: '/exam/bigView/detail/columnar',
  177. method: 'post',
  178. data: data
  179. })
  180. }
  181. //首页-人员违规统计-列表
  182. export function examBigViewDetailSubList(data) {
  183. return request({
  184. url: '/exam/bigView/detail/subList',
  185. method: 'post',
  186. data: data
  187. })
  188. }
  189. //首页-安全检查-列表
  190. export function securityBigViewList(data) {
  191. return request({
  192. url: '/security/bigView/list',
  193. method: 'post',
  194. data: data
  195. })
  196. }
  197. //风险预警统计列表
  198. export function laboratoryBigViewCollegeEventStatisticsList(data) {
  199. return request({
  200. url: '/laboratory/bigView/collegeEventStatisticsList',
  201. method: 'post',
  202. data: data
  203. })
  204. }
  205. //风险预警统计列表
  206. export function laboratoryRiskDeviceTypeGetList(query) {
  207. return request({
  208. url: '/laboratory/riskDeviceType/getList',
  209. method: 'get',
  210. params: query
  211. })
  212. }
  213. //首页-安全检查-统计数量
  214. export function securityBigViewPlanStatistics(data) {
  215. return request({
  216. url: '/security/bigView/planStatistics',
  217. method: 'post',
  218. data: data
  219. })
  220. }
  221. //首页-人员违规统计-违规原因
  222. export function examViolationSiteGetListByType(query) {
  223. return request({
  224. url: '/exam/violationSite/getListByType',
  225. method: 'get',
  226. params: query
  227. })
  228. }
  229. //楼栋下楼层数据
  230. export function laboratoryBigViewGetFloorListByBigView(data) {
  231. return request({
  232. url: '/laboratory/bigView/getFloorListByBigView',
  233. method: 'post',
  234. data: data
  235. })
  236. }
  237. //校区-楼栋
  238. export function systemBuildingGetTreeList(data) {
  239. return request({
  240. url: '/system/building/getTreeList',
  241. method: 'post',
  242. data: data
  243. })
  244. }
  245. //应急处置-获取楼层-智能物联设备列表
  246. export function iotBigViewDeviceFindByType(data) {
  247. return request({
  248. url: '/iot/bigView/device/findByType',
  249. method: 'post',
  250. data: data
  251. })
  252. }
  253. //预警事件-列表
  254. export function systemWarningNoticeNoMenuList(data) {
  255. return request({
  256. url: '/system/warningNotice/noMenuList',
  257. method: 'post',
  258. data: data
  259. })
  260. }
  261. //预警事件-详情
  262. export function systemWarningNoticeDetail(query) {
  263. return request({
  264. url: '/system/warningNotice/detail',
  265. method: 'get',
  266. params: query
  267. })
  268. }
  269. //预警事件-视频回放地址查询
  270. export function iotCameraGetPlaybackURLs(query) {
  271. return request({
  272. url: '/iot/camera/getPlaybackURLs',
  273. method: 'get',
  274. params: query
  275. })
  276. }
  277. /*
  278. 应急处置-指定物联设备查询列表
  279. typeKey:'camera'//摄像头
  280. 楼层或实验室 floorId 楼层ID subjectId 实验室ID
  281. */
  282. export function iotBigViewDeviceList(data) {
  283. return request({
  284. url: '/iot/bigView/device/list',
  285. method: 'post',
  286. data: data
  287. })
  288. }
  289. //应急处置-查询实验室传感器列表
  290. export function iotBigViewDeviceFindBySubId(query) {
  291. return request({
  292. url: '/iot/bigView/device/findBySubId',
  293. method: 'get',
  294. params: query
  295. })
  296. }
  297. //执行记录-详情
  298. export function laboratoryEventFindByEventId(query) {
  299. return request({
  300. url: '/laboratory/event/findByEventId',
  301. method: 'get',
  302. params: query
  303. })
  304. }
  305. //实验室-详情
  306. export function laboratorySubRelInfoGetDetailInfo(query) {
  307. return request({
  308. url: '/laboratory/subRelInfo/getDetailInfo',
  309. method: 'get',
  310. params: query
  311. })
  312. }
  313. //应急处置-喇叭播放文本
  314. export function iotBigViewSpeakerPlayText(query) {
  315. return request({
  316. url: '/iot/bigView/speaker/playText',
  317. method: 'get',
  318. params: query
  319. })
  320. }
  321. //应急处置-结束预案
  322. export function laboratoryPlanCloseRiskPlan(query) {
  323. return request({
  324. url: '/laboratory/plan/closeRiskPlan',
  325. method: 'get',
  326. params: query
  327. })
  328. }
  329. /********************* 视频/应急 *********************/
  330. //校级-校区-楼栋-楼层-列表
  331. export function laboratoryLabDeptTreeGetTreeList (data) {
  332. return request({
  333. url: '/laboratory/labDeptTree/getTreeList',
  334. method: 'post',
  335. data: data
  336. })
  337. }
  338. export function laboratoryLabDeptTreeGetRoomList (data) {
  339. return request({
  340. url: '/laboratory/labDeptTree/getRoomList',
  341. method: 'post',
  342. data: data
  343. })
  344. }
  345. /*
  346. * 获取楼栋楼层实验室打卡在线记录
  347. * buildId-楼栋
  348. * floorId-楼层/楼道
  349. * subId-实验室
  350. */
  351. export function laboratorySubPassOutGetCountByBuildId (data) {
  352. return request({
  353. url: '/laboratory/subPassOut/getCountByBuildId',
  354. method: 'post',
  355. data: data
  356. })
  357. }
  358. //获取摄像头流地址
  359. export function iotCameraFindByCondition(data) {
  360. return request({
  361. url: '/iot/camera/findByCondition',
  362. method: 'post',
  363. data: data
  364. })
  365. }
  366. //根据设备ID获取摄像头流地址
  367. export function iotCameraGetPreviewURLs(query) {
  368. return request({
  369. url: '/iot/camera/getPreviewURLs',
  370. method: 'get',
  371. params: query
  372. })
  373. }
  374. //应急处置-获取楼层布局数据
  375. export function laboratoryBigViewGetFloorByBigView(query) {
  376. return request({
  377. url: '/laboratory/bigView/getFloorByBigView',
  378. method: 'get',
  379. params: query
  380. })
  381. }
  382. /*
  383. * 查询楼层-危险源数据
  384. * floorId-楼层
  385. */
  386. export function laboratoryBigViewHazardStatistics (query) {
  387. return request({
  388. url: '/laboratory/bigView/hazardStatistics',
  389. method: 'get',
  390. params: query
  391. })
  392. }
  393. //新楼栋-楼层树结构
  394. export function laboratoryLabDeptTreeLargeTree (data) {
  395. return request({
  396. url: '/laboratory/labDeptTree/large/tree',
  397. method: 'post',
  398. data: data
  399. })
  400. }
  401. //楼层下查询房间列表
  402. export function laboratoryLabDeptTreeLargeRooms (data) {
  403. return request({
  404. url: '/laboratory/labDeptTree/large/rooms',
  405. method: 'post',
  406. data: data
  407. })
  408. }
  409. //根据过滤条件获取摄像头流地址
  410. export function iotCameraLargeFindByCondition(data) {
  411. return request({
  412. url: '/iot/camera/large/findByCondition',
  413. method: 'post',
  414. data: data
  415. })
  416. }