You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.8 KiB
50 lines
1.8 KiB
<div class="functionalDomainContent"> |
|
|
|
<div mat-dialog-title> |
|
<label *ngIf="!data.isBuilding">编辑平面图</label> |
|
<label *ngIf="data.isBuilding">编辑楼层/区域</label> |
|
</div> |
|
|
|
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm" class="example-container"> |
|
|
|
<div class="keyMargin"> |
|
<mat-form-field> |
|
<input matInput name="name" required [(ngModel)]="name" placeholder="名称"> |
|
</mat-form-field> |
|
</div> |
|
|
|
<div class="keyMargin" *ngIf="data.isBuilding"> |
|
<mat-checkbox name="isRefugeStorey" [(ngModel)]="checked">是否为避难层</mat-checkbox> |
|
</div> |
|
|
|
<div class="keyMargin"> |
|
<mat-form-field> |
|
<input matInput name="area" type="number" [(ngModel)]="area" placeholder="面积 (平方米)"> |
|
</mat-form-field> |
|
</div> |
|
|
|
<div class="keyMargin"> |
|
<textarea name="details" [(ngModel)]="details" placeholder="详情"></textarea> |
|
</div> |
|
|
|
<div class="keyMargin image"> |
|
<mat-form-field> |
|
<input matInput name="imageWidth" type="number" [(ngModel)]="imgWidth" placeholder="宽" (input)='inputChange(0)'> |
|
</mat-form-field> |
|
<mat-form-field> |
|
<input matInput name="imageHeight" type="number" [(ngModel)]="imgHeight" placeholder="高" (input)='inputChange(1)'> |
|
</mat-form-field> |
|
<label><mat-checkbox color="primary" [(ngModel)]="isItEqual" name="isItEqual" (change)='setImgScale($event)'></mat-checkbox>长宽等比</label> |
|
<p style="font-size: 12px; margin-bottom: 25px;">按Enter键可浏览图片效果</p> |
|
</div> |
|
|
|
<div class="submitBottom"> |
|
<button mat-raised-button color="primary" type="submit" [disabled]="!form.form.valid"> |
|
确定 |
|
</button> |
|
<button mat-raised-button (click)='close()' type="button">取消</button> |
|
</div> |
|
|
|
</form> |
|
|
|
</div> |