Brak opisu

bridgeInfo.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import request from '@/utils/request'
  2. export function getBridgeList(params) { // 用户所有桥梁
  3. return request({
  4. url: '/ajax/bridge/byUser',
  5. method: 'get',
  6. params
  7. })
  8. }
  9. export function getBridgeInfo(params) { // 桥梁信息
  10. return request({
  11. url: '/ajax/bridge/qo',
  12. method: 'get',
  13. params
  14. })
  15. }
  16. export function getBridgeServers(params) { // 桥梁服务器
  17. return request({
  18. url: '/ajax/server/byBridge',
  19. method: 'get',
  20. params
  21. })
  22. }
  23. // 报警信息
  24. export function getDangerList(params) {
  25. return request({
  26. url: '/ajax/alarm/msg',
  27. method: 'get',
  28. params
  29. })
  30. }
  31. export function getDangerDetail(params) {
  32. return request({
  33. url: '/ajax/alarm/detail',
  34. method: 'get',
  35. params
  36. })
  37. }
  38. // 报警信息
  39. // 未读报警
  40. export function getBridgeUnread(params) {
  41. return request({
  42. url: '/ajax/alarm/msg/unread',
  43. method: 'get',
  44. params
  45. })
  46. }
  47. export function setUnreadToRead(params) {
  48. return request({
  49. url: '/ajax/alarm/msg/read',
  50. method: 'post',
  51. data: params
  52. })
  53. }
  54. // 未读报警
  55. // 监测信息
  56. export function getMonitorByDay(params) {
  57. return request({
  58. url: '/ajax/collect/wave/server/day',
  59. method: 'get',
  60. params
  61. })
  62. }
  63. export function getTimingMonitor(params) {
  64. return request({
  65. url: '/ajax/collect/wave/curr',
  66. method: 'get',
  67. params
  68. })
  69. }
  70. // 监测信息