<div class="content-heading  justify-content-between">
  <div>编排查询-{{agent?.ly_agent_name}}</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)="changCategoryDate()">
          <option [value]="v['category_id']" *ngFor="let v of categoryArray">{{v['category_name']}}</option>
        </select>
      </div>

      <div class="wd-sm">
        <div class="ml-3" *ngIf="dateArray!==undefined">
          <ngx-select [items]="dateArray" [(ngModel)]="exam_date" [autoClearSearch]="true"
                      (ngModelChange)="changCategoryDate()"></ngx-select>
        </div>
      </div>

      <div class="btn-group ml-3" dropdown>
        <button class="btn dropdown-toggle btn-secondary btn-lg" type="button" dropdownToggle>编排结果
          <span class="caret"></span>
        </button>
        <div *dropdownMenu class="dropdown-menu modal-lg" role="menu">
          <a class="dropdown-item" href="#" (click)="export()">导出结果</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>分组名称</th>
      <th>考试日期</th>
      <th>考试时段</th>
      <th>考场</th>
      <th>考场地址</th>
      <th>准考证号</th>
      <th>考生姓名</th>
      <th>证件号码</th>
      <th>联系电话</th>
      <th>生源地</th>
      <th>类别</th>
      <th>考试科目</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{v.group_name}}</td>
      <td>{{v.ly_exam_date | date: 'yyyy-MM-dd'}}</td>
      <td>{{v.time_type | frameDict: 'ExamTimeType'}}</td>
      <td>第{{v.room_seq}}考场</td>
      <td>{{v.ly_room_addr}}</td>
      <td>{{v.ticket_no}}</td>
      <td>{{v.std_name}}</td>
      <td>{{v.cert_id}}</td>
      <td>{{v.std_mobile}}</td>
      <td>{{v.province_name}}</td>
      <td>{{v.category_name}}</td>
      <td>{{v.subject_name}}</td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./layout/material/search/page.htm'" [pagerParams]="{ly_agent_id: agent?.ly_agent_id, exam_date: exam_date}"   #pager></frame-pager>
</div>


