diff --git a/nezha-fronted/src/components/common/dialog/alertSilenceBox.vue b/nezha-fronted/src/components/common/dialog/alertSilenceBox.vue deleted file mode 100644 index de9e6e4f8..000000000 --- a/nezha-fronted/src/components/common/dialog/alertSilenceBox.vue +++ /dev/null @@ -1,444 +0,0 @@ - - - - - diff --git a/nezha-fronted/src/components/common/mixin/dataList.js b/nezha-fronted/src/components/common/mixin/dataList.js index 1a62e87bc..87c45a367 100644 --- a/nezha-fronted/src/components/common/mixin/dataList.js +++ b/nezha-fronted/src/components/common/mixin/dataList.js @@ -217,6 +217,7 @@ export default { this.blankSilenceObject.startAt = bus.timeFormate(bus.getOffsetTimezoneData(), 'yyyy-MM-dd hh:mm:ss') this.blankSilenceObject.endAt = bus.timeFormate(bus.getOffsetTimezoneData(1), 'yyyy-MM-dd hh:mm:ss') this.objectSilence = JSON.parse(JSON.stringify(this.blankSilenceObject)) + this.objectSilence.name = 'Quick silence' if (type !== 'alertMessage' && type !== 'alertRule') { this.objectSilence.matchers = [ { name: type, value: row.name, regex: 0 }, diff --git a/nezha-fronted/src/components/page/alert/alertMessage.vue b/nezha-fronted/src/components/page/alert/alertMessage.vue index 480f847a6..30aa59823 100644 --- a/nezha-fronted/src/components/page/alert/alertMessage.vue +++ b/nezha-fronted/src/components/page/alert/alertMessage.vue @@ -95,9 +95,8 @@ - - - + +