feat(菜单界面):新增历史记录和数据分析页面

This commit is contained in:
yang
2026-03-05 16:22:47 +08:00
parent 1f7576f0de
commit 913dd73f6e
4 changed files with 840 additions and 0 deletions

19
vue/src/api/iot/center.js Normal file
View 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,
});
}

View File

@@ -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({