diff --git a/src/views/sponeScreen/Echarts/AssessmentEcharts.vue b/src/views/sponeScreen/Echarts/AssessmentEcharts.vue index ebb6c62..c2a4bd6 100644 --- a/src/views/sponeScreen/Echarts/AssessmentEcharts.vue +++ b/src/views/sponeScreen/Echarts/AssessmentEcharts.vue @@ -90,6 +90,7 @@ color: '#60C2FF', }, }, + max: Math.max(...props.data.yAxis) + 0.5, }, { name: '', diff --git a/src/views/sponeScreen/Echarts/AssessmentEcharts.vue b/src/views/sponeScreen/Echarts/AssessmentEcharts.vue index ebb6c62..c2a4bd6 100644 --- a/src/views/sponeScreen/Echarts/AssessmentEcharts.vue +++ b/src/views/sponeScreen/Echarts/AssessmentEcharts.vue @@ -90,6 +90,7 @@ color: '#60C2FF', }, }, + max: Math.max(...props.data.yAxis) + 0.5, }, { name: '', diff --git a/src/views/sponeScreen/Echarts/AssessmentjsEcharts.vue b/src/views/sponeScreen/Echarts/AssessmentjsEcharts.vue index e974568..d3822e9 100644 --- a/src/views/sponeScreen/Echarts/AssessmentjsEcharts.vue +++ b/src/views/sponeScreen/Echarts/AssessmentjsEcharts.vue @@ -88,6 +88,7 @@ color: '#60C2FF', }, }, + max: Math.max(...props.data.yAxis) + 0.5, }, { name: '水深(m)', diff --git a/src/views/sponeScreen/Echarts/AssessmentEcharts.vue b/src/views/sponeScreen/Echarts/AssessmentEcharts.vue index ebb6c62..c2a4bd6 100644 --- a/src/views/sponeScreen/Echarts/AssessmentEcharts.vue +++ b/src/views/sponeScreen/Echarts/AssessmentEcharts.vue @@ -90,6 +90,7 @@ color: '#60C2FF', }, }, + max: Math.max(...props.data.yAxis) + 0.5, }, { name: '', diff --git a/src/views/sponeScreen/Echarts/AssessmentjsEcharts.vue b/src/views/sponeScreen/Echarts/AssessmentjsEcharts.vue index e974568..d3822e9 100644 --- a/src/views/sponeScreen/Echarts/AssessmentjsEcharts.vue +++ b/src/views/sponeScreen/Echarts/AssessmentjsEcharts.vue @@ -88,6 +88,7 @@ color: '#60C2FF', }, }, + max: Math.max(...props.data.yAxis) + 0.5, }, { name: '水深(m)', diff --git a/src/views/sponeScreen/waterFlood/pipeDetail.vue b/src/views/sponeScreen/waterFlood/pipeDetail.vue index 9a7b6ef..cba8ce1 100644 --- a/src/views/sponeScreen/waterFlood/pipeDetail.vue +++ b/src/views/sponeScreen/waterFlood/pipeDetail.vue @@ -156,6 +156,7 @@ chartOption.floodOneMapPipeSupervise.xAxis[0].data = datas.propertyMonitorXList; chartOption.floodOneMapPipeSupervise.yAxis[0].name = '水深(m)'; chartOption.floodOneMapPipeSupervise.yAxis[1].name = '雨量(mm)'; + chartOption.floodOneMapPipeSupervise.legend.data = ['水深', '雨量']; chartOption.floodOneMapPipeSupervise.series[0].name = '水深'; chartOption.floodOneMapPipeSupervise.series[0].data = datas.propertyMonitorList[0].ylist; @@ -171,6 +172,7 @@ 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].name = '雨量'; chartOption.floodOneMapPipeSupervise.series[1].type = 'bar'; chartOption.floodOneMapPipeSupervise.series[1].barWidth = '10';