<div class="panel panel-default">
  <div>
    <!--标题-->
    <div class="panel-title">
      <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
          <li class="breadcrumb-item">编排结果监控</li>
          <li class="breadcrumb-item active" aria-current="page">报考编排明细检查</li>
        </ol>
      </nav>
    </div>
  </div>

  <div class="panel-body ml-sm " [hidden]="editShowType=='only'">
    <!--查询条件-->
    <div class="row mb-3 ml-1" [hidden]="editShowType=='only'">
      <div class="col-lg-12">
        <form (ngSubmit)="framePager.goSearch()" class="form-inline">
          <!-- 支持排序 -->
          <div class="input-group mr-1 input-group-sm">
            <label>批次：</label>
            <flex-select [allowClear]="true" [url]="YEAR_CODE_URL" respDataPath="array" optionValueField="year_code"
              optionTextField="year_code" [(ngModel)]="query.year_code" placeholder="请选择"
              [ngModelOptions]="{standalone: true}" width="40" noResultsFound="无数据">
            </flex-select>
      </div>
      <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1">
        <i class="fa fa-search"></i> 查询</button>
        <font color="red">&nbsp;&nbsp;&nbsp;&nbsp;说明：检查报考数据是否与编排明细表数据一一对应，无数据，则正常</font>
      </form>
    </div>
  </div>


  <!-- 工具栏 
  <div class="row mb-2" [hidden]="editShowType=='only'">
    <div class="col-lg-12">
      <div class="pull-left">
        <button class="btn btn-primary mr-1 btn-sm" data-toggle="tooltip" data-placement="left" (click)="export()"
          title="导出">
          <i class="fa icon-layers"></i> 导出</button>
      </div>

    </div>
  </div>-->


  <!--表格-->
  <div class="row" [hidden]="editShowType=='only'">
    <div class="col-sm-12 ml-0">
      <table class="table table-sm table-striped table-hover table-bordered bg-white">
        <thead>
          <tr align="center">
            <th>序号</th>
            <th>准考证号</th>
            <th>报考课程代码</th>
            <th>报考课程名称</th>
            <th>报考考区</th>
            <th>考试批次</th>
            <th>报考类型</th>
            <th>报考状态</th>
          </tr>
        </thead>
        <tbody>
          <tr *ngFor="let item of framePager.getRecords(); let i = index" align="center">
            <td>{{framePager.pageStart+i}}</td>
            <td>{{item.ticket_no}}</td>
            <td>{{item.course_code}}</td>
            <td>{{item.course_name}}</td>
            <td>{{item.org_name}}</td>
            <td>{{item.exam_batch}}</td>
            <td>{{item.enrol_type | frameDict : 'EnrolType'}}</td>
            <td>{{item.status | frameDict : 'enrol_status'}}</td>
          </tr>
        </tbody>
      </table>
      <frame-pager [url]="QUERY_URL" hideSearch="true" hasCheck="true" #framePager (preReqEvent)="search($event)">
      </frame-pager>
    </div>
    <!-- 编辑页面 -->
    <div class="col-lg-12" *ngIf="item && editShowType != null &&editShowType!='modal'">
      <ng-container *ngTemplateOutlet="editTemplateModal">
      </ng-container>
    </div>

  </div>
</div>
<!-- only编辑页面-->
<div class="col-lg-12" *ngIf="editShowType != null &&editShowType =='only'">
  <ng-container *ngTemplateOutlet="editTemplateModal">
  </ng-container>
</div>

</div>