statistics.js 1.25 KB
Newer Older
吴卿华's avatar
吴卿华 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import request from '@/utils/request'

// 查询setting列表
export function listSetting(query) {
  return request({
    url: '/system/inspection/punchClockList',
    method: 'get',
    params: query
  })
}

// 查询setting详细
export function getSetting(nfcId) {
  return request({
    url: '/system/inspection/' + nfcId,
    method: 'get'
  })
}
吴卿华's avatar
吴卿华 committed
19 20 21 22 23 24 25
//查询巡检打卡详情
export function getPunchClockList(recordId) {
  return request({
    url: '/system/inspection/getPunchClockList/' +recordId,
    method: 'get',
  })
}
吴卿华's avatar
吴卿华 committed
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
// 新增setting
export function addSetting(data) {
  return request({
    url: '/system/inspection',
    method: 'post',
    data: data
  })
}

// 修改setting
export function updateSetting(data) {
  return request({
    url: '/system/inspection',
    method: 'put',
    data: data
  })
}

// 删除setting
export function delSetting(nfcId) {
  return request({
    url: '/system/inspection/' + nfcId,
    method: 'delete'
  })
}

// 导出setting
export function exportSetting(query) {
  return request({
    url: '/system/inspection/export',
    method: 'get',
    params: query
  })
}
吴卿华's avatar
吴卿华 committed
60 61 62 63 64 65 66 67 68

//
export function exportPunchClockList(query) {
  return request({
    url: '/system/inspection/exportPunchClockList',
    method: 'get',
    params: query
  })
}