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 @@ + + + + +