This commit is contained in:
Taric Xin
2022-01-20 10:38:23 +08:00
parent af0ffc08ea
commit 29e13a49be
5 changed files with 14 additions and 11 deletions

View File

@ -39,9 +39,12 @@
</div>
</ng-template>
<st #st [data]="service.$api_get_all" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' },process: beforeReq }"
[res]="{ reName: { list: 'data' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="service.http.loading" [scroll]="{ y: '370px' }" (change)="stChange($event)"></st>
<st #st [data]="service.$api_get_all" [columns]="columns" [expand]="expand" expandRowByClick
[req]="{ method: 'POST', reName: { pi: 'pageIndex', ps: 'pageSize' },params:{appId:selectedPlatform?.appId} }"
[res]="{ reName: { list: 'data' } }" [page]="{ show: false }" [loading]="service.http.loading"
[scroll]="{ y: '370px' }" (change)="stChange($event)">
<ng-template #expand let-item let-index="index" let-column="column">
{{ item.description }}
</ng-template>
</st>
</nz-card>