<div class="content-heading  justify-content-between" *ngIf="curStep == 'batch'">
  <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="code_name">
        </ngx-select>
      </div>
    </div>

  </div>
</div>
<div class="table-responsive bg-white table-full" *ngIf="curStep == 'batch'">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th>序号</th>
      <th>批次名称</th>
      <th>状态</th>
      <th>拟录取名单发布时间</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of batchPager.getRecords(); let i = index">
      <td>{{i+1}}</td>
      <td><span class="table-button text-green" (click)="showDetailList(v)">{{v.batch_name}}</span></td>
      <td [innerHTML]="v.status | frameDict:'EnableStatus'"></td>
      <td>{{v.profes_publish_start}}到{{v.profes_publish_end}}</td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./cf/batch/page.htm'" [pagerParams]="{school_id: query.school_id}" #batchPager></frame-pager>
</div>
<!--批次对应的导入列表-->
<div class="content-heading  justify-content-between" *ngIf="curStep == 'detail'">
  <div>批次导入详情</div>
  <div class="float-right">
    <button class="btn btn-primary" type="button"  (click)="doUploaFile()">导入数据</button>&nbsp;&nbsp;
    <button class="btn btn-primary" type="button" (click)="delete()">删除数据</button>&nbsp;&nbsp;
    <button class="btn btn-secondary" type="button" (click)="backBatch()">返回</button>
  </div>
</div>
<div class="table-responsive bg-white" *ngIf="curStep == 'detail'">
  <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>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of detailPager.getRecords(); let i = index">
      <td>{{v.std_name}}</td>
      <td>{{v.exam_id}}</td>
      <td>{{v.major_code}}</td>
      <td>{{v.major_name}}</td>
      <td>{{v.aspect_code}}</td>
      <td>{{v.aspect_name}}</td>
      <td>{{v.admit=='Active'?'是':'否'}}</td>
    </tr>
    </tbody>
  </table>
  <frame-pager url="imp/impDataAdmit/page.htm" [pagerParams]="{school_id: this.currSchoolId, batch_id: this.currBatchId}" #detailPager></frame-pager>
</div>
