|
|
@ -113,10 +113,10 @@ |
|
|
|
<mat-spinner *ngIf="isspinner" diameter= 50></mat-spinner> |
|
|
|
<mat-spinner *ngIf="isspinner" diameter= 50></mat-spinner> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="image" (click)="closeorganizationbox()"> |
|
|
|
<div class="image" (click)="closeorganizationbox()"> |
|
|
|
<input id="selectedfile" type="file" (change)="filechange($event)" name="imgFile" accept=".jpg,.png,.jpeg,.gif,.webp"> |
|
|
|
<input *ngIf="pattern" id="selectedfile" type="file" (change)="filechange($event)" name="imgFile" accept=".jpg,.png,.jpeg,.gif,.webp"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="addbtn"> |
|
|
|
<div class="addbtn"> |
|
|
|
<button type="submit" color="primary" class="submit1" mat-button mat-raised-button>保存</button> |
|
|
|
<button *ngIf="pattern" type="submit" color="primary" class="submit1" mat-button mat-raised-button>保存</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <div class="mainright" (click)="closeorganizationbox()"> --> |
|
|
|
<!-- <div class="mainright" (click)="closeorganizationbox()"> --> |
|
|
@ -132,7 +132,7 @@ |
|
|
|
<!-- body --> |
|
|
|
<!-- body --> |
|
|
|
<div class="bottombox" style="flex: 70%;overflow-y: auto;" > |
|
|
|
<div class="bottombox" style="flex: 70%;overflow-y: auto;" > |
|
|
|
<div class="houseinfobox" style="height: 100%; overflow-y: auto; box-sizing:border-box"> |
|
|
|
<div class="houseinfobox" style="height: 100%; overflow-y: auto; box-sizing:border-box"> |
|
|
|
<button type="button" mat-icon-button (click)="addhouseinfo()" class="addhouseinfo"><mat-icon class="addicon">add_circle_outline</mat-icon></button> |
|
|
|
<button *ngIf="pattern" type="button" mat-icon-button (click)="addhouseinfo()" class="addhouseinfo"><mat-icon class="addicon">add_circle_outline</mat-icon></button> |
|
|
|
<mat-tab-group style="height: 100%;;" (focusChange)="selecttab($event)" > |
|
|
|
<mat-tab-group style="height: 100%;;" (focusChange)="selecttab($event)" > |
|
|
|
<mat-tab [label]="item.username" *ngFor="let item of houses;let key = index"> |
|
|
|
<mat-tab [label]="item.username" *ngFor="let item of houses;let key = index"> |
|
|
|
<form style="height: 100%; overflow-y:auto; display: block;" (ngSubmit)="onSubmit2(form.value,item,key,form.invalid)" #form="ngForm" class="example-container"> |
|
|
|
<form style="height: 100%; overflow-y:auto; display: block;" (ngSubmit)="onSubmit2(form.value,item,key,form.invalid)" #form="ngForm" class="example-container"> |
|
|
@ -195,12 +195,12 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="CustomData" style="width: 200px;"> |
|
|
|
<div class="CustomData" style="width: 200px;"> |
|
|
|
<mat-checkbox (change)="checkCustomData($event)" name="checkbuilding" [(ngModel)]="item.isCustomData" style="float: left;margin-right: 10px;"></mat-checkbox> |
|
|
|
<mat-checkbox *ngIf="pattern" (change)="checkCustomData($event)" name="checkbuilding" [(ngModel)]="item.isCustomData" style="float: left;margin-right: 10px;"></mat-checkbox> |
|
|
|
<h1 style="font-size: 22px;width: 200px;">自定义信息</h1> |
|
|
|
<h1 style="font-size: 22px;width: 200px;">自定义信息</h1> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div *ngIf="item.isCustomData" style="position: relative;"> |
|
|
|
<div *ngIf="item.isCustomData" style="position: relative;"> |
|
|
|
<button style="position: absolute;left: 0;" type="button" mat-icon-button (click)="addCustomData(item)" class="addCustomData"><mat-icon style="font-size: 38px;">add_circle_outline</mat-icon></button> |
|
|
|
<button *ngIf="pattern" style="position: absolute;left: 0;" type="button" mat-icon-button (click)="addCustomData(item)" class="addCustomData"><mat-icon style="font-size: 38px;">add_circle_outline</mat-icon></button> |
|
|
|
<button style="position: absolute;left:60px;" type="button" mat-icon-button (click)="deleteCustomData(item)" class="deleteCustomData"><mat-icon style="font-size: 38px;">remove_circle_outline</mat-icon></button> |
|
|
|
<button *ngIf="pattern" style="position: absolute;left:60px;" type="button" mat-icon-button (click)="deleteCustomData(item)" class="deleteCustomData"><mat-icon style="font-size: 38px;">remove_circle_outline</mat-icon></button> |
|
|
|
<div class="houseinfoinput" style="float: left;margin-left: 250px;" *ngFor="let i of item.buildingCustomData.customProperties;let key = index"> |
|
|
|
<div class="houseinfoinput" style="float: left;margin-left: 250px;" *ngFor="let i of item.buildingCustomData.customProperties;let key = index"> |
|
|
|
<mat-form-field> |
|
|
|
<mat-form-field> |
|
|
|
<input matInput type='text' name="{{key}}1CustomData" |
|
|
|
<input matInput type='text' name="{{key}}1CustomData" |
|
|
@ -278,7 +278,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="deviceinfo"> |
|
|
|
<div class="deviceinfo"> |
|
|
|
<div style="width: 200px;"> |
|
|
|
<div style="width: 200px;"> |
|
|
|
<mat-checkbox (change)="checkboxchange(item.buildingBasicGroups[1].submitted,$event)" name="item.buildingBasicGroups[1].name" *ngIf="item.buildingBasicGroups[1].isOptional" [(ngModel)]="item.buildingBasicGroups[1].submitted" style="float: left;margin-right: 10px;"></mat-checkbox> |
|
|
|
<mat-checkbox (change)="checkboxchange(item.buildingBasicGroups[1].submitted,$event)" name="item.buildingBasicGroups[1].name" *ngIf="item.buildingBasicGroups[1].isOptional && pattern" [(ngModel)]="item.buildingBasicGroups[1].submitted" style="float: left;margin-right: 10px;"></mat-checkbox> |
|
|
|
<h1 style="font-size: 22px;width: 200px;">{{item.buildingBasicGroups[1].name}}</h1> |
|
|
|
<h1 style="font-size: 22px;width: 200px;">{{item.buildingBasicGroups[1].name}}</h1> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -316,7 +316,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div style="width: 200px;"> |
|
|
|
<div style="width: 200px;"> |
|
|
|
<mat-checkbox (change)="checkboxchange(item,$event)" *ngIf="item.buildingBasicGroups[2].isOptional" name="item.buildingBasicGroups[2].name" [(ngModel)]="item.buildingBasicGroups[2].submitted" style="float: left;margin-right: 10px;"></mat-checkbox> |
|
|
|
<mat-checkbox (change)="checkboxchange(item,$event)" *ngIf="item.buildingBasicGroups[2].isOptional && pattern" name="item.buildingBasicGroups[2].name" [(ngModel)]="item.buildingBasicGroups[2].submitted" style="float: left;margin-right: 10px;"></mat-checkbox> |
|
|
|
<h1 style="font-size: 22px;width: 200px;">储罐信息</h1> |
|
|
|
<h1 style="font-size: 22px;width: 200px;">储罐信息</h1> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -480,12 +480,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="CustomData" style="width: 200px;margin-top: 60px;"> |
|
|
|
<div class="CustomData" style="width: 200px;margin-top: 60px;"> |
|
|
|
<mat-checkbox (change)="checkCustomData($event)" name="checkbuilding" [(ngModel)]="item.isCustomData" style="float: left;margin-right: 10px;"></mat-checkbox> |
|
|
|
<mat-checkbox *ngIf="pattern" (change)="checkCustomData($event)" name="checkbuilding" [(ngModel)]="item.isCustomData" style="float: left;margin-right: 10px;"></mat-checkbox> |
|
|
|
<h1 style="font-size: 22px;width: 200px;">自定义信息</h1> |
|
|
|
<h1 style="font-size: 22px;width: 200px;">自定义信息</h1> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div *ngIf="item.isCustomData" style="position: relative;"> |
|
|
|
<div *ngIf="item.isCustomData" style="position: relative;"> |
|
|
|
<button style="position: absolute;left: 0;font-size: 11px;" type="button" mat-icon-button (click)="addCustomData(item)" class="addCustomData"><mat-icon style="font-size: 38px;">add_circle_outline</mat-icon></button> |
|
|
|
<button *ngIf="pattern" style="position: absolute;left: 0;font-size: 11px;" type="button" mat-icon-button (click)="addCustomData(item)" class="addCustomData"><mat-icon style="font-size: 38px;">add_circle_outline</mat-icon></button> |
|
|
|
<button style="position: absolute;left:60px;" type="button" mat-icon-button (click)="deleteCustomData(item)" class="deleteCustomData"><mat-icon style="font-size: 38px;">remove_circle_outline</mat-icon></button> |
|
|
|
<button *ngIf="pattern" style="position: absolute;left:60px;" type="button" mat-icon-button (click)="deleteCustomData(item)" class="deleteCustomData"><mat-icon style="font-size: 38px;">remove_circle_outline</mat-icon></button> |
|
|
|
<div class="houseinfoinput" style="float: left;margin-left: 250px;" *ngFor="let i of item.buildingCustomData.customProperties;let key = index"> |
|
|
|
<div class="houseinfoinput" style="float: left;margin-left: 250px;" *ngFor="let i of item.buildingCustomData.customProperties;let key = index"> |
|
|
|
<mat-form-field> |
|
|
|
<mat-form-field> |
|
|
|
<input matInput type='text' name="{{key}}1CustomData" |
|
|
|
<input matInput type='text' name="{{key}}1CustomData" |
|
|
@ -505,7 +505,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="infobtnbox"> |
|
|
|
<div class="infobtnbox" *ngIf="pattern"> |
|
|
|
<button type="submit()" mat-button mat-raised-button color="primary" >保存</button> |
|
|
|
<button type="submit()" mat-button mat-raised-button color="primary" >保存</button> |
|
|
|
<button type="button" mat-raised-button (click)="deletedbuilding(item)" color="warn">删除</button> |
|
|
|
<button type="button" mat-raised-button (click)="deletedbuilding(item)" color="warn">删除</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|