From 47b5064e57f478432bb463c9d1da3079f053f3ce Mon Sep 17 00:00:00 2001 From: coward Date: Tue, 4 Jun 2024 09:15:34 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E5=9F=BA=E6=9C=AC=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=AE=8C=E7=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/clients.ts | 5 ++ src/views/dashboard/index.vue | 127 +++++++++++++++++++++++++++++++--- src/views/server/server.vue | 20 ++++-- 3 files changed, 136 insertions(+), 16 deletions(-) diff --git a/src/api/clients.ts b/src/api/clients.ts index f8902ed..b10a7dc 100644 --- a/src/api/clients.ts +++ b/src/api/clients.ts @@ -27,3 +27,8 @@ export const saveClient = (data?: object) => { export const deleteClient = (id: string) => { return http.request("delete", baseUri("/client/" + id)); }; + +// 获取客户端链接状态列表 +export const getClientConnects = () => { + return http.request("get", baseUri("/client/status")); +}; diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 61c5f76..50fd83e 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,7 +1,8 @@ - + + + + + + + + + + + + + + diff --git a/src/views/server/server.vue b/src/views/server/server.vue index c98d443..4427803 100644 --- a/src/views/server/server.vue +++ b/src/views/server/server.vue @@ -144,10 +144,10 @@ getGlobalSettingApi(); /> - + - + @@ -177,7 +177,13 @@ getGlobalSettingApi(); - 获取IP + 获取IP