From 6bab19d37b0174b1e4ca873c8e3fa4ac8179a588 Mon Sep 17 00:00:00 2001 From: zyh Date: Tue, 2 Jul 2024 13:52:33 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-3492=20feat:=20=E6=9B=B4=E6=96=B0Data=20cen?= =?UTF-8?q?ter=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../css/components/common/rightBox/dcBox.scss | 38 ++ .../src/assets/css/components/index.scss | 1 + .../src/components/common/rightBox/dcBox.vue | 379 ++++++++++++++---- 3 files changed, 330 insertions(+), 88 deletions(-) create mode 100644 nezha-fronted/src/assets/css/components/common/rightBox/dcBox.scss diff --git a/nezha-fronted/src/assets/css/components/common/rightBox/dcBox.scss b/nezha-fronted/src/assets/css/components/common/rightBox/dcBox.scss new file mode 100644 index 000000000..4e474c0ef --- /dev/null +++ b/nezha-fronted/src/assets/css/components/common/rightBox/dcBox.scss @@ -0,0 +1,38 @@ +.right-box-dc{ + .subnet-list{ + .subnet-row{ + display: flex; + align-items: center; + justify-content: space-between; + .subnet-addr{ + width: 36%; + } + .subnet-remark{ + width: 56%; + } + .subnet-del{ + width: 5%; + height: 28px; + margin-bottom: 16px; + display: flex; + align-items: center; + i{ + cursor: pointer; + } + } + } + } + .subnet-add{ + width: 16px; + height: 18px; + line-height: 18px; + text-align: center; + } +} +.ipSubnet-pop{ + font-size: 12px; + line-height: 16px; + p span:last-of-type{ + margin-left: 8px; + } +} \ No newline at end of file diff --git a/nezha-fronted/src/assets/css/components/index.scss b/nezha-fronted/src/assets/css/components/index.scss index 0ac5a2ea4..88c661e11 100644 --- a/nezha-fronted/src/assets/css/components/index.scss +++ b/nezha-fronted/src/assets/css/components/index.scss @@ -62,6 +62,7 @@ @import './common/rightBox/moduleBox.scss'; @import './common/rightBox/pipelineSelect.scss'; @import './common/rightBox/ipam.scss'; +@import './common/rightBox/dcBox.scss'; @import './common/rightBox/assetMetaBox.scss'; @import './common/rightBox/chartRightBox/chartRightBox.scss'; @import './common/rightBox/mibBox.scss'; diff --git a/nezha-fronted/src/components/common/rightBox/dcBox.vue b/nezha-fronted/src/components/common/rightBox/dcBox.vue index 5fd439b32..db8ff454b 100644 --- a/nezha-fronted/src/components/common/rightBox/dcBox.vue +++ b/nezha-fronted/src/components/common/rightBox/dcBox.vue @@ -1,78 +1,206 @@