[alter,webapp]fix 告警定义关联监控问题
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { Monitor } from './Monitor';
|
||||
|
||||
export class AlertDefineBind {
|
||||
id!: number;
|
||||
alertDefineId!: number;
|
||||
monitorId!: number;
|
||||
monitorName!: string;
|
||||
monitor!: Monitor;
|
||||
gmtCreate!: number;
|
||||
gmtUpdate!: number;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -103,7 +103,7 @@ export class UserLoginComponent implements OnDestroy {
|
||||
.post<Message<any>>('/account/auth/form', {
|
||||
type: this.type,
|
||||
identifier: this.userName.value,
|
||||
password: this.password.value
|
||||
credential: this.password.value
|
||||
})
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
|
||||
Reference in New Issue
Block a user