From ed5eae3489abbee315cb828fd8e3a366fd289f04 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Mon, 21 Mar 2022 18:07:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=E4=BF=AE=E5=A4=8D=20i?= =?UTF-8?q?pam=20ip=20=E4=BA=8C=E7=BA=A7=E8=8F=9C=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../css/components/common/rightBox/ipam.scss | 14 ++++++++++ .../components/common/bottomBox/bottomBox.vue | 4 +-- .../bottomBox/tabs/alertMessageTabNew.vue | 5 +++- .../common/rightBox/ipDetailsBox.vue | 26 +++++++++++++++++-- .../common/table/settings/ipDetailsTable.vue | 16 +++++++++++- 5 files changed, 59 insertions(+), 6 deletions(-) diff --git a/nezha-fronted/src/assets/css/components/common/rightBox/ipam.scss b/nezha-fronted/src/assets/css/components/common/rightBox/ipam.scss index 58281a018..029964ee1 100644 --- a/nezha-fronted/src/assets/css/components/common/rightBox/ipam.scss +++ b/nezha-fronted/src/assets/css/components/common/rightBox/ipam.scss @@ -24,3 +24,17 @@ white-space:nowrap; width: 199px; } +.ip-detail-available,.ip-detail-transient,.ip-detail-used { + font-size: 12px; + margin-right: 3px; + display: inline-block; +} +.ip-detail-used { + color: $--color-danger !important; +} +.ip-detail-transient { + color:$--color-silence !important; +} +.ip-detail-available { + color:$--color-success !important; +} diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index e9dad029b..a0266a7c8 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -254,10 +254,10 @@ export default { { prop: 'agent', name: this.$t('config.agent.scrapeEndpoint'), active: true } ], ipam: [ - { prop: 'ipam', name: this.$t('config.ipam.ipDetails'), active: true } + { prop: 'ipam', name: this.$t('ipam.subnet.ipDetails'), active: true } ], alertSilence: [ - { prop: 'alertMessageTab', name: this.$t('config.ipam.alertSilence'), active: true } + { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: true } ] } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue index 371880a00..61abbd155 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue @@ -16,7 +16,7 @@ >