diff --git a/src/views/sponeScreen/waterFlood/pipeDetail.vue b/src/views/sponeScreen/waterFlood/pipeDetail.vue index a775df1..d8aaa78 100644 --- a/src/views/sponeScreen/waterFlood/pipeDetail.vue +++ b/src/views/sponeScreen/waterFlood/pipeDetail.vue @@ -183,7 +183,7 @@ chartOption.floodOneMapPipeSupervise.legend.data = ['水深', '雨量']; chartOption.floodOneMapPipeSupervise.series[0].name = '水深'; - chartOption.floodOneMapPipeSupervise.series[0].data = datas.propertyMonitorList[0].ylist; + chartOption.floodOneMapPipeSupervise.series[0].data = nameToData(datas.propertyMonitorList, '水位'); } // 雨量站数据 @@ -195,8 +195,9 @@ let res2 = await graphicReport(params2); if (res2 && res2.code == 200) { let datas = res2.data; - chartOption.floodOneMapPipeSupervise.series[1].data = datas.propertyMonitorList[0].ylist; - chartOption.floodOneMapPipeSupervise.yAxis[1].max = Math.max(...datas.propertyMonitorList[0].ylist) + 0.5; + + chartOption.floodOneMapPipeSupervise.series[1].data = nameToData(datas.propertyMonitorList, '5分钟时段降水量'); + chartOption.floodOneMapPipeSupervise.yAxis[1].max = Math.max(...nameToData(datas.propertyMonitorList, '5分钟时段降水量')) + 0.5; chartOption.floodOneMapPipeSupervise.series[1].name = '雨量'; chartOption.floodOneMapPipeSupervise.series[1].type = 'bar'; chartOption.floodOneMapPipeSupervise.series[1].barWidth = 'auto';