feat : 新增echarts中指定日期展示及细节优化

This commit is contained in:
2024-02-28 18:08:44 +08:00
parent 59aa2a92d1
commit ea4f72780f
19 changed files with 810 additions and 438 deletions

View File

@@ -22,24 +22,39 @@ export const getTunnelBySiteId = (siteId) => {
})
}
// 传感器echarts数据
export const getEchartsInfo = (equipmentId,type) => {
export const getEchartsInfo = (id,time,type) => {
return request({
url: `/tunnel/large/screen/echarts/sensor/${equipmentId}/${type}`,
method: 'get'
url: '/tunnel/large/screen/echarts/sensor',
method: 'get',
params: {
id: id,
time: time,
type: type
}
})
}
// 有害气体echarts数据
export const getBadGasEchartsInfo = (tunnelId,type) => {
export const getBadGasEchartsInfo = (id,time,type) => {
return request({
url: `/tunnel/large/screen/echarts/gas/sensor/${tunnelId}/${type}`,
method: 'get'
url: '/tunnel/large/screen/echarts/gas/sensor/',
method: 'get',
params: {
id: id,
time: time,
type: type
}
})
}
//电流监控数据
export const getFanEchartsInfo = (equipmentId,type) => {
export const getFanEchartsInfo = (id,time,type) => {
return request({
url: `/tunnel/large/screen/echarts/current/${equipmentId}/${type}`,
method: 'get'
url: '/tunnel/large/screen/echarts/current',
method: 'get',
params: {
id: id,
time: time,
type: type
}
})
}
//风机频率修改