From e3de350dc511b40eb8b02d3feeab61d7d99a191b Mon Sep 17 00:00:00 2001 From: stt Date: Fri, 5 Dec 2025 16:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E6=A0=87=E6=8B=9F=E5=90=88=E5=9B=BEy?= =?UTF-8?q?=E8=BD=B4=E5=B1=95=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../listOfMainMonitoringPoints/index.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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 } ) -