diff --git a/web-app/src/app/core/startup/startup.service.ts b/web-app/src/app/core/startup/startup.service.ts index bc9871d..f8108be 100644 --- a/web-app/src/app/core/startup/startup.service.ts +++ b/web-app/src/app/core/startup/startup.service.ts @@ -49,7 +49,7 @@ export class StartupService { // Application information: including site name, description, year this.settingService.setApp(appData.app); // User information: including name, avatar, email address - this.settingService.setUser(appData.user); + // this.settingService.setUser(appData.user); // ACL: Set the permissions to full, https://ng-alain.com/acl/getting-started this.aclService.setFull(true); // Menu data, https://ng-alain.com/theme/menu diff --git a/web-app/src/app/pojo/Monitor.ts b/web-app/src/app/pojo/Monitor.ts index 5a56007..64bb57b 100644 --- a/web-app/src/app/pojo/Monitor.ts +++ b/web-app/src/app/pojo/Monitor.ts @@ -4,6 +4,7 @@ export class Monitor { app!: string; host!: string; intervals: number = 600; + // 监控状态 0:未监控,1:可用,2:不可用,3:不可达,4:挂起 status!: number; description!: string; creator!: string; diff --git a/web-app/src/app/routes/monitor/monitor-list/monitor-list.component.html b/web-app/src/app/routes/monitor/monitor-list/monitor-list.component.html index e2e701c..a2d8426 100644 --- a/web-app/src/app/routes/monitor/monitor-list/monitor-list.component.html +++ b/web-app/src/app/routes/monitor/monitor-list/monitor-list.component.html @@ -59,9 +59,35 @@ {{ data.name }} - {{ data.status }} + + + + 未监控 + + + + 正常监控 + + + + 监控不可用 + + + + 监控不可大达 + + + + 监控已挂起 + + {{ data.host }} - {{ data.app }} + + + + {{ data.app }} + + {{ data.gmtUpdate? data.gmtUpdate : data.gmtCreate }}