NEZ-3170 feat:alert rule 配置页面增加 data link 配置项

This commit is contained in:
zyh
2023-09-07 15:28:10 +08:00
parent aced0fc165
commit 7a58b32c0a
5 changed files with 285 additions and 244 deletions

View File

@@ -644,6 +644,12 @@ export default {
}
chartInfo.elements && (chartInfo.elements[0].expression = this.currentMsg.alertRule.expr.replace(/\r|\n+/g, ''))
}
// 设置dataLink
if (this.currentMsg.alertRule.param) {
chartInfo.param.dataLink = this.currentMsg.alertRule.param.dataLink
}
chartInfo.id = this.currentMsg.id
chartInfo.name = this.currentMsg.alertRule.name
chartInfo.isAlertMessage = true