diff --git a/hb_client/src/api/moritor.js b/hb_client/src/api/moritor.js
new file mode 100644
index 0000000..e31aa10
--- /dev/null
+++ b/hb_client/src/api/moritor.js
@@ -0,0 +1,25 @@
+import { getToken } from "@/utils/auth"
+import request from '@/utils/request'
+
+//查看日志列表
+
+export function getlogList(query) {
+ return request({
+ url: '/monitor/log/',
+ method: 'get'
+ })
+}
+//查看日志详情
+export function getLog(name) {
+ return request({
+ url: `/monitor/log/${name}/`,
+ method: 'get'
+ })
+}
+//获取服务器状态信息
+export function getServerList() {
+ return request({
+ url: '/monitor/server/',
+ method: 'get'
+ })
+}
\ No newline at end of file
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 8d33a62..feee85e 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -129,6 +129,21 @@ export const asyncRoutes = [
}
]
},
+ {
+ path: '/monitor',
+ component: Layout,
+ redirect: '/monitor/service',
+ name: 'Monitor',
+ meta: { title: '系统监控', icon: 'example', perms: ['monitor_set'] },
+ children: [
+ {
+ path: 'service',
+ name: 'service',
+ component: () => import('@/views/monitor/service'),
+ meta: { title: '服务监控', icon: 'example', perms: ['service_manage'] }
+ }
+ ]
+ },
{
path: '/develop',
component: Layout,
diff --git a/hb_client/src/views/monitor/service.vue b/hb_client/src/views/monitor/service.vue
new file mode 100644
index 0000000..14f9030
--- /dev/null
+++ b/hb_client/src/views/monitor/service.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
+
+ CPU
+
+
+
+ 属性
+
+
+ 值
+
+
+
+
+ 逻辑核心数
+
+
+ {{cpuData.count}}
+
+
+
+
+ 物理核心数
+
+
+ {{cpuData.lcount}}
+
+
+
+
+ 当前使用率
+
+
+ {{cpuData.percent}}%
+
+
+
+
+
+
+
+
+
+ 内存
+
+
+
+ 属性
+
+
+ 值
+
+
+
+
+ 使用率
+
+
+ {{memoryData.percent}}%
+
+
+
+
+ 总内存
+
+
+ {{memoryData.total}}
+
+
+
+
+ 已用内存
+
+
+ {{memoryData.used}}
+
+
+
+
+
+
+
+
+
+ 硬盘
+
+
+
+ 属性
+
+
+ 值
+
+
+
+
+ 已用百分比
+
+
+ {{diskData.percent}}%
+
+
+
+
+ 总大小
+
+
+ {{diskData.total}}
+
+
+
+
+ 已用大小
+
+
+ {{diskData.used}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 日志列表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+