|  |  | 
 |  |  | <form nz-form> | 
 |  |  |     <ng-container *ngIf="!!osuTowDimList.length; else elseTemplate"> | 
 |  |  |             <div  *ngFor= "let osuList of osuTowDimList" nz-form-item nz-row> | 
 |  |  |                     <ng-container *ngFor="let osu of osuList"> | 
 |  |  |     <ng-container *ngIf="!!osuList.length; else elseTemplate"> | 
 |  |  |             <nz-row nzGutter="8">       | 
 |  |  |                     <ng-container *ngFor="let osu of osuList,index as i"> | 
 |  |  |                                            | 
 |  |  |                         <div  nz-form-label nz-col [nzSm]="3"> | 
 |  |  |                                 <label>{{osu.sensor.description}}</label> | 
 |  |  |                         </div> | 
 |  |  |                         <div nz-form-control nz-col [nzSm]="4"> | 
 |  |  |                         <div nz-form-control nz-col [nzSm]="3"> | 
 |  |  |                             <nz-select [nzMode]="'default'" nzAllowClear  | 
 |  |  |                             nzPlaceHolder="{{osu.sensor.unit}}(默认单位)" [(ngModel)]="osu.sensorUnitId" name="sensorUnitId"> | 
 |  |  |                             nzPlaceHolder="{{osu.sensor.unit}}(默认单位)" [(ngModel)]="osu.sensorUnitId" name="sensorUnit_{{i}}"> | 
 |  |  |                                 <nz-option | 
 |  |  |                                     *ngFor="let option of sensorUnitMap[osu.sensor.id]" | 
 |  |  |                                     [nzLabel]="option.name" | 
 |  |  |                                     [nzValue]="option.id"> | 
 |  |  |                                     </nz-option> | 
 |  |  |                                 </nz-option> | 
 |  |  |                             </nz-select> | 
 |  |  |                         </div> | 
 |  |  |                         </div>                   | 
 |  |  |                     </ng-container> | 
 |  |  |                 </div> | 
 |  |  |                 </nz-row> | 
 |  |  |     </ng-container> | 
 |  |  |     <ng-template #elseTemplate> | 
 |  |  |             <div nz-form-item nz-row> | 
 |  |  |                     <div  nz-form-label nz-col [nzSm]="24" style="text-align: center;"> | 
 |  |  |                             <h2>该组织下没有传感器或者没有可选单位</h2> | 
 |  |  |                             <h2>该组织下没有设备或者没有可选单位</h2> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |             </div> | 
 |  |  |     </ng-template> | 
 |  |  |      | 
 |  |  |  |