fuliqi
2024-12-08 1d3efb6ed52ef43c6184cfaa2ff11d5cc78565c9
src/api/platform/threshold.js
@@ -12,7 +12,7 @@
// 查询运维阈值详细
export function getVideo(id) {
  return request({
    url: '/threshold/video' + id,
    url: '/threshold/video/' + id,
    method: 'get'
  })
}
@@ -20,7 +20,7 @@
// 查询运维阈值详细
export function getCar(id) {
  return request({
    url: '/threshold/car' + id,
    url: '/threshold/car/' + id,
    method: 'get'
  })
}
@@ -28,7 +28,7 @@
// 查询运维阈值详细
export function getFace(id) {
  return request({
    url: '/threshold/face' + id,
    url: '/threshold/face/' + id,
    method: 'get'
  })
}
@@ -85,3 +85,77 @@
    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
  })
}