liulingling.177216
2024-08-26 349f1cfc5fa77fbc636d542df0d8050fddec48c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import request from '@/utils/request'
 
// 查询实时页面数据
export function getRealTimeData(code, minute, pointCount) {
    return request({
        url: '/energyAlarm/realTimeAlarm/liveHistoryData/' + code + "/" + minute + "/" + pointCount,
        method: 'get'
    })
}
 
// 查询实时表格页面数据
export function getRealTimeTableData(code, dataTime) {
    return request({
        url: '/dataMonitoring/realTimeTrend/svgTrendView/energyIndex/history/' + code + '/' + dataTime,
        method: 'get'
    })
}
 
// 查询历史页面数据
export function getHistoryData(code, start, end, pointCount) {
    return request({
        url: '/energyAlarm/historicalAlarm/historyData/' + code + "/" + start + "/" + end + "/" + pointCount,
        method: 'get'
    })
}
 
// 导出历史表格数据
export function exportHistoryTable(code, start, end, pointCount, indexName, indexUnit) {
    return request({
        url: '/energyAlarm/historicalAlarm/historyDataExcel/' + code + "/" + start + "/" + end + "/" + pointCount + "/" + indexName + "/" + indexUnit,
        method: 'get'
    })
}