From 0cd8b3ae029df459cdbb5f8de7292c80975373bb Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Fri, 15 Dec 2023 00:44:03 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=AE=BE=E7=BD=AE=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/vo/AuthorizedHostWrapperVO.java | 2 +- orion-ops-ui/src/assets/style/global.less | 6 + .../terminal/assets/styles/layout.less | 5 +- .../new-connection/host-group-view.vue | 81 ++++----- .../components/new-connection/host-list.vue | 172 ++++++++++++++++++ 5 files changed, 219 insertions(+), 47 deletions(-) create mode 100644 orion-ops-ui/src/views/host-ops/terminal/components/new-connection/host-list.vue diff --git a/orion-ops-module-asset/orion-ops-module-asset-service/src/main/java/com/orion/ops/module/asset/entity/vo/AuthorizedHostWrapperVO.java b/orion-ops-module-asset/orion-ops-module-asset-service/src/main/java/com/orion/ops/module/asset/entity/vo/AuthorizedHostWrapperVO.java index e75023da..fb3e4355 100644 --- a/orion-ops-module-asset/orion-ops-module-asset-service/src/main/java/com/orion/ops/module/asset/entity/vo/AuthorizedHostWrapperVO.java +++ b/orion-ops-module-asset/orion-ops-module-asset-service/src/main/java/com/orion/ops/module/asset/entity/vo/AuthorizedHostWrapperVO.java @@ -21,7 +21,7 @@ import java.util.Set; @Builder @NoArgsConstructor @AllArgsConstructor -@Schema(name = "AuthorizedHostGroupWrapperVO", description = "已授权的主机分组 视图响应对象") +@Schema(name = "AuthorizedHostWrapperVO", description = "已授权的主机分组 视图响应对象") public class AuthorizedHostWrapperVO { @Schema(description = "授权的主机分组") diff --git a/orion-ops-ui/src/assets/style/global.less b/orion-ops-ui/src/assets/style/global.less index 1f39c853..4ac86c3b 100644 --- a/orion-ops-ui/src/assets/style/global.less +++ b/orion-ops-ui/src/assets/style/global.less @@ -66,6 +66,12 @@ body { } } +// flex +.flex-center { + display: flex; + align-items: center; +} + // -- click-icon .click-icon-wrapper { display: flex; diff --git a/orion-ops-ui/src/views/host-ops/terminal/assets/styles/layout.less b/orion-ops-ui/src/views/host-ops/terminal/assets/styles/layout.less index e1f7220f..c063d83a 100644 --- a/orion-ops-ui/src/views/host-ops/terminal/assets/styles/layout.less +++ b/orion-ops-ui/src/views/host-ops/terminal/assets/styles/layout.less @@ -206,13 +206,14 @@ body[terminal-theme='dark'] .host-layout { // 终端设置容器 .terminal-setting-container { padding: 32px 16px 16px 16px; - width: fit-content; - margin: auto; + width: 100%; display: flex; flex-direction: column; .terminal-setting-wrapper { min-width: 932px; + max-width: 90%; + margin: 0 auto; position: relative; } diff --git a/orion-ops-ui/src/views/host-ops/terminal/components/new-connection/host-group-view.vue b/orion-ops-ui/src/views/host-ops/terminal/components/new-connection/host-group-view.vue index fe6d427e..f7226b79 100644 --- a/orion-ops-ui/src/views/host-ops/terminal/components/new-connection/host-group-view.vue +++ b/orion-ops-ui/src/views/host-ops/terminal/components/new-connection/host-group-view.vue @@ -1,38 +1,23 @@ @@ -46,6 +31,7 @@ + + + +