<div class="content-heading  justify-content-between">
    <div>面试统计</div>
    <div class="float-right">
        <div class="row">
          <div class="wd-xl">
              <ngx-select [items]="schoolArr" [(ngModel)]="param.school_id"
                          (ngModelChange)="requestBatch()" [autoClearSearch]="true"
                          optionValueField="school_id" optionTextField="school_name"></ngx-select>
            </div>
          <div class="ml-3 wd-sm" *ngIf="param.school_id !==undefined">
            <ngx-select [items]="batchArr" [(ngModel)]="param.batch_id"
                        (ngModelChange)="requestExamDate()" [autoClearSearch]="true"
                        optionValueField="batch_id" optionTextField="batch_name"></ngx-select>
          </div>
          <div class="ml-3 wd-sm" *ngIf="param.batch_id!==undefined">
            <ngx-select [items]="dateArr" [(ngModel)]="param.exam_date" [autoClearSearch]="true"
                        (ngModelChange)="requestTotal()"  optionValueField="exam_date" optionTextField="exam_date"></ngx-select>
          </div>
          <div class="ml-3 mr-2" *ngIf="param.exam_date!==undefined">
            <ngx-select [items]="timeArr" [(ngModel)]="param.time_type" 
                        placeholder="请选择时段" class="wd-wide" (ngModelChange)="requestTotal()"
                        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 groupArr; let i = index">
            <td>{{i + 1}}</td>
            <td>{{v.group_name}}</td>
            <td><span (click)="showStd(v, 1)" class="text-info table-sort">{{v.all_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"  class="text-danger table-sort" (click)="showStd(v,3)">{{v.no_total}}</span></td>
        </tr>
        <tr>
            <td></td>
            <td>合计</td>
            <td>{{groupArr | frameSum : 'all_std_total'}}</td>
            <td>{{groupArr | frameSum : 'exam_total'}}</td>
            <td><span class="table-sort " (click)="downloadWithoutStd()">{{groupArr | frameSum : 'no_total'}}</span></td>
        </tr>
    </tbody>
</table>
