fuliqi
2025-02-14 acd4f746de3e89e4a8b9b47b0f82e25cc25a17c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import request from '@/utils/request'
 
// 查询设备资产列表
export function listMonitor(query) {
  return request({
    url: '/system/monitor/list',
    method: 'get',
    params: query
  })
}
 
// 查询设备资产统计数
export function videoCount(query) {
  return request({
    url: '/system/monitor/getVideoCount',
    method: 'get',
    params: query
  })
}
 
// 查询异常恢复设备资产统计数
export function recoveryException(query) {
  return request({
    url: '/system/monitor/recoveryException',
    method: 'get',
    params: query
  })
}
 
// 查询设备资产详细
export function getMonitor(id) {
  return request({
    url: '/system/monitor/' + id,
    method: 'get'
  })
}
 
// 新增设备资产
export function addMonitor(data) {
  return request({
    url: '/system/monitor',
    method: 'post',
    data: data
  })
}
 
// 修改设备资产
export function updateMonitor(data) {
  return request({
    url: '/system/monitor',
    method: 'put',
    data: data
  })
}
 
// 删除设备资产
export function delMonitor(id) {
  return request({
    url: '/system/monitor/' + id,
    method: 'delete'
  })
}