feat : 新增图表多日期选择功能
This commit is contained in:
@@ -22,38 +22,44 @@ export const getTunnelBySiteId = (siteId) => {
|
||||
})
|
||||
}
|
||||
// 传感器echarts数据
|
||||
export const getEchartsInfo = (id,time,type) => {
|
||||
export const getEchartsInfo = (id,time,type,startTime,endTime) => {
|
||||
return request({
|
||||
url: '/tunnel/large/screen/echarts/sensor',
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id,
|
||||
time: time,
|
||||
type: type
|
||||
type: type,
|
||||
startTime:startTime,
|
||||
endTime:endTime,
|
||||
}
|
||||
})
|
||||
}
|
||||
// 有害气体echarts数据
|
||||
export const getBadGasEchartsInfo = (id,time,type) => {
|
||||
export const getBadGasEchartsInfo = (id,time,type,startTime,endTime) => {
|
||||
return request({
|
||||
url: '/tunnel/large/screen/echarts/gas/sensor/',
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id,
|
||||
time: time,
|
||||
type: type
|
||||
type: type,
|
||||
startTime:startTime,
|
||||
endTime:endTime,
|
||||
}
|
||||
})
|
||||
}
|
||||
//电流监控数据
|
||||
export const getFanEchartsInfo = (id,time,type) => {
|
||||
export const getFanEchartsInfo = (id,time,type,startTime,endTime) => {
|
||||
return request({
|
||||
url: '/tunnel/large/screen/echarts/current',
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id,
|
||||
time: time,
|
||||
type: type
|
||||
type: type,
|
||||
startTime:startTime,
|
||||
endTime:endTime,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user