From b8f4a2b5eb2653a77d57109bdca3bdcacb368d81 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 12 Apr 2023 16:15:29 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2762=20fix=EF=BC=9A=20=E5=8F=96=E6=B6=88=20?= =?UTF-8?q?priority?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/project/L5/topologyTopTool.scss | 11 ++++- .../common/alert/alertRuleInfo2.vue | 28 ++++++------- .../common/globalSearch/searchItemInfo.vue | 40 ++++++++++--------- 3 files changed, 45 insertions(+), 34 deletions(-) diff --git a/nezha-fronted/src/assets/css/components/common/project/L5/topologyTopTool.scss b/nezha-fronted/src/assets/css/components/common/project/L5/topologyTopTool.scss index 9d348ea29..ae1b10c3a 100644 --- a/nezha-fronted/src/assets/css/components/common/project/L5/topologyTopTool.scss +++ b/nezha-fronted/src/assets/css/components/common/project/L5/topologyTopTool.scss @@ -29,6 +29,7 @@ .top-tool-item { cursor: pointer; + color: $--button-icon-color; background-color: $--background-color-empty; border: 1px solid $--button-icon-border-color; border-radius: 2px; @@ -39,11 +40,19 @@ .top-tool-item:active{ background-color: $--button-icon-active-background-color; border: 1px solid $--button-icon-active-border-color !important; - color: $--color-primary; + color: $--color-primary !important; + .nz-icon { + color: $--color-primary; + } } .top-tool-item.nz-btn-disabled { + color: $--button-icon-color !important; background-color: $--background-color-empty !important; border: 1px solid $--button-icon-border-color !important; + .nz-icon { + color: $--color-text-regular; + } + } .is-active-meta2d.top-tool-item { //background: mix(#FFF, $--background-color-disabled, 35%); diff --git a/nezha-fronted/src/components/common/alert/alertRuleInfo2.vue b/nezha-fronted/src/components/common/alert/alertRuleInfo2.vue index 4611b63ac..d8b8ade78 100644 --- a/nezha-fronted/src/components/common/alert/alertRuleInfo2.vue +++ b/nezha-fronted/src/components/common/alert/alertRuleInfo2.vue @@ -37,20 +37,20 @@ -- -
-
{{$t('alert.severity')}}
-
-
- {{priority.name}} {{position.operator || '>'}} {{priority.value || '-'}} -
-
-
+ + + + + + + + + + + + + +
{{$t('alert.config.expr')}}
{{alertRuleData.expr ? (alertRuleData.expr + alertRuleData.operator + formatThreshold(alertRuleData.threshold,alertRuleData.unit)) : '--'}}
diff --git a/nezha-fronted/src/components/common/globalSearch/searchItemInfo.vue b/nezha-fronted/src/components/common/globalSearch/searchItemInfo.vue index d09b3c9eb..7861b8e93 100644 --- a/nezha-fronted/src/components/common/globalSearch/searchItemInfo.vue +++ b/nezha-fronted/src/components/common/globalSearch/searchItemInfo.vue @@ -63,20 +63,20 @@
-
- - + + + + + + + + + + + + -
- {{priority.name}} {{position.operator || '>'}} {{priority.value || '-'}} -
-
+
@@ -400,12 +400,14 @@ export default { }, { key: 'type', label: this.$t('overall.type') - }, { - key: 'severityId', - label: this.$t('alert.severity'), - color: this.severityColor, - icon: 'nz-icon nz-icon-circle fz12' - }, { + }, + // { + // key: 'severityId', + // label: this.$t('alert.severity'), + // color: this.severityColor, + // icon: 'nz-icon nz-icon-circle fz12' + // }, + { key: 'expr', label: this.$t('alert.config.expr') }, {