|  |  |  | 
|---|
|  |  |  | <ng-template #nzFixedHeader> | 
|---|
|  |  |  | <thead nz-thead> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <th nz-th [nzWidth]="'160px'" [ngStyle]="{'position': 'relative','text-align': 'center', 'left':sensorNameScrollLeft}"> | 
|---|
|  |  |  | <th nz-th [nzWidth]="'160px'" [ngStyle]="{'position': 'relative', 'text-align':'center', 'left':sensorNameScrollLeft+'px'}"> | 
|---|
|  |  |  | <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}"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </ng-template> | 
|---|
|  |  |  | <tbody nz-tbody> | 
|---|
|  |  |  | <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}"> | 
|---|
|  |  |  | (click) = "switchSensor(i)" | 
|---|
|  |  |  | (mouseover) ="sensorTableFocus(i)" (mouseout) ="sensorTableBlur(i)" | 
|---|
|  |  |  | [ngClass]="{'table-tr-focus-bgcolor': i === sensorTableFocusIndex,'table-tr-bgcolor-blur': i !== sensorTableFocusIndex}"> | 
|---|
|  |  |  | <td  nz-td class='sensor-name' [ngStyle]="{'background-color': '#FFF'}"> | 
|---|
|  |  |  | <span><span>{{ row.sensor.name+'('+row.sensor.unit+')' }}</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}"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | </tbody> | 
|---|
|  |  |  | </nz-table> | 
|---|
|  |  |  | <div  *ngIf="grid.data.length>0" [ngClass]="{'table-scroll-box-shadow': sensorNameScrollLeft>2 }"  [ngStyle]="{'position': 'absolute', 'z-index':'99','top': '24px'}"> | 
|---|
|  |  |  | <nz-table #nzTable  [nzDataSource]="grid.data" [nzIsPagination]="false"> | 
|---|
|  |  |  | <thead nz-thead> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <th nz-th [nzWidth]="'160px'" [ngStyle]="{'text-align':'center'}"> | 
|---|
|  |  |  | <span>监测项目</span> | 
|---|
|  |  |  | </th> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | </thead> | 
|---|
|  |  |  | <tbody nz-tbody> | 
|---|
|  |  |  | <tr nz-tbody-tr   style="cursor:pointer;" *ngFor="let row of nzTable.data,index as i" | 
|---|
|  |  |  | (mouseover) ="sensorTableFocus(i)" (mouseout) ="sensorTableBlur(i)" | 
|---|
|  |  |  | [ngClass]="{'table-tr-focus-bgcolor': i === sensorTableFocusIndex,'table-tr-bgcolor-blur': i !== sensorTableFocusIndex}" | 
|---|
|  |  |  | (click) = "switchSensor(i)"> | 
|---|
|  |  |  | <td  nz-td class='sensor-name'  [ngStyle]="{'width':'160px','text-align': 'center'}"> | 
|---|
|  |  |  | <span><span>{{ row.sensor.name+'('+row.sensor.unit+')' }}</span> <i *ngIf="chartSelectedIndex==i"  class="anticon anticon-line-chart"></i></span> | 
|---|
|  |  |  | </td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | </tbody> | 
|---|
|  |  |  | </nz-table> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </nz-card> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|