fix: 修改 alertRule 关联 dashboard后 dashboard 在alertMessageInfo不显示的问题

This commit is contained in:
zhangyu
2023-06-09 13:39:33 +08:00
parent 7cb3a7e521
commit e41207305b
4 changed files with 6 additions and 1 deletions

View File

@@ -155,6 +155,7 @@
:chart-info="chartInfo"
:from="fromRoute.alertMessage"
:filter="{}"
:currentMsg="currentMsg"
:is-fullscreen="true"
:time-range="searchTimeDialog"
@showFullscreen="showFullscreen"
@@ -599,6 +600,7 @@ export default {
// this.sign = Number(row.alertRule.id)
this.$get('/alert/rule/' + row.alertRule.id).then(res => {
this.currentMsg = { ...row, alertRule: { ...res.data } }
console.log(this.currentMsg)
this.$nextTick(() => {
this.searchTimeDialog = [bus.computeTimezoneTime(new Date().getTime() - 1 * 60 * 60 * 1000), bus.computeTimezoneTime(new Date().getTime())]
this.$store.dispatch('dispatchPanelTime', {