Commit 6d2cfffe authored by wangqinghua's avatar wangqinghua

workService

parent 63ce9507
......@@ -334,7 +334,7 @@ export class BasicEditComponent implements OnInit {
this.interfaceslist.splice(index, 1);
}
// agent:10050 SNMP:161 JMX:12345 IPMI:623
// agent:161 SNMP:161 JMX:12345 IPMI:623
changePort(index) {
switch (this.interfaceslist[index].type) {
case '1': {
......
......@@ -116,8 +116,6 @@
<td class="round-tag tag-form" >
<nz-tag *ngIf="item.status == 0" [nzColor]="color.green"></nz-tag>
<nz-tag *ngIf="item.status == 1" [nzColor]="color.gray"></nz-tag>
<!--<span *ngIf="item.status == 0">已监控</span>-->
<!--<span *ngIf="item.status == 1">未监控</span>-->
</td>
<td>
<ng-container *ngIf="item.level">
......
......@@ -278,14 +278,18 @@ export class BasicComponent implements OnInit {
}
//删除单个资源
showDeleteConfirm(data) {
showDeleteConfirm(item) {
this.modalService.confirm({
nzTitle: '删除',
nzContent: '<b style="color: red;">确认删除该资源吗?</b>',
nzOkText: '确定',
nzOkType: 'danger',
nzOnOk: () => {
this.overAllSer.deleteHostGet(data.hostid).subscribe(
const data = {
hostids:[]
};
data.hostids.push(item.hostid);
this.overAllSer.deleteHostPost(data).subscribe(
(res) => {
if (res.errCode == 10000) {
this.message.info('删除成功');
......@@ -315,7 +319,7 @@ export class BasicComponent implements OnInit {
nzOnOk: () => {
const data = {
hostids:this.batchDelList
}
};
this.overAllSer.deleteHostPost(data).subscribe(
(res) => {
if (res.errCode == 10000) {
......
......@@ -19,8 +19,8 @@
<button nz-button nzType="primary"><i class="anticon anticon-arrows-alt"></i></button>
</div>
</div>
<div nz-row>
<div class="content-params">
<div nz-row>
<div nz-col class="text-right" nzSpan="3">
事件编号前缀
</div>
......@@ -30,9 +30,9 @@
<button *ngIf="isDisabled" (click)="editType()" nz-button nzType="default">编辑</button>
<button *ngIf="!isDisabled" (click)="saveType()" nz-button nzType="default">保存</button>
</div>
</div>
</div>
<div nz-row>
<div nz-row>
<div nz-col class="text-right" nzSpan="3">
事件分类
</div>
......@@ -47,9 +47,9 @@
<span (click)="deleteItem(item)">删除</span>
</div>
</div>
</div>
</div>
<div nz-row>
<div nz-row>
<div nz-col class="text-right" nzSpan="3">
计划分类
</div>
......@@ -64,8 +64,8 @@
<span (click)="deleteItem(item)">删除</span>
</div>
</div>
</div>
</div>
<smart-params-type #smartParamstype (done)="getList()"></smart-params-type>
......@@ -7,7 +7,13 @@ import {CommonService} from '../../shared/common/common.service';
@Component({
selector: 'smart-pararms',
templateUrl: './pararms.component.html',
styles: []
styles: [
`
:host ::ng-deep .content-params .ant-row{
margin: 10px 0;
}
`
]
})
export class PararmsComponent implements OnInit {
@ViewChild('smartParamstype') smartParamstype:ParamsTypeComponent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment