diff --git a/src/components/cockpit/listOfMainMonitoringPoints/index.vue b/src/components/cockpit/listOfMainMonitoringPoints/index.vue index a8fda76..767c088 100644 --- a/src/components/cockpit/listOfMainMonitoringPoints/index.vue +++ b/src/components/cockpit/listOfMainMonitoringPoints/index.vue @@ -166,7 +166,23 @@ const setEchart = () => { } } }, - yAxis: [{}, {}], + yAxis: [ + {}, + indicatorName ? { + min: 0, + max: 1, + axisLabel: { + formatter: function(value: number) { + if (value === 0) { + return '不越限' + } else if (value === 1) { + return '越限' + } + return value + } + } + } : {} + ], grid: { left: '10px', right: '20px' @@ -417,7 +433,6 @@ watch( deep: true } ) -