fuliqi
2024-11-14 7603e24bb41407d62d2335276758a61270530067
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import request from '@/utils/request'
 
// 查询运维阈值列表
export function listThreshold(query) {
  return request({
    url: '/threshold/list',
    method: 'get',
    params: query
  })
}
 
// 查询运维阈值详细
export function getVideo(id) {
  return request({
    url: '/threshold/video/' + id,
    method: 'get'
  })
}
 
// 查询运维阈值详细
export function getCar(id) {
  return request({
    url: '/threshold/car/' + id,
    method: 'get'
  })
}
 
// 查询运维阈值详细
export function getFace(id) {
  return request({
    url: '/threshold/face/' + id,
    method: 'get'
  })
}
 
// 新增运维阈值
export function addThreshold(data) {
  return request({
    url: '/threshold',
    method: 'post',
    data: data
  })
}
 
// 修改运维阈值
export function updateThreshold(data) {
  return request({
    url: '/threshold',
    method: 'put',
    data: data
  })
}
 
// 删除运维阈值
export function delThreshold(id) {
  return request({
    url: '/threshold/' + id,
    method: 'delete'
  })
}
 
// 修改视频阈值
export function editVideo(data) {
  return request({
    url: '/threshold/video',
    method: 'put',
    data: data
  })
}
 
// 修改车辆阈值
export function editCar(data) {
  return request({
    url: '/threshold/car',
    method: 'put',
    data: data
  })
}
 
// 修改人脸阈值
export function editFace(data) {
  return request({
    url: '/threshold/face',
    method: 'put',
    data: data
  })
}
 
// 导入
export function importData(data) {
  return request({
    url: '/threshold/import',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    timeout: 150000
  })
}