|
|
|
@ -196,14 +196,14 @@
|
|
|
|
|
<span>{{i.propertyName}}<span *ngIf="i.physicalUnit">({{i.physicalUnit}})</span>:</span> |
|
|
|
|
|
|
|
|
|
<!-- 如果类型是文本 --> |
|
|
|
|
<mat-form-field *ngIf="i.propertyType == 0"> |
|
|
|
|
<mat-form-field *ngIf="i.propertyType == 0 && i.propertyName != '耐火等级'"> |
|
|
|
|
<input matInput id="floorspace" name="{{i.propertyName}}{{www}}" type='text' |
|
|
|
|
required="{{ i.required==true ? 'true' : 'false' }}" |
|
|
|
|
[(ngModel)]="i.propertyValue"> |
|
|
|
|
</mat-form-field> |
|
|
|
|
|
|
|
|
|
<!-- 如果类型是数字 --> |
|
|
|
|
<mat-form-field *ngIf="i.propertyType == 2"> |
|
|
|
|
<mat-form-field *ngIf="i.propertyType == 2 && i.propertyName != '耐火等级'"> |
|
|
|
|
<input matInput id="floorspace" name="{{i.propertyName}}{{www}}" type='number' |
|
|
|
|
required="{{ i.required==true ? 'true' : 'false' }}" |
|
|
|
|
[(ngModel)]="i.propertyValue" |
|
|
|
@ -211,9 +211,17 @@
|
|
|
|
|
> |
|
|
|
|
<!-- <mat-error *ngIf="isshowrule">{{rulevalue}}</mat-error> --> |
|
|
|
|
</mat-form-field> |
|
|
|
|
|
|
|
|
|
<!-- 如果类型是耐火等级 --> |
|
|
|
|
<mat-form-field *ngIf="i.propertyName == '耐火等级'"> |
|
|
|
|
<mat-select name="{{i.propertyName}}{{www}}" required="{{ i.required==true ? 'true' : 'false' }}" placeholder="请选择耐火等级" [(ngModel)]="i.propertyValue"> |
|
|
|
|
<mat-option value="0">1级</mat-option> |
|
|
|
|
<mat-option value="1">2级</mat-option> |
|
|
|
|
<mat-option value="2">3级</mat-option> |
|
|
|
|
<mat-option value="3">其他</mat-option> |
|
|
|
|
</mat-select> |
|
|
|
|
</mat-form-field> |
|
|
|
|
<!-- 如果类型是多行文本 --> |
|
|
|
|
<textarea *ngIf="i.propertyType == 1" style="width: 180px;height: 60px;" required="{{ i.required==true ? 'true' : 'false' }}" [(ngModel)]="i.propertyValue" name="{{i.propertyName}}{{key}}"></textarea> |
|
|
|
|
<textarea *ngIf="i.propertyType == 1 && i.propertyName != '耐火等级'" style="width: 180px;height: 60px;" required="{{ i.required==true ? 'true' : 'false' }}" [(ngModel)]="i.propertyValue" name="{{i.propertyName}}{{key}}"></textarea> |
|
|
|
|
|
|
|
|
|
<span style="color: red;" *ngIf="i.required">*</span> |
|
|
|
|
<div *ngIf="i.isshowrule" style="position: absolute; |
|
|
|
@ -278,14 +286,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 如果类型是文本 --> |
|
|
|
|
<mat-form-field *ngIf="i.propertyType == 0"> |
|
|
|
|
<mat-form-field *ngIf="i.propertyType == 0 && i.propertyName != '耐火等级'"> |
|
|
|
|
<input matInput id="floorspace" name="{{i.propertyName}}" type='text' |
|
|
|
|
required="{{ i.required==true ? 'true' : 'false' }}" |
|
|
|
|
[(ngModel)]="i.propertyValue"> |
|
|
|
|
</mat-form-field> |
|
|
|
|
|
|
|
|
|
<!-- 如果类型是数字 --> |
|
|
|
|
<mat-form-field *ngIf="i.propertyType == 2"> |
|
|
|
|
<mat-form-field *ngIf="i.propertyType == 2 && i.propertyName != '耐火等级'"> |
|
|
|
|
<input matInput id="floorspace" name="{{i.propertyName}}" type='number' |
|
|
|
|
required="{{ i.required==true ? 'true' : 'false' }}" |
|
|
|
|
[(ngModel)]="i.propertyValue" |
|
|
|
@ -293,9 +301,17 @@
|
|
|
|
|
> |
|
|
|
|
<!-- <mat-error *ngIf="isshowrule">{{rulevalue}}</mat-error> --> |
|
|
|
|
</mat-form-field> |
|
|
|
|
|
|
|
|
|
<!-- 如果类型是耐火等级 --> |
|
|
|
|
<mat-form-field *ngIf="i.propertyName == '耐火等级'"> |
|
|
|
|
<mat-select name="{{i.propertyName}}" required="{{ i.required==true ? 'true' : 'false' }}" placeholder="请选择耐火等级" [(ngModel)]="i.propertyValue"> |
|
|
|
|
<mat-option value="0">1级</mat-option> |
|
|
|
|
<mat-option value="1">2级</mat-option> |
|
|
|
|
<mat-option value="2">3级</mat-option> |
|
|
|
|
<mat-option value="3">其他</mat-option> |
|
|
|
|
</mat-select> |
|
|
|
|
</mat-form-field> |
|
|
|
|
<!-- 如果类型是多行文本 --> |
|
|
|
|
<textarea *ngIf="i.propertyType == 1" style="width: 180px;height: 60px;" required="{{ i.required==true ? 'true' : 'false' }}" [(ngModel)]="i.propertyValue" name="{{i.propertyName}}"></textarea> |
|
|
|
|
<textarea *ngIf="i.propertyType == 1 && i.propertyName != '耐火等级'" style="width: 180px;height: 60px;" required="{{ i.required==true ? 'true' : 'false' }}" [(ngModel)]="i.propertyValue" name="{{i.propertyName}}"></textarea> |
|
|
|
|
<span style="color: red;" *ngIf="i.required">*</span> |
|
|
|
|
<div *ngIf="i.isshowrule" style=" position: absolute; |
|
|
|
|
left: 205px; |
|
|
|
|