monitor_management.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import request from '@/utils/request'
  2. // 布控人员的批量导入
  3. export function userControlEarlyWarningListExcel(data) {
  4. return request({
  5. url: '/admin/userControlEarlyWarningList/userControlEarlyWarningListExcel',
  6. method: 'post',
  7. data
  8. })
  9. }
  10. // 布控人员列表分页
  11. export function getPageList(data) {
  12. return request({
  13. url: '/admin/userControlEarlyWarningList/getPageList',
  14. method: 'post',
  15. data
  16. })
  17. }
  18. // 新增或修改布控
  19. export function addOrUpdate(data) {
  20. return request({
  21. url: '/admin/userControlEarlyWarningList/addOrUpdate',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 删除布控人员
  27. export function deleteWarning(controlEarlyWarningId) {
  28. return request({
  29. url: '/admin/userControlEarlyWarningList/delete',
  30. method: 'get',
  31. params:{
  32. controlEarlyWarningId
  33. }
  34. })
  35. }
  36. // 查询预警列表-分页
  37. export function getListLogPageInfo(data) {
  38. return request({
  39. url: '/admin/controlEarlyWarningListLog/getListLogPageInfo',
  40. method: 'post',
  41. data
  42. })
  43. }
  44. // 预警信息
  45. export function getListLog(data) {
  46. return request({
  47. url: '/admin/controlEarlyWarningListLog/getListLog',
  48. method: 'get',
  49. params:data
  50. })
  51. }
  52. // 预警确认
  53. export function earlyWarningConfirm(id) {
  54. return request({
  55. url: '/admin/controlEarlyWarningListLog/earlyWarningConfirm',
  56. method: 'get',
  57. params:{
  58. id
  59. }
  60. })
  61. }
  62. // 导出Excel
  63. export function getListLogExcel(data) {
  64. return request({
  65. url: '/admin/controlEarlyWarningListLog/getListLogExcel',
  66. method: 'post',
  67. responseType: 'blob',
  68. data
  69. })
  70. }