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%',