[alter,webapp]fix 告警定义关联监控问题

This commit is contained in:
tomsun28
2022-01-30 12:34:20 +08:00
parent 89e48395cf
commit e914fd6941
9 changed files with 31 additions and 22 deletions

View File

@@ -307,7 +307,7 @@ export class AlertSettingComponent implements OnInit {
let bindRecode: Record<number, string> = {};
if (defineBindData.data != undefined) {
defineBindData.data.forEach(bind => {
bindRecode[bind.monitorId] = bind.monitorName;
bindRecode[bind.monitorId] = bind.monitor.name;
});
}
let listTmp: any[] = [];
@@ -337,7 +337,6 @@ export class AlertSettingComponent implements OnInit {
let bind = new AlertDefineBind();
bind.alertDefineId = this.currentAlertDefineId;
bind.monitorId = item.id;
bind.monitorName = item.name;
defineBinds.push(bind);
}
});