[web-app] bugfix-小部件渲染,新增网站类型监控
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
</a>
|
||||
</nz-breadcrumb-item>
|
||||
<nz-breadcrumb-item>
|
||||
<a [routerLink]="['/monitors']">
|
||||
<a [routerLink]="['/monitors']" [queryParams]="{app: monitor.app ? monitor.app : ''}">
|
||||
<i nz-icon nzType="monitor"></i>
|
||||
<span>监控列表</span>
|
||||
</a>
|
||||
</nz-breadcrumb-item>
|
||||
<nz-breadcrumb-item>
|
||||
<i nz-icon nzType="plus-circle"></i>
|
||||
<i nz-icon nzType="edit"></i>
|
||||
<span>修改 {{monitor.app}} 监控</span>
|
||||
</nz-breadcrumb-item>
|
||||
</nz-breadcrumb>
|
||||
|
||||
@@ -105,12 +105,12 @@ export class MonitorEditComponent implements OnInit {
|
||||
"params": this.params
|
||||
};
|
||||
this.isSpinning = true;
|
||||
this.monitorSvc.newMonitor(addMonitor)
|
||||
this.monitorSvc.editMonitor(addMonitor)
|
||||
.subscribe(message => {
|
||||
this.isSpinning = false;
|
||||
if (message.code === 0) {
|
||||
this.notifySvc.success("修改监控成功", "");
|
||||
this.router.navigateByUrl("/monitors")
|
||||
this.router.navigateByUrl(`/monitors?app=${this.monitor.app}`)
|
||||
} else {
|
||||
this.notifySvc.error("修改监控失败", message.msg);
|
||||
}},
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</a>
|
||||
</nz-breadcrumb-item>
|
||||
<nz-breadcrumb-item>
|
||||
<a [routerLink]="['/monitors']">
|
||||
<a [routerLink]="['/monitors']" [queryParams]="{app: monitor.app ? monitor.app : ''}">
|
||||
<i nz-icon nzType="monitor"></i>
|
||||
<span>监控列表</span>
|
||||
</a>
|
||||
|
||||
@@ -81,7 +81,7 @@ export class MonitorNewComponent implements OnInit {
|
||||
this.isSpinning = false;
|
||||
if (message.code === 0) {
|
||||
this.notifySvc.success("新增监控成功", "");
|
||||
this.router.navigateByUrl("/monitors")
|
||||
this.router.navigateByUrl(`/monitors?app=${this.monitor.app}`)
|
||||
} else {
|
||||
this.notifySvc.error("新增监控失败", message.msg);
|
||||
}},
|
||||
|
||||
Reference in New Issue
Block a user