[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="删除监控"> <button nz-button nzType="primary" (click)="onDeleteOneMonitor(data.id)" nz-tooltip nzTooltipTitle="删除监控">
<i nz-icon nzType="delete" nzTheme="outline"></i> <i nz-icon nzType="delete" nzTheme="outline"></i>
</button> </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> <i nz-icon nzType="up-circle" nzTheme="outline"></i>
</button> </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> <i nz-icon nzType="down-circle" nzTheme="outline"></i>
</button> </button>
</td> </td>

View File

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