Newer
Older
smartwell_front / src / api / home / device / count.ts
lyg on 22 Aug 953 bytes 设备统计模块
/**
 * 设备管理--设备统计模块接口
 */
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',
    method: 'post',
    data,
  })
}