device.js 609 Bytes
Newer Older
冯超鹏's avatar
冯超鹏 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
import request from '@/utils/request';

export function deviceTypeList() { // 设备类型
  return request({
    url: 'devices/devicetype',
    method: 'get',
  });
}

export function deviceList(page, limit, type) {
  return request({
    url: 'devices/devicelist?page=' + page + '&limit=' + limit + '&type=' + type,
    method: 'get',
  });
}

export function deviceDataInfo(id) {
  return request({
    url: '/devices/deviceDataInfo/' + id,
    method: 'get',
  });
}

export function deviceDataSearch(data) {
  return request({
    url: '/devices/deviceDataSearch',
    method: 'post',
    data,
  });
}