<div class="content-heading  justify-content-between">
  <div>复试缴费统计<span *ngIf="category"> - {{category.category_name}}</span></div>
  <div class="float-right">
    <div class="row">
      <div *ngIf="categoryArray && categoryArray.length>1" class="ml-3">
        <select class="form-control mt-1" [(ngModel)]="category_id" (ngModelChange)="changCategory()">
          <option [value]="v['category_id']" *ngFor="let v of categoryArray">{{v['category_name']}}</option>
        </select>
      </div>
      <div class="btn-group  ml-3" dropdown>
        <button class="btn dropdown-toggle btn-secondary" type="button" dropdownToggle>报表管理
          <span class="caret"></span>
        </button>
        <div *dropdownMenu class="dropdown-menu modal-lg" role="menu">
          <a class="dropdown-item" href="#"
             (click)="FuncService.ajaxDownload('frame/report/download.htm', {report_name:'EnrolReportReexamine', report_title :'按专业统计复试缴费人数'})">下载报表</a>
          <div class="dropdown-divider"></div>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="table-responsive bg-white table-full">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th><span class="table-sort" (click)="pager.sort('aspect_code')">专业代码</span></th>
      <th><span class="table-sort" (click)="pager.sort('aspect_name')">专业名称</span></th>
      <th><span class="table-sort" (click)="pager.sort('enrol_total')">复试人数</span></th>
      <th><span class="table-sort" (click)="pager.sort('pay_total')">复试缴费人数</span></th>
      <th><span class="table-sort" (click)="pager.sort('confirm_total')">一试到底确认人数</span></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{v.aspect_code}}</td>
      <td>{{v.aspect_alias ? v.aspect_alias : v.aspect_name}}</td>
      <td>{{v.enrol_total}}</td>
      <td>{{v.pay_total}}</td>
      <td>{{v.confirm_total}}</td>
    </tr>
    <tr>
      <td [colSpan]="2">合计</td>
      <td>{{pager.getRecords() | frameSum:'enrol_total'}}</td>
      <td>{{pager.getRecords() | frameSum:'pay_total'}}</td>
      <td>{{pager.getRecords() | frameSum:'confirm_total'}}</td>
    </tbody>
  </table>
  <frame-pager [url]="'./enrol/report/reexamine.htm'" [pagerLimit]="100" [autoRequest]="false"  #pager></frame-pager>
</div>

