[web-app]纳管修改为监控表述

This commit is contained in:
tomsun28
2022-03-12 19:36:49 +08:00
parent 6c69da92f6
commit 4ce0698834
2 changed files with 13 additions and 13 deletions

View File

@@ -109,10 +109,10 @@
<button nz-button nzType="primary" (click)="onDeleteOneMonitor(data.id)" nz-tooltip nzTooltipTitle="删除监控">
<i nz-icon nzType="delete" nzTheme="outline"></i>
</button>
<button nz-button nzType="primary" (click)="onEnableManageOneMonitor(data.id)" nz-tooltip nzTooltipTitle="启用纳管">
<button nz-button nzType="primary" (click)="onEnableManageOneMonitor(data.id)" nz-tooltip nzTooltipTitle="启用监控">
<i nz-icon nzType="up-circle" nzTheme="outline"></i>
</button>
<button nz-button nzType="primary" (click)="onCancelManageOneMonitor(data.id)" nz-tooltip nzTooltipTitle="取消纳管">
<button nz-button nzType="primary" (click)="onCancelManageOneMonitor(data.id)" nz-tooltip nzTooltipTitle="取消监控">
<i nz-icon nzType="down-circle" nzTheme="outline"></i>
</button>
</td>

View File

@@ -154,7 +154,7 @@ export class MonitorListComponent implements OnInit {
return;
}
this.modal.confirm({
nzTitle: '请确认是否批量取消纳管',
nzTitle: '请确认是否批量取消监控',
nzOkText: '确定',
nzCancelText: '取消',
nzOkDanger: true,
@@ -167,7 +167,7 @@ export class MonitorListComponent implements OnInit {
let monitors = new Set<number>();
monitors.add(monitorId);
this.modal.confirm({
nzTitle: '请确认是否取消纳管',
nzTitle: '请确认是否取消监控',
nzOkText: '确定',
nzCancelText: '取消',
nzOkDanger: true,
@@ -182,28 +182,28 @@ export class MonitorListComponent implements OnInit {
message => {
cancelManage$.unsubscribe();
if (message.code === 0) {
this.notifySvc.success('取消纳管成功!', '');
this.notifySvc.success('取消监控成功!', '');
this.loadMonitorTable();
} else {
this.tableLoading = false;
this.notifySvc.error('取消纳管失败!', message.msg);
this.notifySvc.error('取消监控失败!', message.msg);
}
},
error => {
this.tableLoading = false;
cancelManage$.unsubscribe();
this.notifySvc.error('取消纳管失败!', error.msg);
this.notifySvc.error('取消监控失败!', error.msg);
}
);
}
onEnableManageMonitors() {
if (this.checkedMonitorIds == null || this.checkedMonitorIds.size === 0) {
this.notifySvc.warning('未选中任何待启用纳管项!', '');
this.notifySvc.warning('未选中任何待启用监控项!', '');
return;
}
this.modal.confirm({
nzTitle: '请确认是否批量启用纳管',
nzTitle: '请确认是否批量启用监控',
nzOkText: '确定',
nzCancelText: '取消',
nzOkDanger: true,
@@ -216,7 +216,7 @@ export class MonitorListComponent implements OnInit {
let monitors = new Set<number>();
monitors.add(monitorId);
this.modal.confirm({
nzTitle: '请确认是否启用纳管',
nzTitle: '请确认是否启用监控',
nzOkText: '确定',
nzCancelText: '取消',
nzOkDanger: true,
@@ -231,17 +231,17 @@ export class MonitorListComponent implements OnInit {
message => {
enableManage$.unsubscribe();
if (message.code === 0) {
this.notifySvc.success('启用纳管成功!', '');
this.notifySvc.success('启用监控成功!', '');
this.loadMonitorTable();
} else {
this.tableLoading = false;
this.notifySvc.error('启用纳管失败!', message.msg);
this.notifySvc.error('启用监控失败!', message.msg);
}
},
error => {
this.tableLoading = false;
enableManage$.unsubscribe();
this.notifySvc.error('启用纳管失败!', error.msg);
this.notifySvc.error('启用监控失败!', error.msg);
}
);
}