From daffb0883bbbae78b68a490df67d9064baf02674 Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Wed, 23 Oct 2024 15:46:11 +0800 Subject: [PATCH] =?UTF-8?q?page:=20=F0=9F=93=84=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=BC=93=E5=AD=98=E7=9B=91=E6=8E=A7=E5=92=8C?= =?UTF-8?q?=E5=86=85=E7=BD=AEos=E5=8F=8A=E5=85=B6java=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/v1/actuator.ts | 16 +++ src/api/v1/system.ts | 5 - src/views/monitor/caches/index.vue | 23 ++++ src/views/monitor/server/index.vue | 25 ++-- src/views/monitor/server/info.vue | 134 ++++++++++++++++++++++ src/views/monitor/server/utils/columns.ts | 13 +++ 6 files changed, 200 insertions(+), 16 deletions(-) create mode 100644 src/api/v1/actuator.ts create mode 100644 src/views/monitor/caches/index.vue create mode 100644 src/views/monitor/server/info.vue create mode 100644 src/views/monitor/server/utils/columns.ts diff --git a/src/api/v1/actuator.ts b/src/api/v1/actuator.ts new file mode 100644 index 0000000..3e0f591 --- /dev/null +++ b/src/api/v1/actuator.ts @@ -0,0 +1,16 @@ +import { http } from '@/api/service/request'; + +/** actuator断端点-系统服务获取 */ +export const fetchSystemHealthList = () => { + return http.request('get', '/health'); +}; + +/** actuator断端点-系统信息 */ +export const fetchSystemInfo = () => { + return http.request('get', '/info'); +}; + +/** actuator断端点-系统缓存 */ +export const fetchSystemCaches = () => { + return http.request('get', '/caches'); +}; diff --git a/src/api/v1/system.ts b/src/api/v1/system.ts index b47d8be..58465a3 100644 --- a/src/api/v1/system.ts +++ b/src/api/v1/system.ts @@ -10,8 +10,3 @@ export const getRouterAsync = () => { export const fetchUploadFile = (data: any) => { return http.request>('post', '/files/upload', { data }, { headers: { 'Content-Type': 'multipart/form-data' } }); }; - -/** 系统监控-系统服务获取 */ -export const fetchSystemHealthList = () => { - return http.request('get', '/health'); -}; diff --git a/src/views/monitor/caches/index.vue b/src/views/monitor/caches/index.vue new file mode 100644 index 0000000..455233f --- /dev/null +++ b/src/views/monitor/caches/index.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue index 4bb8254..a3492a6 100644 --- a/src/views/monitor/server/index.vue +++ b/src/views/monitor/server/index.vue @@ -1,24 +1,22 @@ + + + + diff --git a/src/views/monitor/server/utils/columns.ts b/src/views/monitor/server/utils/columns.ts new file mode 100644 index 0000000..a953078 --- /dev/null +++ b/src/views/monitor/server/utils/columns.ts @@ -0,0 +1,13 @@ +import { computed } from 'vue'; + +export const cardClass = computed(() => ['list-card-item']); +export const cardLogoClass = computed(() => ['list-card-item_detail--logo']); + +export const svg = ``;