import request from '@/utils/request'

// 查询故障管理初选列表
export function listOriginal(query) {
  return request({
    url: '/reliability/original/list',
    method: 'get',
    params: query
  })
}

// 优先级统计
export function priorityData(query) {
  return request({
    url: '/reliability/original/priorityData',
    method: 'get',
    params: query
  })
}

// 专业统计
export function disciplineData(query) {
  return request({
    url: '/reliability/original/disciplineData',
    method: 'get',
    params: query
  })
}
// 查询故障管理初选详细
export function getOriginal(id) {
  return request({
    url: '/reliability/original/' + id,
    method: 'get'
  })
}

// 新增故障管理初选
export function addOriginal(data) {
  return request({
    url: '/reliability/original',
    method: 'post',
    data: data
  })
}

// 修改故障管理初选
export function updateOriginal(data) {
  return request({
    url: '/reliability/original',
    method: 'put',
    data: data
  })
}

// 删除故障管理初选
export function delOriginal(id) {
  return request({
    url: '/reliability/original/' + id,
    method: 'delete'
  })
}

// 导出故障管理初选
export function exportOriginal(query) {
  return request({
    url: '/reliability/original/export',
    method: 'get',
    params: query
  })
}
