diff --git a/frontend/src/api/interface/setting.ts b/frontend/src/api/interface/setting.ts index b55871c8e..75a40551b 100644 --- a/frontend/src/api/interface/setting.ts +++ b/frontend/src/api/interface/setting.ts @@ -241,6 +241,18 @@ export namespace Setting { isBound: boolean; name: string; } + export interface SimpleNodeItem { + id: number; + name: string; + addr: string; + description: string; + systemVersion: string; + securityEntrance: string; + cpuUsedPercent: number; + cpuTotal: number; + memoryTotal: number; + memoryUsedPercent: number; + } export interface ReleasesNotes { Version: string; CreatedAt: string; diff --git a/frontend/src/api/modules/setting.ts b/frontend/src/api/modules/setting.ts index b6e33a692..103f3834e 100644 --- a/frontend/src/api/modules/setting.ts +++ b/frontend/src/api/modules/setting.ts @@ -47,6 +47,9 @@ export const listNodeOptions = (type: string) => { export const listAllNodes = () => { return http.get>(`/core/nodes/all`); }; +export const listAllSimpleNodes = () => { + return http.get>(`/core/nodes/simple/all`); +}; export const getLicenseSmsInfo = () => { return http.get(`/core/licenses/sms/info`); diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 88e7ad4f2..fcf17d668 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -70,7 +70,7 @@ - - - - + + + + + + + + + + + + + @@ -242,7 +306,7 @@