mirror of
https://gitee.com/beecue/fastbee.git
synced 2026-05-08 00:34:41 +08:00
feat(菜单界面):新增历史记录和数据分析页面
This commit is contained in:
19
vue/src/api/iot/center.js
Normal file
19
vue/src/api/iot/center.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 查询设备的历史数据
|
||||
export function getDataCenterDeviceHistory(data) {
|
||||
return request({
|
||||
url: '/data/center/deviceHistory',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 统计设备物模型指令下发数量
|
||||
export function getDataCenterCountThingsModelInvoke(query) {
|
||||
return request({
|
||||
url: '/data/center/countThingsModelInvoke',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
@@ -36,6 +36,15 @@ export function listDeviceShort(query) {
|
||||
});
|
||||
}
|
||||
|
||||
// 查询设备变量概况
|
||||
export function listThingsModel(query) {
|
||||
return request({
|
||||
url: '/iot/device/listThingsModel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询所有设备简短列表
|
||||
export function listAllDeviceShort() {
|
||||
return request({
|
||||
|
||||
Reference in New Issue
Block a user