Commit 6a2598a2 authored by wangqinghua's avatar wangqinghua

update

parent 506a7207
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
nzPlaceHolder="结束时间" nzPlaceHolder="结束时间"
></nz-date-picker> ></nz-date-picker>
</div> </div>
<div nz-col nzSpan="2" class="text-right">
<button (click)="search()" nz-button nzType="default"><i class="anticon anticon-search"
style="color: #6097b7"></i>搜索</button>
</div>
</div> </div>
</div> </div>
......
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
nzPlaceHolder="结束时间" nzPlaceHolder="结束时间"
></nz-date-picker> ></nz-date-picker>
</div> </div>
<div nz-col nzSpan="2" class="text-right">
<button (click)="search()" nz-button nzType="default"><i class="anticon anticon-search"
style="color: #6097b7"></i>搜索</button>
</div>
</div> </div>
</div> </div>
......
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
nzPlaceHolder="结束时间" nzPlaceHolder="结束时间"
></nz-date-picker> ></nz-date-picker>
</div> </div>
<div nz-col nzSpan="2" class="text-right">
<button (click)="search()" nz-button nzType="default"><i class="anticon anticon-search"
style="color: #6097b7"></i>搜索</button>
</div>
</div> </div>
</div> </div>
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
</nz-breadcrumb> </nz-breadcrumb>
</div> </div>
<div nz-col nzSpan="8" class="text-right"> <div nz-col nzSpan="8" class="text-right">
<button (click)="search()" nz-button nzType="primary"><i class="anticon anticon-search"></i></button>
<button (click)="ngOnInit()" nz-button nzType="primary"><i class="anticon anticon-sync"></i></button> <button (click)="ngOnInit()" nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>
<smart-full-screen></smart-full-screen> <smart-full-screen></smart-full-screen>
</div> </div>
......
...@@ -27,17 +27,4 @@ export class OperationWorkComponent implements OnInit { ...@@ -27,17 +27,4 @@ export class OperationWorkComponent implements OnInit {
ngOnInit() { ngOnInit() {
} }
search(){
if(this.type == "1"){
this.smartAnalysisstatus.search();
}
if(this.type == "2"){
this.smartAnalysisEvent.search();
}
if(this.type == "3"){
this.smartAnalysisDeal.search();
}
}
} }
...@@ -64,6 +64,8 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -64,6 +64,8 @@ export class ResourceAlarmComponent implements OnInit {
(res) => { (res) => {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.groupList = res.data; this.groupList = res.data;
this.obj.groupid = this.groupList[0].groupid;
this.getData();
} }
} }
); );
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
</nz-breadcrumb> </nz-breadcrumb>
</div> </div>
<div nz-col nzSpan="8" class="text-right"> <div nz-col nzSpan="8" class="text-right">
<button (click)="search()" nz-button nzType="primary"><i class="anticon anticon-search"></i></button>
<button (click)="ngOnInit()" nz-button nzType="primary"><i class="anticon anticon-sync"></i></button> <button (click)="ngOnInit()" nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>
<smart-full-screen></smart-full-screen> <smart-full-screen></smart-full-screen>
</div> </div>
...@@ -49,6 +48,10 @@ ...@@ -49,6 +48,10 @@
nzPlaceHolder="结束时间" nzPlaceHolder="结束时间"
></nz-date-picker> ></nz-date-picker>
</div> </div>
<div nz-col nzSpan="2" class="text-right">
<button (click)="search()" nz-button nzType="default"><i class="anticon anticon-search"
style="color: #6097b7"></i>搜索</button>
</div>
</div> </div>
<div style="margin-top: 30px" nz-row nzGutter="4"> <div style="margin-top: 30px" nz-row nzGutter="4">
<div nz-col nzSpan="12"> <div nz-col nzSpan="12">
......
...@@ -53,6 +53,8 @@ export class ResourceUsabilComponent implements OnInit { ...@@ -53,6 +53,8 @@ export class ResourceUsabilComponent implements OnInit {
this.obj.groupid = this.groupList[0].groupid + ''; this.obj.groupid = this.groupList[0].groupid + '';
this.getTopEcharts(); this.getTopEcharts();
this.getLastEcharts(); this.getLastEcharts();
}else{
this.message.error(res.errMsg);
} }
} }
); );
...@@ -66,6 +68,8 @@ export class ResourceUsabilComponent implements OnInit { ...@@ -66,6 +68,8 @@ export class ResourceUsabilComponent implements OnInit {
if(res.errCode == 10000){ if(res.errCode == 10000){
this.topList = res.data; this.topList = res.data;
this.setTopEcharts(); this.setTopEcharts();
}else{
this.message.error(res.errMsg);
} }
} }
); );
...@@ -109,6 +113,8 @@ export class ResourceUsabilComponent implements OnInit { ...@@ -109,6 +113,8 @@ export class ResourceUsabilComponent implements OnInit {
if(res.errCode == 10000){ if(res.errCode == 10000){
this.lastList = res.data; this.lastList = res.data;
this.setLastEcharts(); this.setLastEcharts();
}else{
this.message.error(res.errMsg);
} }
} }
); );
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<nz-form-item nzFlex> <nz-form-item nzFlex>
<nz-form-label [nzOffset]="4" [nzSpan]="6" nzRequired nzFor="showName">显示名</nz-form-label> <nz-form-label [nzOffset]="4" [nzSpan]="6" nzRequired nzFor="showName">显示名</nz-form-label>
<nz-form-control [nzSpan]="14"> <nz-form-control [nzSpan]="14">
<input id="showName" nz-input placeholder="显示名" name="showName" [(ngModel)]="validateForm.name"> <input nz-input placeholder="显示名" name="showName" [(ngModel)]="validateForm.name">
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
</div> </div>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSpan]="4" nzRequired nzFor="hostAdrress">IP地址</nz-form-label> <nz-form-label [nzSpan]="4" nzRequired nzFor="hostAdrress">IP地址</nz-form-label>
<nz-form-control [nzSpan]="14"> <nz-form-control [nzSpan]="14">
<input id="hostAdrress" type="text" nz-input name="hostAdrress" [(ngModel)]="validateForm.host"> <input type="text" nz-input name="hostAdrress" [(ngModel)]="validateForm.host">
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
......
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