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 = ``;