Commit 0df53618 authored by xiaowenjie's avatar xiaowenjie

修改监控项

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