Newer
Older
smartwell_front / src / api / home / device / count.ts
liyaguang on 22 Jan 1 KB 临时提交
/**
 * 设备管理--设备统计模块接口
 */
import request from '@/api/index'

// 设备运行情况
export function getDeviceRun() {
  return request({
    url: '/device/statics/status',
    method: 'post',
  })
}

// 设备上报情况
export function getDeviceReport() {
  return request({
    url: '/device/statics/dataReport',
    method: 'post',
  })
}

// 设备分类统计
export function getDeviceType() {
  return request({
    url: '/device/statics/deviceType',
    method: 'post',
  })
}

// 设备分类统计
export function getOffline() {
  return request({
    url: '/device/statics/offLine',
    method: 'post',
  })
}

// 管理单位设备统计
export function getDeptDevice() {
  return request({
    url: '/device/statics/company',
    method: 'post',
  })
}

// 离线设备清单
export function getOfflineDevice(data: any) {
  return request({
    url: `/device/statics/offLineList?limit=${data.limit}&offset=${data.offset}`,
    method: 'post',
    data,
  })
}

export function exportOffDevice(params: any) {
  return request({
    url: '/device/statics/batchExport',
    method: 'get',
    params,
    responseType: 'blob',
  })
}