commit
6282e44829
@ -1,20 +1,19 @@ |
|||||||
<form nz-form [formGroup]="searchForm"> |
|
||||||
|
<form nz-form [formGroup]="searchForm" class="search_form" [nzLayout]="'vertical'"> |
||||||
<div nz-row [nzGutter]="24"> |
<div nz-row [nzGutter]="24"> |
||||||
<div nz-col [nzSpan]="8" *ngFor="let item of goodsTypeSearch"> |
<div nz-col [nzSpan]="6" *ngFor="let item of goodsTypeSearch"> |
||||||
<nz-form-item> |
<nz-form-item> |
||||||
<nz-form-label>{{item.title}}</nz-form-label> |
<nz-form-label>{{item.title}}</nz-form-label> |
||||||
<nz-form-control> |
<nz-form-control> |
||||||
<input nz-input formControlName="{{item.formControlName}}" /> |
<input nz-input formControlName="{{item.formControlName}}" placeholder="请输入" /> |
||||||
</nz-form-control> |
</nz-form-control> |
||||||
</nz-form-item> |
</nz-form-item> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<div nz-col [nzSpan]="8"> |
<div nz-col [nzSpan]="6" class="search-area"> |
||||||
<div class="search-area"> |
<button nz-button [nzType]="'primary'" (click)="searchFormSubmit()">查询</button> |
||||||
<button nz-button [nzType]="'primary'" (click)="searchFormSubmit()">搜索</button> |
<button nz-button (click)="searchForm.reset()">重置</button> |
||||||
<button nz-button (click)="searchFormReset()">重置</button> |
<button nz-button [nzType]="'primary'" (click)="searchFormSubmit()">创建</button> |
||||||
<!-- <button nz-button [nzType]="'primary'" (click)="showEdit(true, null)">创建</button>--> |
|
||||||
</div> |
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</form> |
</form> |
||||||
|
@ -1,6 +1,12 @@ |
|||||||
.search-area { |
[nz-form-label] { |
||||||
text-align: center; |
overflow: visible; |
||||||
} |
} |
||||||
button { |
button { |
||||||
margin-left: 8px; |
margin-left: 8px; |
||||||
} |
} |
||||||
|
.submit-btn { |
||||||
|
width: 150px; |
||||||
|
} |
||||||
|
.search-area { |
||||||
|
margin-top: 30px; |
||||||
|
} |
||||||
|
@ -0,0 +1,9 @@ |
|||||||
|
import { Injectable } from '@angular/core'; |
||||||
|
|
||||||
|
@Injectable({ |
||||||
|
providedIn: 'root' |
||||||
|
}) |
||||||
|
export class GoodsService { |
||||||
|
|
||||||
|
constructor() { } |
||||||
|
} |
Loading…
Reference in new issue