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
|
})
|
}
|
|
// 获取工单白名单列表
|
export function getWhiteList(query) {
|
return request({
|
url: '/threshold/white/page',
|
method: 'post',
|
data: query
|
})
|
}
|
|
// 获取工单白名单详情
|
export function getWhite(id) {
|
return request({
|
url: '/threshold/white/'+id,
|
method: 'get',
|
})
|
}
|
// 新增工单白名单
|
export function addWhiteList(data) {
|
return request({
|
url: '/threshold/white/add',
|
method: 'post',
|
data: data
|
})
|
}
|
// 修改工单白名单
|
export function updateWhite(data) {
|
return request({
|
url: '/threshold/white/update',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 批量删除工单白名单
|
export function bathDelete(data) {
|
return request({
|
url: '/threshold/white/batchDelete',
|
method: 'delete',
|
data: data
|
})
|
}
|
|
// 导出
|
export function whiteExport(param) {
|
return request({
|
url: '/threshold/white/export',
|
method: 'get',
|
params: param,
|
responseType: 'blob'
|
})
|
}
|
|
// 修改工单白名单
|
export function addError(data) {
|
return request({
|
url: '/threshold/addBatch',
|
method: 'post',
|
data: data
|
})
|
}
|