|  |  | 
 |  |  | <pro-header [title]="'报表示例'"></pro-header> | 
 |  |  | <pro-header [title]="'报表展示'"></pro-header> | 
 |  |  | <nz-card [nzBordered]="false"> | 
 |  |  |    <form nz-form  (ngSubmit)="reportQuery()" [nzLayout]="'inline'"> | 
 |  |  |       <div nz-row [nzGutter]="24"> | 
 |  |  | 
 |  |  |                   <label>   项    目</label> | 
 |  |  |                </div> | 
 |  |  |                <div nz-form-control class="flex-1"> | 
 |  |  |                   <nz-select [(ngModel)]="query.sensorKey" name="sensorKey" [nzSize]="'large'" [nzPlaceHolder]="'请选择'" nzAllowClear> | 
 |  |  |                      <nz-option *ngFor="let option of sensorOptions" [nzLabel]="option.name" [nzValue]="option.sensorKey" ></nz-option> | 
 |  |  |                   <nz-select [nzMode]="'multiple'" [(ngModel)]="query.sensorKey" name="sensorKey" [nzSize]="'large'" [nzPlaceHolder]="'请选择'"> | 
 |  |  |                      <nz-option *ngFor="let option of sensorOptions" [nzLabel]="option.name" [nzValue]="option"></nz-option> | 
 |  |  |                      </nz-select> | 
 |  |  |                </div> | 
 |  |  |             </div> | 
 |  |  | 
 |  |  |                   <label nz-form-item-required>类型</label> | 
 |  |  |                </div> | 
 |  |  |                <div nz-form-control class="flex-1"> | 
 |  |  |                   <nz-select [(ngModel)]="query.type" name="type" [nzSize]="'large'" [nzPlaceHolder]="'请选择'" (ngModelChange)="typeChange($event)"> | 
 |  |  |                      <nz-option *ngFor="let option of typeOptions" [nzLabel]="option.label" [nzValue]="option.value" ></nz-option> | 
 |  |  |                   <nz-select [(ngModel)]="timeType" name="timeType" [nzSize]="'large'" [nzPlaceHolder]="'请选择'"> | 
 |  |  |                      <nz-option *ngFor="let option of typeOptions" [nzLabel]="option.label" [nzValue]="option" ></nz-option> | 
 |  |  |                      </nz-select> | 
 |  |  |                </div> | 
 |  |  |             </div> | 
 |  |  |          </div> | 
 |  |  |          <div nz-col [nzSpan]="6" class="mb-md" *ngIf="items.length!=5"> | 
 |  |  |          <div nz-col [nzSpan]="6" class="mb-md"> | 
 |  |  |             <div nz-form-item class="d-flex"> | 
 |  |  |                <div nz-form-label> | 
 |  |  |                   <label nz-form-item-required>图型</label> | 
 |  |  |                </div> | 
 |  |  |                <div nz-form-control class="flex-1"> | 
 |  |  |                   <nz-select [(ngModel)]="query.reportType" name="reportType" [nzSize]="'large'" [nzPlaceHolder]="'请选择'"> | 
 |  |  |                      <nz-option *ngFor="let option of reportOptions" [nzLabel]="option.label" [nzValue]="option.value" ></nz-option> | 
 |  |  |                      </nz-select> | 
 |  |  |                </div> | 
 |  |  |             </div> | 
 |  |  |          </div> | 
 |  |  |          <div nz-col [nzSpan]="6" class="mb-md" *ngIf="items.length < 4"> | 
 |  |  |             <button nz-button type="button" [nzType]="'primary'" [nzSize]="'large'" (click)="addItem()"> | 
 |  |  |                <!-- <i class="anticon anticon-plus"></i> --> | 
 |  |  |                <i class="anticon anticon-plus-circle-o"></i> | 
 |  |  | 
 |  |  |                <div nz-form-control class="flex-1"> | 
 |  |  |                   <nz-select [(ngModel)]="item.monitorPoint" name="monitorPoint{{item.id}}" nzAllowClear [nzPlaceHolder]="'请输入'" [nzFilter]="false" [nzSize]="'large'"   | 
 |  |  |                      (nzSearchChange)="searchChange($event,i)" [nzNotFoundContent]="'无法找到'" (ngModelChange)="monitorPointChange($event,i)" nzShowSearch>  | 
 |  |  |                      <nz-option *ngFor="let option of monitorPointOptions"  [nzLabel]="option['name']" [nzValue]="option['id']"> </nz-option>  | 
 |  |  |                      <nz-option *ngFor="let option of monitorPointOptions"  [nzLabel]="option['name']" [nzValue]="option"> </nz-option>  | 
 |  |  |                   </nz-select> | 
 |  |  |                </div> | 
 |  |  |             </div> | 
 |  |  | 
 |  |  |                   <label>  设备</label> | 
 |  |  |                </div> | 
 |  |  |                <div nz-form-control class="flex-1"> | 
 |  |  |                   <nz-select [(ngModel)]="item.mac" name="mac{{item.id}}" [nzSize]="'large'" nzAllowClear [nzPlaceHolder]="'请选择'" (ngModelChange)="deviceChange($event,i)"> | 
 |  |  |                      <nz-option *ngFor="let option of deviceOptions" [nzLabel]="option.name" [nzValue]="option.mac" ></nz-option> | 
 |  |  |                   <nz-select [(ngModel)]="item.device" name="mac{{item.id}}" [nzSize]="'large'" nzAllowClear [nzPlaceHolder]="'请选择'"> | 
 |  |  |                      <nz-option *ngFor="let option of item.deviceOptions" [nzLabel]="option.name" [nzValue]="option" ></nz-option> | 
 |  |  |                      </nz-select> | 
 |  |  |                </div> | 
 |  |  |             </div> | 
 |  |  | 
 |  |  |                   <label nz-form-item-required>时间</label> | 
 |  |  |                </div> | 
 |  |  |                <div nz-form-control class="flex-1"> | 
 |  |  |                   <nz-datepicker style="width: 100%;" value="" [(ngModel)]="item.time" name="time{{item.id}}" id="{{item.time}}" [nzPlaceHolder]="'请选择'" [nzFormat]="time.format" [nzMode]="time.mode" [nzSize]="'large'" nzShowTime [nzDisabledDate]="_disabledDate"></nz-datepicker> | 
 |  |  |                   <nz-datepicker style="width: 100%;" [(ngModel)]="item.time" name="time{{item.id}}" [nzPlaceHolder]="'请选择'" [nzFormat]="timeType.format.toUpperCase()" [nzSize]="'large'" | 
 |  |  |                      [nzMode]="timeType.value=='hour'||timeType.value=='day'?'day':'month'" [nzShowTime]="timeType.value=='hour'?true:false" [nzDisabledDate]="_disabledDate"></nz-datepicker> | 
 |  |  |                </div> | 
 |  |  |             </div> | 
 |  |  |          </div> | 
 |  |  |          <div nz-col [nzSpan]="6" class="mb-md" *ngIf="items.length!=1"> | 
 |  |  |             <button nz-button type="button" [nzType]="'danger'" [nzSize]="'large'" (click)="items.splice(i, 1)" nzGhost> | 
 |  |  |          <div nz-col [nzSpan]="6" class="mb-md" *ngIf="items.length > 1"> | 
 |  |  |             <button nz-button type="button" [nzType]="'danger'" [nzSize]="'large'" (click)="items.splice(i, 1)"> | 
 |  |  |                <i class="anticon anticon-minus-circle-o dynamic-delete-button"></i> | 
 |  |  |                <span>删除查询条目</span> | 
 |  |  |             </button> |