inspectionData.js 1.28 KB
Newer Older
1 2 3 4 5
import request from '@/utils/request'

// 查询巡检记录列表
export function listInspectionData(query) {
  return request({
6
    url: '/deviceInspection/inspectionData/list',
7 8 9 10 11
    method: 'get',
    params: query
  })
}

12 13 14 15 16 17 18 19 20
// 查询所有巡检记录不分页
export function getAllTInspectionInfo(query) {
  return request({
    url: '/deviceInspection/inspectionData/getAllTInspectionInfo',
    method: 'get',
    params: query
  })
}

21 22 23
// 查询巡检记录详细
export function getInspectionData(dataId) {
  return request({
24
    url: '/deviceInspection/inspectionData/' + dataId,
25 26 27 28 29 30 31
    method: 'get'
  })
}

// 新增巡检记录
export function addInspectionData(data) {
  return request({
32
    url: '/deviceInspection/inspectionData',
33 34 35 36 37 38 39 40
    method: 'post',
    data: data
  })
}

// 修改巡检记录
export function updateInspectionData(data) {
  return request({
41
    url: '/deviceInspection/inspectionData',
42 43 44 45 46 47 48 49
    method: 'put',
    data: data
  })
}

// 删除巡检记录
export function delInspectionData(dataId) {
  return request({
50
    url: '/deviceInspection/inspectionData/' + dataId,
51 52 53 54 55 56 57
    method: 'delete'
  })
}

// 导出巡检记录
export function exportInspectionData(query) {
  return request({
58
    url: '/deviceInspection/inspectionData/export',
59 60 61
    method: 'get',
    params: query
  })
62
}