| | |
| | | <pro-header [title]="'Excel导出'"></pro-header> |
| | | <pro-header [title]="'数据导出'"></pro-header> |
| | | <nz-card [nzBordered]="false"> |
| | | <form nz-form (ngSubmit)="reportQuery()" [nzLayout]="'inline'"> |
| | | <div nz-row [nzGutter]="24"> |
| | | <div nz-col [nzSpan]="6" class="mb-md"> |
| | | <div nz-form-item class="d-flex"> |
| | | <div nz-form-label> |
| | | <label> 项目</label> |
| | | <div nz-form-label class="label-width-70"> |
| | | <label>项目</label> |
| | | </div> |
| | | <div nz-form-control class="flex-1"> |
| | | <nz-select [(ngModel)]="query.sensorKey" name="sensorKey" [nzSize]="'large'" [nzPlaceHolder]="'请选择'" nzAllowClear (ngModelChange)="sensorChange($event)"> |
| | | <nz-option *ngFor="let option of sensorOptions" [nzLabel]="option.name" [nzValue]="option.sensorKey" ></nz-option> |
| | | <nz-popover [nzPlacement]="'bottomLeft'" [nzTrigger]="'click'"> |
| | | <nz-input [nzType]="'input'" nz-popover [ngModel]="sensorNames" name="sensorKeys" [nzReadonly]="true" [nzPlaceHolder]="'请选择 项目'" [nzSize]="'large'"> |
| | | <ng-template #suffix> |
| | | <i class="anticon anticon-down ant-cascader-picker-arrow" style="right: 1px;"></i> |
| | | </ng-template> |
| | | </nz-input> |
| | | <ng-template #nzTemplate> |
| | | <div [ngStyle]="{'width': '240px', 'height': '240px', 'overflow-y' :'auto'}"> |
| | | <nz-tree [nzNodes]="sensorOptions" (nzActivate)="onTreeClickSelect($event)" (nzDeactivate)="onTreeClickSelect($event)" [nzCheckable]="true" (nzCheck)="onSensorSelect($event)"> |
| | | </nz-tree> |
| | | </div> |
| | | </ng-template> |
| | | </nz-popover> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div nz-col [nzSpan]="6" class="mb-md"> |
| | | <div nz-form-item class="d-flex"> |
| | | <div nz-form-label class="label-width-70"> |
| | | <label>类型</label> |
| | | </div> |
| | | <div nz-form-control class="flex-1"> |
| | | <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"> |
| | | <div nz-form-item class="d-flex"> |
| | | <div nz-form-label> |
| | | <label nz-form-item-required>监测点</label> |
| | | <div nz-form-label class="label-width-70"> |
| | | <label nz-form-item-required>时间从</label> |
| | | </div> |
| | | <div nz-form-control class="flex-1"> |
| | | <nz-select [(ngModel)]="query.monitorPoint" name="monitorPoint" nzAllowClear [nzPlaceHolder]="'请输入'" [nzFilter]="false" [nzSize]="'large'" |
| | | (nzSearchChange)="searchChange($event)" [nzNotFoundContent]="'无法找到'" (ngModelChange)="monitorPointChange($event)" nzShowSearch> |
| | | <nz-datepicker style="width: 100%;" [(ngModel)]="query.time" name="time" [nzPlaceHolder]="'请选择 时间'" [nzSize]="'large'" [nzFormat]="timeType.format" |
| | | [nzMode]="timeType.value=='hour'||timeType.value=='day'?'day':'month'" [nzShowTime]="timeType.value=='hour'?true:false"></nz-datepicker> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div nz-col [nzSpan]="6" class="mb-md"> |
| | | <div nz-form-item class="d-flex"> |
| | | <div nz-form-label class="label-width-70"> |
| | | <label >时间至</label> |
| | | </div> |
| | | <div nz-form-control class="flex-1"> |
| | | <nz-datepicker style="width: 100%;" [(ngModel)]="query.timeb" name="timeb" [nzPlaceHolder]="'请选择 时间'" [nzSize]="'large'" [nzFormat]="timeType.format" |
| | | [nzMode]="timeType.value=='hour'||timeType.value=='day'?'day':'month'" [nzShowTime]="timeType.value=='hour'?true:false"></nz-datepicker> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div nz-row [nzGutter]="24"> |
| | | <div nz-col [nzSpan]="6" class="mb-md"> |
| | | <div nz-form-item class="d-flex"> |
| | | <div nz-form-label class="label-width-70"> |
| | | <label nz-form-item-required>省市区</label> |
| | | </div> |
| | | <div nz-form-control class="flex-1"> |
| | | <nz-cascader (nzLoad)="areaLazyLoad($event)" [nzPlaceHolder]="'请选择 省/市/区'" [nzAllowClear]="false" [nzChangeOnSelect]="true" (nzSelect)="regionChange($event)" [nzSize]="'large'"> |
| | | </nz-cascader> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div nz-col [nzSpan]="6" class="mb-md"> |
| | | <div nz-form-item class="d-flex"> |
| | | <div nz-form-label class="label-width-70"> |
| | | <label >行业</label> |
| | | </div> |
| | | <div nz-form-control class="flex-1"> |
| | | <nz-select [(ngModel)]="query.professionId" name="profession" [nzSize]="'large'" [nzPlaceHolder]="'请选择 行业'" nzAllowClear (ngModelChange)="getDevices()" > |
| | | <nz-option *ngFor="let option of professionOptions" [nzLabel]="option.name" [nzValue]="option.id" ></nz-option> |
| | | </nz-select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div nz-col [nzSpan]="6" class="mb-md"> |
| | | <div nz-form-item class="d-flex"> |
| | | <div nz-form-label class="label-width-70"> |
| | | <label>监测站点</label> |
| | | </div> |
| | | <div nz-form-control class="flex-1"> |
| | | <nz-select [(ngModel)]="query.monitorPointId" name="monitorPoint" [nzPlaceHolder]="'请选择 监测站点'" [nzSize]="'large'" |
| | | [nzNotFoundContent]="'无法找到'" (ngModelChange)="getDevices()" nzShowSearch nzAllowClear> |
| | | <nz-option *ngFor="let option of monitorPointOptions" [nzLabel]="option['name']" [nzValue]="option['id']"> </nz-option> |
| | | </nz-select> |
| | | </div> |
| | |
| | | </div> |
| | | <div nz-col [nzSpan]="6" class="mb-md"> |
| | | <div nz-form-item class="d-flex"> |
| | | <div nz-form-label> |
| | | <div nz-form-label class="label-width-70"> |
| | | <label>设备</label> |
| | | </div> |
| | | <div nz-form-control class="flex-1"> |
| | | <nz-select [(ngModel)]="query.mac" name="mac" [nzSize]="'large'" nzAllowClear [nzPlaceHolder]="'请选择'" > |
| | | <nz-select [(ngModel)]="query.mac" name="mac" [nzSize]="'large'" [nzPlaceHolder]="'请选择 设备'" [nzNotFoundContent]="'无法找到'" nzShowSearch nzAllowClear> |
| | | <nz-option *ngFor="let option of deviceOptions" [nzLabel]="option.name" [nzValue]="option.mac" ></nz-option> |
| | | </nz-select> |
| | | </div> |
| | |
| | | |
| | | <div nz-row [nzGutter]="24"> |
| | | <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.type" name="isDelete" [nzSize]="'large'" [nzPlaceHolder]="'请选择'" (ngModelChange)="typeChange($event)"> |
| | | <nz-option *ngFor="let option of typeOptions" [nzLabel]="option.label" [nzValue]="option.value" ></nz-option> |
| | | </nz-select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <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-datepicker style="width: 100%;" [(ngModel)]="query.time" name="time" [nzPlaceHolder]="'请选择'" [nzFormat]="time.format" [nzMode]="time.mode" [nzSize]="'large'" nzShowTime></nz-datepicker> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div nz-col [nzSpan]="6" class="mb-md"> |
| | | <div nz-form-item class="d-flex"> |
| | | <div nz-form-label> |
| | | <label > 到</label> |
| | | </div> |
| | | <div nz-form-control class="flex-1"> |
| | | <nz-datepicker style="width: 100%;" [(ngModel)]="query.timeb" name="timeb" [nzPlaceHolder]="'请选择'" [nzFormat]="time.format" [nzMode]="time.mode" [nzSize]="'large'" nzShowTime></nz-datepicker> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div nz-row [nzGutter]="24"> |
| | | </div> |
| | | <div nz-row [nzGutter]="24"> |
| | | <div nz-col [nzSpan]="6" class="mb-md"> |
| | | <button nz-button type="submit" [nzType]="'primary'" [nzSize]="'large'">导出</button> |
| | | <button nz-button type="reset" [nzSize]="'large'" class="mx-sm">重置</button> |
| | | <!-- <button nz-button type="reset" [nzSize]="'large'" class="mx-sm">重置</button> --> |
| | | </div> |
| | | </div> |
| | | </form> |