Newer
Older
smartKitchenFront / src / api / cockpit / cockpit.js
zyn on 4 Nov 2022 889 bytes feat: 驾驶仓echart图表
import request from '@/utils/request'

// 获取设备列表(不分页)-带经纬度
export function getDevicePosition() {
  return request({
    url: 'statistic/deviceList',
    method: 'get',
  })
}
//  设备总数、IOT设备数量、IOT设备在线率
export function getDeviceInfo() {
    return request({
        url: 'statistic/deviceCount',
        method: 'get',
      })
}

// 近一月设备数量统计
export function getDeviceStatistics() {
    return request({
        url: 'statistic/deviceCount/montht',
        method: 'get',
      })
}

// 设备品类统计
export function getDeviceCategory() {
    return request({
        url: 'statistic/deviceCategory',
        method: 'get',
      })
}

// 区域设备排行
// export function getRegionalRank() {
//     return request({
//         url: 'statistic/deviceCategory',
//         method: 'get',
//       })
// }