|
|
@@ -10,20 +10,12 @@ export const getDeviceTypeList = (params) => defHttp.get({ url: Api.deviceTypeLi
|
|
|
// export const getDeviceListByType = (params) => defHttp.post({ url: Api.deviceList, 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,
|
|
|
});
|