  <div class="content-heading  justify-content-between">
    <div>准考证</div>
    <div class="float-right">
      <div class="row">
        <div class="wd-xl wd-sm mr-1">
          <ngx-select [items]="schoolArray" [(ngModel)]="query.school_id" (ngModelChange)="queryBatchArray()" placeholder="学校"
              [autoClearSearch]="true" optionValueField="school_id" optionTextField="school_name">
          </ngx-select>
        </div>
        <div class="wd-xl wd-sm mr-1">
            <ngx-select [items]="batchArray" [(ngModel)]="query.batch_id" (ngModelChange)="requestData()" placeholder="批次"
                [autoClearSearch]="true" optionValueField="batch_id" optionTextField="batch_name">
            </ngx-select>
        </div>
        <div class="wd-xl wd-sm mr-1">
          <ngx-select [items]="timesArray" [(ngModel)]="query.exam_start_time"  placeholder="考试开始时间"
                      [autoClearSearch]="true" optionValueField="exam_start_time" optionTextField="exam_start_time">
          </ngx-select>
        </div>
        <div class="btn-group mb-1 mr-1" 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">
			
            <button class="btn btn-primary" type="button"  (click)="doUploaFile()">导入生成</button>&nbsp;&nbsp;
			<button class="btn btn-primary" type="button"  (click)="reMakeAll()">重新生成所有</button>
            <!-- <button class="btn btn-primary" type="button"  (click)="deleteAllTicket()">批量删除</button>&nbsp;&nbsp; -->
            <a class="dropdown-item" href="#" (click)="doUploaFile()">导入生成</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#" (click)="downloadSeat()">下载座位条</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#" (click)="downloadPapers()">试卷记录表</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#" (click)="downloadDoor()">门帖</a>
            <!-- <button class="btn btn-primary" type="button"  (click)="deleteAllTicket()">批量删除</button>&nbsp;&nbsp; -->
          </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 class="th-b-2"></th>
      </tr>
      </thead>
      <tbody>
      <tr *ngFor="let v of pager.getRecords(); let i = index">
        <td>{{v.ticket_no}}</td>
        <td>{{v.std_name}}</td>
        <td>{{v.cert_id}}</td>
        <td>{{v.std_mobile}}</td>
        <td>{{v.aspect_name}}</td>
        <td>
          <div class="btn-group" dropdown style="margin-top: -2px;">
            <button class="btn dropdown-toggle btn-secondary btn-sm" type="button" dropdownToggle>准考证
              <span class="caret"></span>
            </button>
            <div *dropdownMenu class="dropdown-menu modal-lg" role="menu">
              <a class="dropdown-item" href="#" (click)="downloadTicket(v)" *ngIf="v.file_path">下载</a>
              <div class="dropdown-divider" *ngIf="v.file_path"></div>
              <a class="dropdown-item" href="#" (click)="makeStdTicket(v,true)">重制</a>

            </div>
          </div>
        </td>
      </tr>
      </tbody>
    </table>
    <frame-pager [url]="'./std/ticket/page.htm'" #pager [pagerParams]="{school_id: query.school_id, batch_id: query.batch_id}"></frame-pager>
  </div>
