<!-- <page-header-wrapper></page-header-wrapper>
<nz-card>
  <div nz-row nzGutter="8">
    <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
      <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
    </div>
    <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right">
      <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl
        [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-list']">查询</button>
      <button nz-button nzType="primary" [disabled]="false" (click)="exportList()" acl
        [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-export']">导出</button>
      <button nz-button (click)="resetSF()" [disabled]="false">重置</button>
      <button nz-button nzType="link" (click)="expandToggle()">
        {{ !_$expand ? '展开' : '收起' }}
        <i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
      </button>
    </div>
  </div>
</nz-card> -->
<nz-card class="table-box">
  <div class="header_box">
    <label class="page_title"> <label class="driver">|</label> 车队长列表</label>
    <div class="mr-sm">
      <button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()" acl
        [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-list']">筛选</button>
      <button nz-button nzDanger (click)="exportList()" acl [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-export']">
        导出</button>
      <button nz-button nzType="primary" (click)="add()" acl
        [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-add']">添加车队长</button>
    </div>
  </div>
  <!-- 数据列表 -->
  <st #st [columns]="columns" [data]="service.$api_get_user_expand" [req]="{  params: reqParams }"
    [res]="{ process: dataProcess }" [page]="{ }" [loading]="false" [scroll]="{ x: '1200px',y:scrollY }">
    <ng-template st-row="promotersTelephone" let-item let-index="index">
      <a (click)="addPromoter(item)" acl [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-promoter']">
        {{ item.promotersTelephone || '添加' }}
      </a>
    </ng-template>
  </st>
</nz-card>

<ng-template #promoterModal>
  <div nz-row nzGutter="8">
    <div nz-col nzSpan="24" se-container [labelWidth]="80">
      <se [col]="1" label="手机号">
        <input nz-input [(ngModel)]="promotersTelephone" maxlength="11" required />
      </se>
    </div>
  </div>
</ng-template>