|  |  |  | 
|---|
|  |  |  | </ng-template> | 
|---|
|  |  |  | </nz-input> | 
|---|
|  |  |  | <ng-template #nzTemplate> | 
|---|
|  |  |  | <div [ngStyle]="{'width': '200px', 'height': '300px', 'overflow-y' :'auto'}"> | 
|---|
|  |  |  | <div [ngStyle]="{'width': '200px', 'height': '240px', 'overflow-y' :'auto'}"> | 
|---|
|  |  |  | <nz-tree [nzNodes]="sensorOptions" [nzCheckable]="true" (nzCheck)="onSensorSelect($event)"></nz-tree> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </ng-template> | 
|---|
|  |  |  | 
|---|
|  |  |  | </form> | 
|---|
|  |  |  | </nz-card> | 
|---|
|  |  |  | <div nz-row [nzGutter]="16"> | 
|---|
|  |  |  | <div nz-col [nzMd]="24"> | 
|---|
|  |  |  | <nz-card> | 
|---|
|  |  |  | <div echarts [options]="chartOption" [loading]="chartLoading" class="line-chart" (chartInit)="onChartInit($event)"></div> | 
|---|
|  |  |  | </nz-card> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div nz-row [nzGutter]="16"> | 
|---|
|  |  |  | <div nz-col [nzMd]="24"> | 
|---|
|  |  |  | <nz-card> | 
|---|
|  |  |  | <nz-table #nzTable [nzScroll]="{ x:5000,y:400 }" [nzDataSource]="grid.data" [nzIsPagination]="false" [nzLoading]="grid.loading"> | 
|---|
|  |  |  | <nz-table #nzTable [nzScroll]="{ x:5100,y:360 }" [nzDataSource]="grid.data" [nzIsPagination]="false" [nzLoading]="grid.loading"> | 
|---|
|  |  |  | <ng-template #nzFixedHeader> | 
|---|
|  |  |  | <thead nz-thead> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <th nz-th [nzWidth]="'80px'" > | 
|---|
|  |  |  | <th nz-th [nzWidth]="'120px'" [ngStyle]="{'position': 'relative','text-align': 'center', 'left':sensorNameScrollLeft}"> | 
|---|
|  |  |  | <span>监测项目</span> | 
|---|
|  |  |  | </th> | 
|---|
|  |  |  | <th nz-th [nzWidth]="'80px'" *ngFor="let col of grid.columns" [ngStyle]="{'width':col.width,'text-align':col['align'] === undefined?'left':col.align}"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </thead> | 
|---|
|  |  |  | </ng-template> | 
|---|
|  |  |  | <tbody nz-tbody> | 
|---|
|  |  |  | <tr nz-tbody-tr *ngFor="let row of nzTable.data,index as i"> | 
|---|
|  |  |  | <td  nz-td> | 
|---|
|  |  |  | <span>{{ gridSensorNames[i] }}</span> | 
|---|
|  |  |  | <tr nz-tbody-tr style="cursor:pointer;" *ngFor="let row of nzTable.data,index as i" | 
|---|
|  |  |  | (click) = "switchSensor(i)"> | 
|---|
|  |  |  | <td  nz-td class='sensor-name' [ngStyle]="{'background-color': '#FFF','position': 'relative','text-align': 'center', 'left':sensorNameScrollLeft}"> | 
|---|
|  |  |  | <span><span>{{ gridSensorNames[i] }}</span> <i *ngIf="chartSelectedIndex==i"  class="anticon anticon-line-chart"></i></span> | 
|---|
|  |  |  | </td> | 
|---|
|  |  |  | <td nz-td *ngFor="let col of grid.columns,index as n" [ngStyle]="{'width':col.width,'text-align':col['align'] === undefined?'left':col.align}"> | 
|---|
|  |  |  | <span [ngSwitch]="col.type"> | 
|---|