From a52dc7a6e7119d575c611f9c2800649dff029f5e Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Wed, 27 Jun 2018 09:29:25 +0800 Subject: [PATCH] 大屏布局 --- src/app/routes/systems/organization/organization-config-unit/organization-config-unit.component.html | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/app/routes/systems/organization/organization-config-unit/organization-config-unit.component.html b/src/app/routes/systems/organization/organization-config-unit/organization-config-unit.component.html index d4ad476..f8f6fa2 100644 --- a/src/app/routes/systems/organization/organization-config-unit/organization-config-unit.component.html +++ b/src/app/routes/systems/organization/organization-config-unit/organization-config-unit.component.html @@ -1,29 +1,30 @@ <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> -- Gitblit v1.8.0