<div class="content-heading  justify-content-between">
  <div>面试统计
  </div>
  <div class="float-right">
    <div class="row">
      <div>
        <ngx-select [items]="agentArray" [(ngModel)]="exam.agent_id" (ngModelChange)="requestDateArray()"
                    placeholder="请选择考点 "
                    class="wd-wide"
                    optionValueField="ly_agent_id" optionTextField="ly_agent_name"></ngx-select>
      </div>
      <div class="ml-3" *ngIf="exam.agent_id!==undefined">
        <ngx-select [items]="dateArray" [(ngModel)]="exam.exam_date"  placeholder="请选择考试时间 " (ngModelChange)="requestTotal()"
                    class="wd-wide"
                    optionValueField="exam_date" optionTextField="exam_date"></ngx-select>
      </div>
      <div class="ml-3 mr-2" *ngIf="exam.exam_date!==undefined">
        <ngx-select [items]="timeArray" [(ngModel)]="exam.time_type" (ngModelChange)="requestTotal()"
                    placeholder="请选择时段"
                    class="wd-wide"
                    optionValueField="dict_value" optionTextField="dict_text"></ngx-select>
      </div>

    </div>

  </div>
</div>

<table class="table table-striped table-hover table-bordered">
  <thead>
  <tr>
    <th class="th-index"></th>
    <th>面试项目</th>
    <th>面试考生数</th>
    <th>已进场考生</th>
    <th>未进场考生</th>
  </tr>
  </thead>
  <tbody>
  <tr *ngFor="let v of groupArray; let i = index">
    <td>{{i + 1}}</td>
    <td>{{v.group_name}}</td>
    <td><span (click)="showStd(v, 1)" class="text-info table-sort">{{v.std_total}}</span></td>
    <td><span (click)="showStd(v, 2)" class="text-success table-sort">{{v.exam_total}}</span></td>
    <td><span class="table-sort" (click)="showStd(v,3)">{{v.no_total}}</span></td>
  </tr>
  <tr >
    <td></td>
    <td>合计</td>
    <td>{{groupArray | frameSum : 'std_total'}}</td>
    <td>{{groupArray | frameSum : 'exam_total'}}</td>
    <td><span class="table-sort" (click)="downloadWithoutStd()">{{groupArray | frameSum : 'no_total'}}</span></td>
  </tr>
  </tbody>
</table>
