<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 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>
   
  </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>
      <th>考生材料提交时间</th>
      <th>招办初审时间</th>
      <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 [innerHTML]="v.review_mode | frameDict:'ReviewMode'"></td>
      <td>{{v.upload_start_time}}<br>{{v.upload_end_time}}</td>
      <td>{{v.intial_review_start}}<br>{{v.intial_review_end}}</td>
      <td>{{v.profes_review_start}}<br>{{v.profes_review_end}}</td>
      <td>{{v.ticket_start_time}}<br>{{v.ticket_end_time}}</td>
      <td>{{v.score_public_start}}<br>{{v.score_public_end}}</td>
      <td>{{v.profes_publish_start}}<br>{{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)="doUploaFileIncre()">增量导入</button>&nbsp;&nbsp;
      <button class="btn btn-primary" type="button" (click)="export()">导出数据</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>
          <th>专业方向代码</th>
          <th>专业方向名称</th>
          <th>导师名称</th>
          <th class="th-b-3"></th>
        </tr>
        </thead>
        <tbody>
        <tr *ngFor="let v of detailPager.getRecords(); let i = index">
          <td>{{v.std_name}}</td>
          <td>{{v.cert_id}}</td>
          <td>{{v.exam_id}}</td>
          <td>{{v.std_mobile}}</td>
          <td [innerHTML]="v.std_edu | frameDict:'StdEduType'"></td>
          <td>{{v.major_code}}</td>
          <td>{{v.major_name}}</td>
          <td>{{v.aspect_code}}</td>
          <td>{{v.aspect_name}}</td>
          <td>{{v.enr_doct_name}}</td>
          <td>
            <span class="table-button" (click)="showEditModal(v)"><em class="fa-lg fas fa-edit"></em></span>
          </td>            
        </tr>
        </tbody>
      </table>
  <frame-pager url="imp/data/page.htm" [pagerParams]="{school_id: this.currSchoolId, batch_id: this.currBatchId}" #detailPager></frame-pager>
</div>
