| 1234567891011121314151617181920212223242526272829 |
- import { defHttp } from '/@/utils/http/axios';
- enum Api {
- subStationList = '/safety/ventanalySubStation/alllist',
- deviceList = '/dataCenter/compute/deviceData/getDeviceAll',
- devMonitorList = '/dataCenter/compute/deviceData/getDeviceMonitorInfo',
- }
- // 分站查询接口
- export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params });
- //根据设备类型获取设备列表
- export const getDeviceListByType = (params) =>
- defHttp.post({
- headers: {
- 'X-Access-Token':
- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNzU5ODQxMTcwfQ.fHaM3l-d88tUSLOs8sstXsDuSCn6Agbj_EMZMgV6waw',
- },
- url: Api.deviceList,
- params,
- });
- //根据设备id获取设备监控数据
- export const getDevMonitorListById = (params) =>
- defHttp.post({
- headers: {
- 'X-Access-Token':
- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNzU5ODQxMTcwfQ.fHaM3l-d88tUSLOs8sstXsDuSCn6Agbj_EMZMgV6waw',
- },
- url: Api.devMonitorList,
- params,
- });
|