From a2589676cb899d57a3831d6b025120c93883e83e Mon Sep 17 00:00:00 2001
From: Ky_Gyt <1971574843@qq.com>
Date: Fri, 30 Apr 2021 11:34:10 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E7=BB=9F=E8=AE=A1=E5=9B=BE=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Web/src/pages/home/charts.vue | 3 +
Web/src/pages/system/machine/index.vue | 209 ++++++++++++++++++++++---
2 files changed, 186 insertions(+), 26 deletions(-)
diff --git a/Web/src/pages/home/charts.vue b/Web/src/pages/home/charts.vue
index 768ed3f..b0b0e78 100644
--- a/Web/src/pages/home/charts.vue
+++ b/Web/src/pages/home/charts.vue
@@ -99,6 +99,9 @@ export default {
var chartDom = this.$refs.chart;
var myChart = echarts.init(chartDom);
myChart.setOption(this.options);
+ window.addEventListener("resize",function(){
+ myChart.resize();
+ })
},
};
\ No newline at end of file
diff --git a/Web/src/pages/system/machine/index.vue b/Web/src/pages/system/machine/index.vue
index ec9033a..3654990 100644
--- a/Web/src/pages/system/machine/index.vue
+++ b/Web/src/pages/system/machine/index.vue
@@ -4,63 +4,188 @@
-
+
- {{ machineBaseInfo.hostName }}
- {{ machineBaseInfo.systemOs }}
- {{ machineBaseInfo.osArchitecture }}
- {{ machineBaseInfo.frameworkDescription }}
- {{ machineBaseInfo.processorCount }}
+ {{
+ machineBaseInfo.hostName
+ }}
+ {{
+ machineBaseInfo.systemOs
+ }}
+ {{
+ machineBaseInfo.osArchitecture
+ }}
+ {{
+ machineBaseInfo.frameworkDescription
+ }}
+ {{
+ machineUseInfo.runTime
+ }}
-
+
{{ machineBaseInfo.wanIp }}
- {{ machineBaseInfo.lanIp }}
- {{ machineBaseInfo.ipMac }}
- {{ machineNetworkInfo.sendAndReceived }}
- {{ machineNetworkInfo.networkSpeed }}
+ >{{ machineBaseInfo.wanIp }}
+ {{
+ machineBaseInfo.lanIp
+ }}
+ {{
+ machineBaseInfo.ipMac
+ }}
+ {{
+ machineNetworkInfo.sendAndReceived
+ }}
+ {{
+ machineNetworkInfo.networkSpeed
+ }}
-
+
+
+
-
- {{ machineUseInfo.runTime }}
- {{ machineUseInfo.cpuRate }}
- {{ machineUseInfo.totalRam }}
- {{ machineUseInfo.ramRate }}
-
+ CPU使用率为:
+
+
+
+
+
+ 内存使用率为:
+
+
+
+
+
+
\ No newline at end of file
+
+
\ No newline at end of file