fix;修改 silence的时间问题

This commit is contained in:
zhangyu
2021-05-10 19:04:39 +08:00
parent c09453c25c
commit 8985c42789
3 changed files with 37 additions and 2 deletions

View File

@@ -225,6 +225,8 @@ export default {
}
const params = { ...this.editAlertSilence, matchers: JSON.stringify(this.editAlertSilence.matchers) }
if (valid) {
params.startAt = bus.timeFormate(new Date(this.timezoneToUtcTime(params.startAt)))
params.endAt = bus.timeFormate(new Date(this.timezoneToUtcTime(params.endAt)))
if (this.editAlertSilence.id) {
this.$put('/alert/silence', params).then(response => {
this.prevent_opt.save = false