From f6d7f3f69e8a43c17116c2342774b62e283b58b3 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 2f218ed4..6ac655bc 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;
+ },
+ });
+