diff --git a/resource/template/theme-daynight/network.html b/resource/template/theme-daynight/network.html
index b413673..6ac655b 100644
--- a/resource/template/theme-daynight/network.html
+++ b/resource/template/theme-daynight/network.html
@@ -107,149 +107,250 @@
+ legendName = monitorInfo.result[i].monitor_name +" "+ lossRate + "%";
+ tLegendData.push(legendName);
+ tSeries.push({
+ name: legendName,
+ type: 'line',
+ smooth: true,
+ symbol: 'none',
+ data: data,
+ markPoint: {
+ data: [
+ { type: 'max', symbol: 'pin', name: 'Max', itemStyle: { color: rgbaColorMarker }, symbolSize: 30, label: { fontSize: 8 } },
+ { type: 'min', symbol: 'pin', name: 'Min', itemStyle: { color: rgbaColorMarker }, symbolSize: 30, label: { fontSize: 8, offset: [0, 7.5] }, symbolRotate: 180 }
+ ]
+ }
+ });
+ tSeries.push({
+ name: legendName,
+ type: 'bar',
+ smooth: true,
+ symbol: 'none',
+ data: datal,
+ itemStyle: { color: rgbaColorBar }
+ });
+ }
+ 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;
+ },
+ });
+