alarmLog.js 684 B

123456789101112131415161718192021222324252627282930313233343536
  1. import request from '@/utils/request'
  2. // 查询安防告警日志列表
  3. export function listAlarmLog(query) {
  4. return request({
  5. url: '/base/alarmLog/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询安防告警日志详细
  11. export function getAlarmLog(id) {
  12. return request({
  13. url: '/base/alarmLog/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 确认告警
  18. export function confirmAlarmLog(id, data) {
  19. return request({
  20. url: '/base/alarmLog/' + id + '/confirm',
  21. method: 'put',
  22. data: data
  23. })
  24. }
  25. // 忽略告警
  26. export function ignoreAlarmLog(id, data) {
  27. return request({
  28. url: '/base/alarmLog/' + id + '/ignore',
  29. method: 'put',
  30. data: data
  31. })
  32. }