|  |  | 
 |  |  |                         <label nz-checkbox formControlName="_allChecked" [nzIndeterminate]="indeterminate" (ngModelChange)="checkAll($event)"></label> | 
 |  |  |                     </th> | 
 |  |  |                     <th nz-th> | 
 |  |  |                         传感器名称 | 
 |  |  |                         传感器名称(单位) | 
 |  |  |                     </th> | 
 |  |  |                     <th nz-th> | 
 |  |  |                         一级 | 
 |  |  | 
 |  |  |                     </th> | 
 |  |  |                 </tr> | 
 |  |  |             </thead> | 
 |  |  |             <tbody nz-tbody> | 
 |  |  |                 <tr nz-tbody-tr *ngFor="let row of nzTable.data"> | 
 |  |  |             <tbody formGroupName="alarmLevels" nz-tbody> | 
 |  |  |                 <tr nz-tbody-tr *ngFor="let row of nzTable.data" formGroupName="{{row.sensorKey}}"> | 
 |  |  |  | 
 |  |  |                     <td nz-td [nzCheckbox]="true"> | 
 |  |  |                         <label nz-checkbox formControlName="{{row.key}}_enable"></label> | 
 |  |  |                         <label nz-checkbox formControlName="enable"></label> | 
 |  |  |                     </td> | 
 |  |  |                     <td> | 
 |  |  |                         <span> | 
 |  |  |                             {{ row.name }} | 
 |  |  |                             {{ row.name }}({{ row.unit }}) | 
 |  |  |                         </span> | 
 |  |  |                     </td> | 
 |  |  |                     <td> | 
 |  |  |                     <td formArrayName="increment" *ngFor="let in of validateForm.get('alarmLevels.'+row.sensorKey+'.increment').controls; index as i"> | 
 |  |  |                             <div nz-form-item> | 
 |  |  |                                 <div nz-form-control nzHasFeedback> | 
 |  |  |                                     <nz-input [formControlName]="i" maxlength="20" nzDisabled="{{ !f.value['alarmLevels'][row.sensorKey]['enable'] }}"></nz-input> | 
 |  |  |                                 </div> | 
 |  |  |                             </div> | 
 |  |  |                     </td> | 
 |  |  |                     <td formArrayName="degression" *ngFor="let in of validateForm.get('alarmLevels.'+row.sensorKey+'.degression').controls; index as i"> | 
 |  |  |                         <div nz-form-item> | 
 |  |  |                             <div nz-form-control nzHasFeedback> | 
 |  |  |                                 <nz-input formControlName="{{row.key}}_level_increment_1" maxlength="20" nzDisabled="{{ !f.value[row.key+'_enable'] }}"></nz-input> | 
 |  |  |                                 <nz-input [formControlName]="i" maxlength="20" nzDisabled="{{ !f.value['alarmLevels'][row.sensorKey]['enable'] }}"></nz-input> | 
 |  |  |                             </div> | 
 |  |  |                         </div> | 
 |  |  |                     </td> | 
 |  |  |                     <td> | 
 |  |  |                         <div nz-form-item> | 
 |  |  |                             <div nz-form-control nzHasFeedback> | 
 |  |  |                                 <nz-input formControlName="{{row.key}}_level_increment_2" maxlength="20" nzDisabled="{{ !f.value[row.key+'_enable'] }}"  | 
 |  |  |                                 validateGreater></nz-input>                                 | 
 |  |  |                             </div> | 
 |  |  |                         </div> | 
 |  |  |                     </td> | 
 |  |  |                     <td> | 
 |  |  |                         <div nz-form-item> | 
 |  |  |                             <div nz-form-control nzHasFeedback> | 
 |  |  |                                 <nz-input formControlName="{{row.key}}_level_increment_3" maxlength="20" nzDisabled="{{ !f.value[row.key+'_enable'] }}"></nz-input> | 
 |  |  |                             </div> | 
 |  |  |                         </div> | 
 |  |  |                     </td> | 
 |  |  |                     <td> | 
 |  |  |                         <div nz-form-item> | 
 |  |  |                             <div nz-form-control nzHasFeedback> | 
 |  |  |                                 <nz-input formControlName="{{row.key}}_level_degression_1" maxlength="20" nzDisabled="{{ !f.value[row.key+'_enable'] }}"></nz-input> | 
 |  |  |                             </div> | 
 |  |  |                         </div> | 
 |  |  |                     </td> | 
 |  |  |                     <td> | 
 |  |  |                         <div nz-form-item> | 
 |  |  |                             <div nz-form-control nzHasFeedback> | 
 |  |  |                                 <nz-input formControlName="{{row.key}}_level_degression_2" maxlength="20" nzDisabled="{{ !f.value[row.key+'_enable'] }}"></nz-input> | 
 |  |  |                             </div> | 
 |  |  |                         </div> | 
 |  |  |                     </td> | 
 |  |  |                     <td> | 
 |  |  |                     <div nz-form-item> | 
 |  |  |                         <div nz-form-control nzHasFeedback> | 
 |  |  |                             <nz-input formControlName="{{row.key}}_level_degression_3" maxlength="20" nzDisabled="{{ !f.value[row.key+'_enable'] }}"></nz-input> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                     </td> | 
 |  |  |                    </td>    | 
 |  |  |                 </tr> | 
 |  |  |             </tbody> | 
 |  |  |         </nz-table> | 
 |  |  |     </nz-card> | 
 |  |  |     <div [ngStyle]="{'background-color':'#f5f7fa','width':'110%','left':'-5%','height':'20px','position':'relative'}"></div> | 
 |  |  |     <nz-card [nzBordered]="false" nzTitle="报警方式"> | 
 |  |  |         <label nz-checkbox formControlName="mode_enable"> | 
 |  |  |             <span>启用报警</span> | 
 |  |  |         </label> | 
 |  |  |         <div [ngStyle]="{'margin-left': '20%'}"> | 
 |  |  |             <br/> | 
 |  |  |             <br/> | 
 |  |  |             <br/> | 
 |  |  |             <div *ngFor="let i of [1,2,3]" nz-form-item nz-row class="mb-sm"> | 
 |  |  |                 <div nz-form-label nz-col [nzSm]="3" [nzXs]="24"> | 
 |  |  |                     <span [ngSwitch]="i"> | 
 |  |  |                         <label *ngSwitchCase="1">一级报警方式:</label> | 
 |  |  |                         <label *ngSwitchCase="2">二级报警方式:</label> | 
 |  |  |                         <label *ngSwitchCase="3">三级报警方式:</label> | 
 |  |  |                     </span> | 
 |  |  |     <nz-card [nzBordered]="false" nzTitle="报警方式"  formGroupName="alarmMode"> | 
 |  |  |             <label nz-checkbox formControlName="enable"> | 
 |  |  |                 <span>启用报警</span> | 
 |  |  |             </label> | 
 |  |  |             <div [ngStyle]="{'margin-left': '20%'}"> | 
 |  |  |                 <br/> | 
 |  |  |                 <br/> | 
 |  |  |                 <br/> | 
 |  |  |                   <div *ngFor="let i of [1,2,3]" nz-form-item nz-row class="mb-sm"> | 
 |  |  |                     <div nz-form-label nz-col [nzSm]="3" [nzXs]="24"> | 
 |  |  |                         <span [ngSwitch]="i"> | 
 |  |  |                             <label *ngSwitchCase="1">一级报警方式:</label> | 
 |  |  |                             <label *ngSwitchCase="2">二级报警方式:</label> | 
 |  |  |                             <label *ngSwitchCase="3">三级报警方式:</label> | 
 |  |  |                         </span> | 
 |  |  |                     </div> | 
 |  |  |                     <div nz-form-control nz-col [nzSpan]="12" nzHasFeedback> | 
 |  |  |                         <nz-select formControlName="{{ 'level'+i }}" [nzMode]="'multiple'" [nzPlaceHolder]="'选择 报警方式'" [nzNotFoundContent]="'无法找到'" | 
 |  |  |                             nzDisabled="{{ !f.value['alarmMode']['enable'] }}"> | 
 |  |  |                             <nz-option *ngFor="let option of alarmModes" [nzLabel]="option.label" [nzValue]="option.value" [nzDisabled]="option.disabled"> | 
 |  |  |                             </nz-option> | 
 |  |  |                         </nz-select> | 
 |  |  |                     </div> | 
 |  |  |                     <br/> | 
 |  |  |                     <br/> | 
 |  |  |                     <br/> | 
 |  |  |                 </div> | 
 |  |  |                 <div nz-form-control nz-col [nzSpan]="12" nzHasFeedback> | 
 |  |  |                     <nz-select formControlName="mode_level{{i}}" [nzMode]="'multiple'" [nzPlaceHolder]="'选择 报警方式'" [nzNotFoundContent]="'无法找到'" | 
 |  |  |                         nzDisabled="{{ !f.value['mode_enable'] }}"> | 
 |  |  |                         <nz-option *ngFor="let option of alarmModes" [nzLabel]="option.label" [nzValue]="option.value" [nzDisabled]="option.disabled"> | 
 |  |  |                         </nz-option> | 
 |  |  |                     </nz-select> | 
 |  |  |                 </div> | 
 |  |  |                 <br/> | 
 |  |  |                 <br/> | 
 |  |  |                 <br/> | 
 |  |  |             </div> | 
 |  |  |         </div> | 
 |  |  |     </nz-card> | 
 |  |  |     <footer-toolbar ng-content = '错误提示' errorCollect> | 
 |  |  |         </nz-card> | 
 |  |  |     <footer-toolbar errorCollect> | 
 |  |  |         <span [ngStyle]="{'color':'red','width':'300px','margin-right':'40px'}">{{ errorMessage }}</span> | 
 |  |  |         <label>组织名称:</label> | 
 |  |  |         <span [ngStyle]="{'font-size': '16px','font-weight': 'bold','margin-right':'30px'}">{{ organization.name }}</span> | 
 |  |  |         <button nz-button type="button" (click)="backToList()">返回</button> | 
 |  |  | 
 |  |  |                 <span *ngIf="isSaving">中</span> | 
 |  |  |             </span> | 
 |  |  |         </button> | 
 |  |  |     </footer-toolbar> | 
 |  |  |     </footer-toolbar>     | 
 |  |  | </form> |