diff --git a/resource/template/theme-daynight/network.html b/resource/template/theme-daynight/network.html index 2f218ed..6ac655b 100644 --- a/resource/template/theme-daynight/network.html +++ b/resource/template/theme-daynight/network.html @@ -107,145 +107,200 @@ + }); + } + this.option.title.text = monitorInfo.result[0].server_name; + this.option.series = tSeries; + this.option.legend.data = tLegendData; + this.myChart.clear(); + this.myChart.setOption(this.option); + }, + this.option.title.text = monitorInfo.result[0].server_name; + this.option.series = tSeries; + this.option.legend.data = tLegendData; + this.myChart.clear(); + this.myChart.setOption(this.option); + }, + isWindowsPlatform(str) { + return str.includes('Windows') + }, + renderChart() { + this.myChart = echarts.init(this.$refs.chartDom); + this.myChart.setOption(this.option); + }, + resizeHandle () { + this.myChart.resize(); + }, + }, + beforeDestroy() { + this.myChart.dispose(); + this.myChart = null; + }, + }); +