|
|
@ -171,14 +171,14 @@ |
|
|
|
<mat-tab *ngFor="let item of houses;let key = index" label="{{item.name}}"> |
|
|
|
<mat-tab *ngFor="let item of houses;let key = index" label="{{item.name}}"> |
|
|
|
<ng-template matTabContent> |
|
|
|
<ng-template matTabContent> |
|
|
|
<form *ngIf="item.data && item.data.length!=0" style="height: 100%; overflow-y:auto; display: block;" (ngSubmit)="onSubmitBuildingInfo(form.value,item,key,form.invalid)" #form="ngForm" class="example-container"> |
|
|
|
<form *ngIf="item.data && item.data.length!=0" style="height: 100%; overflow-y:auto; display: block;" (ngSubmit)="onSubmitBuildingInfo(form.value,item,key,form.invalid)" #form="ngForm" class="example-container"> |
|
|
|
<div class="buildInfoInput" > |
|
|
|
<div class="buildInfoInput marginLeft" > |
|
|
|
<span>建筑名称:</span> |
|
|
|
<span>建筑名称:</span> |
|
|
|
<mat-form-field> |
|
|
|
<mat-form-field> |
|
|
|
<input required matInput name="buildingName" type='text' minlength="1" [(ngModel)]="item.name"> |
|
|
|
<input required matInput name="buildingName" type='text' minlength="1" [(ngModel)]="item.name"> |
|
|
|
</mat-form-field> |
|
|
|
</mat-form-field> |
|
|
|
<span style="color: red;">*</span> |
|
|
|
<span style="color: red;">*</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="buildInfoInput"> |
|
|
|
<div class="buildInfoInput marginLeft"> |
|
|
|
<span>建筑类型:</span> |
|
|
|
<span>建筑类型:</span> |
|
|
|
<mat-form-field> |
|
|
|
<mat-form-field> |
|
|
|
<mat-select name="buildingTypeName" [(ngModel)]="item.buildingTypes[0].name"> |
|
|
|
<mat-select name="buildingTypeName" [(ngModel)]="item.buildingTypes[0].name"> |
|
|
@ -191,7 +191,7 @@ |
|
|
|
<!-- 类型为表单并且不是 罐区 --> |
|
|
|
<!-- 类型为表单并且不是 罐区 --> |
|
|
|
<div *ngIf="element.type == 0 && element.name.indexOf('罐区') == -1"> |
|
|
|
<div *ngIf="element.type == 0 && element.name.indexOf('罐区') == -1"> |
|
|
|
<p style="font-size: 22px;">{{element.name}}</p> |
|
|
|
<p style="font-size: 22px;">{{element.name}}</p> |
|
|
|
<div class="buildInfoInput" *ngFor="let i of element.propertyInfos;let inputIndex = index" style="float: left;margin-left: 250px;position: relative;"> |
|
|
|
<div class="buildInfoInput marginLeft" *ngFor="let i of element.propertyInfos;let inputIndex = index" style="float: left;position: relative;"> |
|
|
|
<span>{{i.propertyName}}<span *ngIf="i.physicalUnit">({{i.physicalUnit}})</span>:</span> |
|
|
|
<span>{{i.propertyName}}<span *ngIf="i.physicalUnit">({{i.physicalUnit}})</span>:</span> |
|
|
|
<!-- 如果类型是文本 --> |
|
|
|
<!-- 如果类型是文本 --> |
|
|
|
<mat-form-field *ngIf="i.propertyType == 0 && i.propertyName != '耐火等级'"> |
|
|
|
<mat-form-field *ngIf="i.propertyType == 0 && i.propertyName != '耐火等级'"> |
|
|
@ -266,7 +266,7 @@ |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<p style="font-size: 22px;">{{element.name}}</p> |
|
|
|
<p style="font-size: 22px;">{{element.name}}</p> |
|
|
|
|
|
|
|
|
|
|
|
<div class="buildInfoInput" *ngFor="let i of element.propertyInfos;let inputIndex = index" style="float: left;margin-left: 250px;position: relative;"> |
|
|
|
<div class="buildInfoInput marginLeft" *ngFor="let i of element.propertyInfos;let inputIndex = index" style="float: left;position: relative;"> |
|
|
|
<span>{{i.propertyName}}<span *ngIf="i.physicalUnit">({{i.physicalUnit}})</span>:</span> |
|
|
|
<span>{{i.propertyName}}<span *ngIf="i.physicalUnit">({{i.physicalUnit}})</span>:</span> |
|
|
|
<!-- 如果类型是文本 --> |
|
|
|
<!-- 如果类型是文本 --> |
|
|
|
<mat-form-field *ngIf="i.propertyType == 0 && i.propertyName != '耐火等级'"> |
|
|
|
<mat-form-field *ngIf="i.propertyType == 0 && i.propertyName != '耐火等级'"> |
|
|
@ -332,13 +332,13 @@ |
|
|
|
<h1 style="font-size: 22px;width: 200px;">自定义信息</h1> |
|
|
|
<h1 style="font-size: 22px;width: 200px;">自定义信息</h1> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="position: relative;" *ngIf="item.isCustomData"> |
|
|
|
<div style="position: relative;" *ngIf="item.isCustomData"> |
|
|
|
<button style="position: absolute;left: 100px;top: 5px;" type="button" mat-icon-button (click)="addCustomData(item)" class="addCustomData"> |
|
|
|
<button style="position: absolute;left: 80px;top: 8px;" type="button" mat-icon-button (click)="addCustomData(item)" class="addCustomData"> |
|
|
|
<mat-icon>add_circle_outline</mat-icon> |
|
|
|
<mat-icon>add_circle_outline</mat-icon> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<button style="position: absolute;left:150px;top: 5px;" type="button" mat-icon-button (click)="popCustomData(item)" class="deleteCustomData"> |
|
|
|
<button style="position: absolute;left:120px;top: 8px;" type="button" mat-icon-button (click)="popCustomData(item)" class="deleteCustomData"> |
|
|
|
<mat-icon>remove_circle_outline</mat-icon> |
|
|
|
<mat-icon>remove_circle_outline</mat-icon> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<div class="houseinfoinput" style="float: left;margin-left: 250px;" *ngFor="let i of item.customData.customProperties;let key = index"> |
|
|
|
<div class="houseinfoinput marginLeft" style="float: left;" *ngFor="let i of item.customData.customProperties;let key = index"> |
|
|
|
<mat-form-field> |
|
|
|
<mat-form-field> |
|
|
|
<input matInput type='text' name="customData{{key}}Name" |
|
|
|
<input matInput type='text' name="customData{{key}}Name" |
|
|
|
required |
|
|
|
required |
|
|
|