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.
39 lines
1.2 KiB
39 lines
1.2 KiB
4 years ago
|
<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" required [(ngModel)]="area" placeholder="面积 (平方米)">
|
||
|
</mat-form-field>
|
||
|
</div>
|
||
|
|
||
|
<div class="keyMargin">
|
||
|
<textarea name="details" [(ngModel)]="details" placeholder="详情"></textarea>
|
||
|
</div>
|
||
|
|
||
|
<div class="submitBottom">
|
||
|
<button mat-raised-button color="primary" type="submit" [disabled]="!form.form.valid">
|
||
|
确定
|
||
|
</button>
|
||
|
<button mat-raised-button mat-dialog-close>取消</button>
|
||
|
</div>
|
||
|
|
||
|
</form>
|
||
|
|
||
|
</div>
|