From 3f10ae515d80d1d34e0dd7b4f11084bb4fefa1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9A=93=E6=9C=88=E5=BD=92=E5=B0=98?= Date: Wed, 12 Feb 2025 00:24:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/monitor.ts | 15 +- src/views/monitor/server/index.vue | 298 +++++++++++++++++++++++++++++ 2 files changed, 312 insertions(+), 1 deletion(-) create mode 100644 src/views/monitor/server/index.vue diff --git a/src/api/monitor.ts b/src/api/monitor.ts index 5e54ec0..0652c1c 100644 --- a/src/api/monitor.ts +++ b/src/api/monitor.ts @@ -1,5 +1,9 @@ import { http } from "@/utils/http"; -import type { OperationLogInfo, UserLoginLogInfo } from "types/monitor"; +import type { + OperationLogInfo, + SystemMonitorInfo, + UserLoginLogInfo +} from "types/monitor"; import { filterEmptyObject } from "./utils"; // --------------------------登录日志相关-------------------------------------- @@ -46,3 +50,12 @@ export const getUserOperationsAPI = (params: { } ); }; + +// ------------------------服务相关---------------------------------------- + +/** + * 获取服务器信息 + */ +export const getSystemMonitorInfoAPI = () => { + return http.request("get", "/api/server"); +}; diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue new file mode 100644 index 0000000..ed62876 --- /dev/null +++ b/src/views/monitor/server/index.vue @@ -0,0 +1,298 @@ + + + + +