149 lines
3.7 KiB
JavaScript
149 lines
3.7 KiB
JavaScript
import request from '@/utils/request';
|
||
|
||
// 查询设备的历史数据
|
||
export function getDataCenterDeviceHistory(data) {
|
||
return request({
|
||
url: '/data/center/deviceHistory',
|
||
method: 'post',
|
||
data: data,
|
||
});
|
||
}
|
||
|
||
// 查询场景变量历史数据
|
||
export function getDataCenterSceneHistory(query) {
|
||
return request({
|
||
url: '/data/center/sceneHistory',
|
||
method: 'get',
|
||
params: query,
|
||
});
|
||
}
|
||
|
||
// 统计告警处理信息
|
||
export function getDataCenterCountAlertProcess(query) {
|
||
return request({
|
||
url: '/data/center/countAlertProcess',
|
||
method: 'get',
|
||
params: query,
|
||
});
|
||
}
|
||
|
||
// 统计告警级别信息
|
||
export function getDataCenterCountAlertLevel(query) {
|
||
return request({
|
||
url: '/data/center/countAlertLevel',
|
||
method: 'get',
|
||
params: query,
|
||
});
|
||
}
|
||
|
||
// 统计设备物模型指令下发数量
|
||
export function getDataCenterCountThingsModelInvoke(query) {
|
||
return request({
|
||
url: '/data/center/countThingsModelInvoke',
|
||
method: 'get',
|
||
params: query,
|
||
});
|
||
}
|
||
|
||
// 查询设备物模型统计指标(最大/最小/均值/累计/数据量/最新值)
|
||
export function getDataCenterDeviceStats(data) {
|
||
return request({
|
||
url: '/data/center/deviceStats',
|
||
method: 'post',
|
||
data: data,
|
||
});
|
||
}
|
||
|
||
// 数据质量分析(上报间隔、缺数时间段、重复值检测、质量评分、7×24热力图)
|
||
export function getDataCenterDeviceDataQuality(data) {
|
||
return request({
|
||
url: '/data/center/deviceDataQuality',
|
||
method: 'post',
|
||
data: data,
|
||
});
|
||
}
|
||
|
||
// 值分布直方图
|
||
export function getDataCenterDeviceHistogram(data) {
|
||
return request({
|
||
url: '/data/center/deviceHistogram',
|
||
method: 'post',
|
||
data: data,
|
||
});
|
||
}
|
||
|
||
// 导出设备历史数据Excel
|
||
export function exportDeviceHistory(data) {
|
||
return request({
|
||
url: '/data/center/deviceHistory/export',
|
||
method: 'post',
|
||
data: data,
|
||
responseType: 'blob',
|
||
});
|
||
}
|
||
|
||
// 网关产品-可导入的子产品物模型列表
|
||
export function getSubProductThingsModel(gwProductId) {
|
||
return request({
|
||
url: '/data/center/subProductThingsModel',
|
||
method: 'get',
|
||
params: { gwProductId },
|
||
});
|
||
}
|
||
|
||
// 网关产品-一键导入子产品物模型
|
||
export function importSubProductThingsToGateway(gwProductId) {
|
||
return request({
|
||
url: '/data/center/importSubProductThingsToGateway',
|
||
method: 'post',
|
||
data: { gwProductId },
|
||
});
|
||
}
|
||
|
||
// 网关设备仅计算物模型列表
|
||
export function getGatewayCalculatedModels(deviceId) {
|
||
return request({
|
||
url: '/data/center/gatewayCalculatedModels',
|
||
method: 'get',
|
||
params: { deviceId },
|
||
});
|
||
}
|
||
|
||
// 网关计算物模型历史(查询时计算,按分钟对齐)
|
||
export function getDeviceHistoryCalculated(data) {
|
||
return request({
|
||
url: '/data/center/deviceHistoryCalculated',
|
||
method: 'post',
|
||
data,
|
||
});
|
||
}
|
||
|
||
// 导出网关计算物模型历史Excel
|
||
export function exportDeviceHistoryCalculated(data) {
|
||
return request({
|
||
url: '/data/center/deviceHistoryCalculated/export',
|
||
method: 'post',
|
||
data,
|
||
responseType: 'blob',
|
||
});
|
||
}
|
||
|
||
// 多设备同一物理量对比历史
|
||
export function getSubDeviceComparativeHistory(data) {
|
||
return request({
|
||
url: '/data/center/subDeviceComparativeHistory',
|
||
method: 'post',
|
||
data,
|
||
});
|
||
}
|
||
|
||
// 导出多设备对比历史Excel
|
||
export function exportSubDeviceComparativeHistory(data) {
|
||
return request({
|
||
url: '/data/center/subDeviceComparativeHistory/export',
|
||
method: 'post',
|
||
data,
|
||
responseType: 'blob',
|
||
});
|
||
}
|