From a976780c23fae34aec12c44095ac92f797b5b737 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Wed, 11 Aug 2021 15:20:42 +0800 Subject: [PATCH] jiankong --- hb_client/src/api/moritor.js | 25 +++ hb_client/src/router/index.js | 15 ++ hb_client/src/views/monitor/service.vue | 236 ++++++++++++++++++++++++ 3 files changed, 276 insertions(+) create mode 100644 hb_client/src/api/moritor.js create mode 100644 hb_client/src/views/monitor/service.vue 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 @@ + + + + + +