feat : 电流、有毒气体和传感器echarts按日月年监控数据

This commit is contained in:
2024-02-22 17:10:06 +08:00
parent 98799e8bcc
commit 3a23b467ec
7 changed files with 132 additions and 209 deletions

View File

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