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.
24 lines
716 B
24 lines
716 B
<div class="leftAddBGC"> |
|
<div mat-dialog-title><label>编辑</label></div> |
|
|
|
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm"> |
|
|
|
<div> |
|
<input type="text" name="name" required ngModel placeholder="名称"> |
|
</div> |
|
|
|
<div style="margin: 30px 0;"> |
|
<a href="javascript:;" class="uploadFile"> |
|
<input type="file" (change)='selectFile($event)' accept="image/*">↑点击这里上传文件 |
|
</a> |
|
<p *ngIf="file">{{file.name}}</p> |
|
</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> |