From 309d1f9d649daa08bb9b068af014749f6d4a5bce Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Fri, 06 Jul 2018 14:00:45 +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