-
-

- 系统硬件监控
-
-
-
-
权限服务
-
AuthApplication
+
+
+
{{ item[0].ip }}
+
+
{{ i.monitorType == 'cpu' ? 'CPU使用率': (i.monitorType == 'memory' ? '内存使用率' : '硬盘使用率') }}
+
状态
-
正常
+
{{ i.result == 'result' ? '硬件异常' : i.result }}
@@ -146,6 +181,7 @@
@@ -214,15 +279,15 @@ export default {
}
.content_box1 {
width: 1640px;
- height: 498px;
+ // height: 498px;
border: 1px solid #dcdcdc;
padding: 20px 0 0 20px;
}
.content_box3 {
- padding: 20px;
- flex: 1;
- height: 178px;
+ width: 1640px;
+ // height: 498px;
border: 1px solid #dcdcdc;
+ padding: 20px;
}
.content_title {
font-size: 20px;
@@ -239,7 +304,7 @@ export default {
flex-wrap: wrap;
}
.itemBox {
- width: 200px;
+ width: 210px;
height: 212px;
border: 1px solid #dcdcdc;
margin: 0 20px 30px 0;
@@ -250,17 +315,22 @@ export default {
.color_block {
width: 76px;
height: 76px;
- margin: 20px 0 14px 0;
+ margin: 40px 0 14px 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
}
}
.itemBox3 {
- width: 210px;
- height: 154px;
- border: 1px solid #dcdcdc;
+ width: 100%;
+ height: 224px;
+ // border: 1px solid #dcdcdc;
margin: 0 20px 30px 0;
display: flex;
- flex-direction: column;
+ // flex-direction: column;
align-items: center;
+ position: relative;
+ padding-top: 60px;
}
.item_title {
font-weight: bold;
@@ -284,4 +354,25 @@ export default {
color: #26b843;
}
}
+.itemBox3_item{
+ width: 210px;
+ height: 182px;
+ border: 1px solid #dcdcdc;
+ margin: 0 20px 30px 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+.bottom-box{
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ // max-width: 1280px
+}
+.ip-title{
+ position: absolute;
+ top: 10px;
+ left: 10px;
+ font-weight: bold;
+}
diff --git a/src/page/opsVisualization/tuobu.vue b/src/page/opsVisualization/tuobu.vue
index 3e9841f..893008a 100644
--- a/src/page/opsVisualization/tuobu.vue
+++ b/src/page/opsVisualization/tuobu.vue
@@ -5,28 +5,28 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
+

@@ -34,46 +34,46 @@
-
-
-
-
+
+
+
+

-

-

-
-
-
+
+
+
+

-
+

-
-
+
+

-
+

-
+

-
+

-
-
+
+
-
-
+
+
@@ -81,16 +81,82 @@
diff --git a/src/router/page/index.js b/src/router/page/index.js
index 0c402c7..50ee997 100644
--- a/src/router/page/index.js
+++ b/src/router/page/index.js
@@ -118,7 +118,7 @@ export default [{
i18n: 'dashboard'
},
component: () =>
- import( /* webpackChunkName: "views" */ '@/views/opsVisualization/tuobu')
+ import( /* webpackChunkName: "views" */ '@/page/opsVisualization/tuobu')
}
]
},
diff --git a/src/views/opsVisualization/jiedian.vue b/src/views/opsVisualization/jiedian.vue
index c32edbb..21b1f00 100644
--- a/src/views/opsVisualization/jiedian.vue
+++ b/src/views/opsVisualization/jiedian.vue
@@ -3,6 +3,7 @@
{{ text }}
+
{{ status }}
@@ -25,7 +26,10 @@ export default {
},
top: {
type: String
- }
+ },
+ status: {
+ type: Boolean
+ }
},
created() {},
mounted() {
diff --git a/vue.config.js b/vue.config.js
index f3fac99..1e9646c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -65,6 +65,13 @@ module.exports = {
"^/api": "/",
},
},
+ "/kgApi": {
+ target: "http://192.168.1.5:8080",
+ ws: true,
+ pathRewrite: {
+ "^/kgApi": "/",
+ },
+ },
},
},
};