<page-header-wrapper [title]="''"></page-header-wrapper>
<nz-card>
  <!-- <div nz-row>
    <div [nzSpan]="" nz-col>

    </div>
  </div> -->
  <sf [schema]="schema" [mode]="'search'" [ui]="ui" [button]="'none'" #sf>
    <button nz-button nzType="primary" [disabled]="!sf.valid" (click)="st?.load(1)">查询</button>
    <button nz-button (click)="resetSF()">重置</button>
    <button nz-button (click)="export()" nzType="primary" nzGhost>导出</button>
  </sf>

</nz-card>
<nz-card>
  <st #st [data]="service.$api_get_account_management_page" [columns]="columns" [scroll]="{ x: '1200px' }"
    [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
    [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" multiSort>
    <ng-template st-row="allBalance" let-item>
      <div class="text-right">{{item.allBalance | currency:' '}}</div>
    </ng-template>
    <ng-template st-row="unEntryAmount" let-item>
      <a class="text-right text-blue-dark"
        [routerLink]="'/partner/account-management/am/recorded/detail/'+item?.roleId">{{item.unEntryAmount | currency:'
        '}}</a>
    </ng-template>
    <ng-template st-row="availableBalance" let-item>
      <div class="text-right">{{item.availableBalance | currency:' '}}</div>
    </ng-template>


  </st>
</nz-card>
