Commit 0ba933d8 authored by wangqinghua's avatar wangqinghua

update

parent f97789e1
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
</tbody> </tbody>
</nz-table> </nz-table>
<nz-modal [(nzVisible)]="isVisiable" nzWidth="780" [nzTitle]="title" [nzFooter]="null" (nzOnCancel)="handleCancel()"> <nz-modal [(nzVisible)]="isVisiable" nzWidth="780" [nzTitle]="title" [nzFooter]="null" (nzOnCancel)="handleCancel()">
<nz-table #nzTable [nzData]="modalList"> <nz-table #nzTable [nzData]="modalList" [nzFrontPagination]="true">
<thead> <thead>
<tr> <tr>
<th nzShowSort>告警名称</th> <th nzShowSort>告警名称</th>
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let data of modalList"> <tr *ngFor="let data of nzTable.data">
<td>{{data.description}}</td> <td>{{data.description}}</td>
<td>{{data.lastchangeDate}}</td> <td>{{data.lastchangeDate}}</td>
<td> <td>
......
...@@ -38,6 +38,11 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -38,6 +38,11 @@ export class ResourceAlarmComponent implements OnInit {
pageNum = 1; pageNum = 1;
totalNum; totalNum;
//告警明细
pageCount1 = 10;
pageNum1 = 1;
totalNum1;
modalList = []; modalList = [];
constructor(private analysisSer: AnalysisService, private message: NzMessageService, constructor(private analysisSer: AnalysisService, private message: NzMessageService,
...@@ -339,6 +344,7 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -339,6 +344,7 @@ export class ResourceAlarmComponent implements OnInit {
} }
handleCancel(){ handleCancel(){
this.modalList = [];
this.isVisiable = false; this.isVisiable = false;
} }
} }
...@@ -368,6 +368,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy { ...@@ -368,6 +368,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
return a; return a;
}); });
} else { } else {
this.inEchartData = [];
this.message.warning('图表暂无数据'); this.message.warning('图表暂无数据');
this.isLoading = false; this.isLoading = false;
} }
...@@ -384,8 +385,10 @@ export class FlowTrendComponent implements OnInit, OnDestroy { ...@@ -384,8 +385,10 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
}); });
this.setEacharts(); this.setEacharts();
} else { } else {
this.inEchartData = [];
this.message.warning('图表暂无数据'); this.message.warning('图表暂无数据');
this.isLoading = false; this.isLoading = false;
this.setEacharts();
} }
} }
); );
...@@ -604,6 +607,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy { ...@@ -604,6 +607,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
this.getEcharts(null); this.getEcharts(null);
this.getInList(); this.getInList();
this.getOutList(); this.getOutList();
this.findByTime();
} }
} }
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<div nz-col nzSpan="12" class="layui-header "> <div nz-col nzSpan="12" class="layui-header ">
<span (click)="addDevice()">添加设备</span> <span (click)="addDevice()">添加设备</span>
<!--<span (click)="addCheck()">添加监测点</span>--> <!--<span (click)="addCheck()">添加监测点</span>-->
<span (click)="showAddImg()">添加图片</span> <!--<span (click)="showAddImg()">添加图片</span>-->
<span onClick="editor.utils.deleteSelectedNodes()">移除</span> <span onClick="editor.utils.deleteSelectedNodes()">移除</span>
<nz-select style="width: 200px;" nzPlaceHolder="选择线条" [(ngModel)]="lineType" <nz-select style="width: 200px;" nzPlaceHolder="选择线条" [(ngModel)]="lineType"
(ngModelChange)="changeLine($event)"> (ngModelChange)="changeLine($event)">
......
...@@ -71,25 +71,25 @@ ...@@ -71,25 +71,25 @@
</div> </div>
</div> </div>
<div nz-row [nzGutter]="24"> <!--<div nz-row [nzGutter]="24">-->
<div nz-col [nzSpan]="12"> <!--<div nz-col [nzSpan]="12">-->
<nz-form-item nzFlex> <!--<nz-form-item nzFlex>-->
<nz-form-label [nzOffset]="4" nzRequired [nzSpan]="6" >父分类 <!--<nz-form-label [nzOffset]="4" nzRequired [nzSpan]="6" >父分类-->
</nz-form-label> <!--</nz-form-label>-->
<nz-form-control [nzSpan]="14"> <!--<nz-form-control [nzSpan]="14">-->
</nz-form-control> <!--</nz-form-control>-->
</nz-form-item> <!--</nz-form-item>-->
</div> <!--</div>-->
<div nz-col [nzSpan]="12"> <!--<div nz-col [nzSpan]="12">-->
<nz-form-item nzFlex> <!--<nz-form-item nzFlex>-->
<nz-form-label [nzSpan]="6" nzRequired >子分类 <!--<nz-form-label [nzSpan]="6" nzRequired >子分类-->
</nz-form-label> <!--</nz-form-label>-->
<nz-form-control [nzSpan]="14"> <!--<nz-form-control [nzSpan]="14">-->
</nz-form-control> <!--</nz-form-control>-->
</nz-form-item> <!--</nz-form-item>-->
</div> <!--</div>-->
</div> <!--</div>-->
<div nz-row [nzGutter]="24"> <div nz-row [nzGutter]="24">
<div nz-col [nzSpan]="12"> <div nz-col [nzSpan]="12">
......
...@@ -95,6 +95,11 @@ export class TypeAsetsComponent implements OnInit { ...@@ -95,6 +95,11 @@ export class TypeAsetsComponent implements OnInit {
} }
handleOk() { handleOk() {
if(this.isParent == 'primary'){
this.validateForm.patchValue({
parentid:null
})
}
for(let i in this.validateForm.controls){ for(let i in this.validateForm.controls){
this.validateForm.controls[i].markAsDirty(); this.validateForm.controls[i].markAsDirty();
this.validateForm.controls[i].updateValueAndValidity(); this.validateForm.controls[i].updateValueAndValidity();
......
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