diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue index 9538739..d79460e 100644 --- a/src/views/monitor/server/index.vue +++ b/src/views/monitor/server/index.vue @@ -1,10 +1,9 @@ + + + + diff --git a/src/views/monitor/server/utils/hooks.ts b/src/views/monitor/server/utils/hooks.ts index d8e8805..95c0b90 100644 --- a/src/views/monitor/server/utils/hooks.ts +++ b/src/views/monitor/server/utils/hooks.ts @@ -2,9 +2,10 @@ import { fetchSystemHealthList, fetchSystemInfo } from '@/api/v1/actuator'; import { ref } from 'vue'; -export const datalist = ref([]); +// 系统服务信息 +export const systemServerInfo = ref({}); // 系统运行信息 -export const info = ref({ java: { vendor: {}, runtime: {}, jvm: {} }, os: {} }); +export const info = ref({}); export const loading = ref(false); /** 获取系统服务数据 */ @@ -12,13 +13,7 @@ export const onSearch = async () => { loading.value = true; // 获取系统运行状态信息 - const result = await fetchSystemHealthList(); - datalist.value = Object.entries(result.components).map(([key, value]: any) => ({ - type: key, - key: `${key}`, - status: value.status === 'UP', - details: value.details && Object.entries(value.details).map(([key, value]: any) => ({ key, value })), - })); + systemServerInfo.value = await fetchSystemHealthList(); // 系统信息 info.value = await fetchSystemInfo(); diff --git a/src/views/monitor/userLoginLog/utils/columns.ts b/src/views/monitor/userLoginLog/utils/columns.ts index 57796a8..24b9b60 100644 --- a/src/views/monitor/userLoginLog/utils/columns.ts +++ b/src/views/monitor/userLoginLog/utils/columns.ts @@ -10,7 +10,7 @@ export const columns: TableColumnList = [ // 登录Ip { label: $t('userLoginLog_ipAddress'), prop: 'ipAddress', width: 130 }, // 登录Ip归属地 - { label: $t('userLoginLog_ipRegion'), prop: 'ipRegion', width: 100 }, + { label: $t('userLoginLog_ipRegion'), prop: 'ipRegion', width: 160 }, // 登录时代理 { label: $t('userLoginLog_userAgent'), prop: 'userAgent' }, // 操作类型