From 9a8c0e7118e77cc5a6bde1b50e3645a20db22d8f Mon Sep 17 00:00:00 2001
From: xykt <152045469+xykt@users.noreply.github.com>
Date: Sun, 24 Mar 2024 09:24:23 +0800
Subject: [PATCH] Update network.html
---
resource/template/theme-daynight/network.html | 354 +++++++++++-------
1 file changed, 213 insertions(+), 141 deletions(-)
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;
+ },
+ });
+