This commit is contained in:
Taric Xin
2022-02-11 15:33:26 +08:00
parent 63572e11f9
commit cf1ae122fc
11 changed files with 103 additions and 166 deletions

View File

@ -34,7 +34,8 @@
<div style="flex: 1;" class="ml-md">
<div class="d-flex justify-content-between align-items-center mb-md">
<nz-input-group [nzSuffix]="suffixTemplateInfo" style="width: 300px;">
<input type="text" nz-input placeholder="请输入货物名称" [(ngModel)]="searchName" (keydown)="keydownEvent($event)"/>
<input type="text" nz-input placeholder="请输入货物名称" [(ngModel)]="searchName"
(keydown)="keydownEvent($event)" />
</nz-input-group>
<ng-template #suffixTemplateInfo><i nz-icon nzType="search" nzTheme="outline" (click)="st.load(1)"></i>
</ng-template>
@ -43,10 +44,7 @@
</div>
<st #st [data]="selectedType?.id?service.$api_get_config_item_page:[]" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="service.http.loading" [scroll]="{ y: '370px' }"></st>
[req]="{ process: beforeReq }" [loading]="service.http.loading" [scroll]="{ y: '370px' }"></st>
</div>
</div>