| 123456789101112131415161718192021 |
- import { defHttp } from '/@/utils/http/axios';
- enum Api {
- deviceTypeList = '/safety/ventanalyDeviceInfo/DeviceKind/queryByCatagory',
- deviceList = '/dataCenter/compute/deviceData/getDeviceAll',
- devMonitorList = '/dataCenter/compute/deviceData/getDeviceMonitorInfo',
- }
- export const getDeviceTypeList = (params) => defHttp.get({ url: Api.deviceTypeList, params });
- //根据设备类型获取设备列表
- // export const getDeviceListByType = (params) => defHttp.post({ url: Api.deviceList, params });
- export const getDeviceListByType = (params) =>
- defHttp.post({
- url: Api.deviceList,
- params,
- });
- //根据设备id获取设备监控数据
- export const getDevMonitorListById = (params) =>
- defHttp.post({
- url: Api.devMonitorList,
- params,
- });
|