47 lines
1.7 KiB
47 lines
1.7 KiB
<div mat-dialog-title>编辑消防要素</div> |
|
<div> |
|
|
|
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm" class="example-container"> |
|
|
|
<mat-form-field> |
|
<input matInput placeholder="消防要素名称" [(ngModel)]="fireName" name='name' required> |
|
</mat-form-field> |
|
|
|
<div> |
|
<mat-form-field> |
|
<input matInput placeholder="手动排序:数值越大,排序越靠后" [(ngModel)]="data.order" name='order' type="number"> |
|
</mat-form-field> |
|
</div> |
|
|
|
<div class="maginTop"> |
|
<label>是否统计:</label> |
|
<mat-radio-group class="example-radio-group" [(ngModel)]="data.computed" name='radio' required> |
|
<mat-radio-button class="example-radio-button" [value]="true"> |
|
是 |
|
</mat-radio-button> |
|
<mat-radio-button class="example-radio-button" [value]="false"> |
|
否 |
|
</mat-radio-button> |
|
</mat-radio-group> |
|
</div> |
|
|
|
<div> |
|
<mat-form-field> |
|
<mat-select required [(ngModel)]="data.tag" name="tag" placeholder='消防要素录入源'> |
|
<mat-option value="INPUT">信息录入</mat-option> |
|
<mat-option value="PLAN">预案管理</mat-option> |
|
<mat-option value="COMMAND">指挥系统</mat-option> |
|
</mat-select> |
|
</mat-form-field> |
|
</div> |
|
|
|
<div mat-dialog-actions> |
|
<button mat-raised-button color="primary" type="submit" |
|
[disabled]="!form.form.valid"> |
|
确定 |
|
</button> |
|
<button mat-raised-button mat-dialog-close>取消</button> |
|
</div> |
|
|
|
</form> |
|
</div> |