From 0e08ce0f03c1734792c5eb2a7cd25e3d70b9c501 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 29 Nov 2022 00:32:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B1=82=E8=8D=AF=E5=9B=BE=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=9B=BE=E4=BE=8B=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/auto_pt/status.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/templates/auto_pt/status.html b/templates/auto_pt/status.html index 126bc84..f7dad20 100644 --- a/templates/auto_pt/status.html +++ b/templates/auto_pt/status.html @@ -43,6 +43,13 @@ inactive-text="求药模式" inactive-color="#ff4949"> + +
@@ -79,6 +86,7 @@ option: {}, begInvite: false, showLogo: false, + showLegend: false, } }, beforeMount() { @@ -99,7 +107,7 @@ } }, methods: { - setChartOption(option){ + setChartOption(option) { this.option = option this.$refs.charts.chart.clear() this.$refs.charts.chart.setOption(this.option) @@ -164,7 +172,7 @@ '#d677f6', ], legend: { - {#show: false,#} + show: this.showLegend, {#type: 'scroll',#} {#top: 'bottom',#} right: '2%', @@ -346,7 +354,9 @@ return renderSize(value) } }, - legend: {}, + legend: { + show: this.showLegend + }, grid: { left: '3%', right: '4%',