diff --git a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue index d2bfeb29a..d88cb41c7 100644 --- a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue @@ -395,11 +395,11 @@ export default { selectAlertRuleMetric (val) { if (val === 'Metrics') { this.MetricsType = 1 // type = 1 - this.showSnmpTrap = true // showSnmptrap 为 true 时显示 expr,thershold,unit + this.showSnmpTrap = true // showSnmptrap 为 true 时显示 expr,threshold,unit this.$refs.alertRuleForm.clearValidate('expr') // 移除from表单的 expr 验证 } else if (val === 'Logs') { this.showMetrics = false // showMetrics 为 false 时,展示 Logs label - this.showSnmpTrap = true // showSnmptrap 为 true 时显示 expr,thershold,unit + this.showSnmpTrap = true // showSnmptrap 为 true 时显示 expr,threshold,unit this.MetricsType = 2 // type = 2 this.$refs.alertRuleForm.clearValidate('expr') // 移除from表单的 expr 验证 } else if (val === 'SNMP trap') { diff --git a/nezha-fronted/src/components/page/config/assetMeta.vue b/nezha-fronted/src/components/page/config/assetMeta.vue index 83fbe6bbf..07ab34acb 100644 --- a/nezha-fronted/src/components/page/config/assetMeta.vue +++ b/nezha-fronted/src/components/page/config/assetMeta.vue @@ -223,7 +223,11 @@ export default { this.getGroup() if (selectKey === group.id) { - this.showGroup = -1 + this.showGroup = { + name: this.$t('config.assetLabel.all'), + id: -1, + children: [] + } this.searchLabel.groupIds = '' this.getTableData() this.$refs.selectGroup.$refs.tree.setCurrentKey(this.showGroup)