Commit 0df53618 authored by xiaowenjie's avatar xiaowenjie

修改监控项

parent 05227be3
......@@ -29,19 +29,19 @@
</div>
<div class="releative" #checkEle>
<div #colorEle class="checkTags tag-form">
<span> <nz-tag [nzColor]="color.green"></nz-tag>
<span (click)="getCheckList(0)"> <nz-tag [nzColor]="color.green"></nz-tag>
<i *ngIf="!checkStatus.normal && checkStatus.normal !=0" class="anticon anticon-spin anticon-loading" style="font-size: 15px;"></i>
{{checkStatus.normal}}
</span>
<span> <nz-tag [nzColor]="color.yellow"></nz-tag>
<span (click)="getCheckList(1)"> <nz-tag [nzColor]="color.yellow"></nz-tag>
<i *ngIf="!checkStatus.warning && checkStatus.warning !=0" class="anticon anticon-spin anticon-loading" style="font-size: 15px;"></i>
{{checkStatus.warning}}
</span>
<span> <nz-tag [nzColor]="color.red"></nz-tag>
<span (click)="getCheckList(2)"> <nz-tag [nzColor]="color.red"></nz-tag>
<i *ngIf="!checkStatus.high && checkStatus.high !=0" class="anticon anticon-spin anticon-loading" style="font-size: 15px;"></i>
{{checkStatus.high}}
</span>
<span> <nz-tag [nzColor]="color.gray"></nz-tag>
<span (click)="getCheckList(3)"> <nz-tag [nzColor]="color.gray"></nz-tag>
<i *ngIf="!checkStatus.disabled && checkStatus.disabled !=0" class="anticon anticon-spin anticon-loading" style="font-size: 15px;"></i>
{{checkStatus.disabled}}
</span>
......
......@@ -614,7 +614,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
//添加or编辑监测点 之后
getList(){
this.getCheckList();
this.getCheckList(null);
this.findItemType();
}
......@@ -645,7 +645,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
}
//监测点列表
getCheckList() {
getCheckList(state) {
this.getCheckStatus();
this.loading = true;
const data = {
......@@ -654,6 +654,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
obj:{
applicationid: this.applicationId,
hostid: this.hostId,
state:state
}
};
this.overAllSer.findCheckByType(data).subscribe(
......@@ -668,13 +669,13 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
//分页
change(e) {
this.pageIndex = e;
this.getCheckList();
this.getCheckList(null);
}
changeType(type) {
this.pageIndex = 1;
this.applicationId = type;
this.getCheckList();
this.getCheckList(null);
}
//监测点状态
......@@ -703,7 +704,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
(res) => {
if (res.errCode == 10000) {
this.message.info('删除成功');
this.getCheckList();
this.getCheckList(null);
} else {
this.message.info(res.errMsg);
}
......@@ -805,7 +806,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
this.overAllSer.itemUpdate(data).subscribe(
(res) => {
if (res.errCode == 10000) {
this.getCheckList();
this.getCheckList(null);
}
this.message.info(res.errMsg);
}
......
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