<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.score_public_start}}到{{v.score_public_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-primary" type="button"  (click)="export()">导出复核申请</button>&nbsp;&nbsp;
    <button class="btn btn-primary" type="button"  (click)="doUploaCheckFile()">导入复核结果</button>&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>科目1名称</th>
      <th>科目1成绩</th>
      <th>科目2名称</th>
      <th>科目2成绩</th>
      <th>科目3名称</th>
      <th>科目3成绩</th>
      <th>科目4名称</th>
      <th>科目4成绩</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.ticket_no}}</td>
      <td>{{v.subject_name1}}</td>
      <td>{{v.score1}}</td>
      <td>{{v.subject_name2}}</td>
      <td>{{v.score2}}</td>
      <td>{{v.subject_name3}}</td>
      <td>{{v.score3}}</td>
      <td>{{v.subject_name4}}</td>
      <td>{{v.score4}}</td>
      <td>{{v.checked=="Active"?"已申请":""}}</td>
      <td>{{v.check_msg}}</td>
    </tr>
    </tbody>
  </table>
  <frame-pager url="imp/impDataScore/page.htm" [pagerParams]="{school_id: this.currSchoolId, batch_id: this.currBatchId}" #detailPager></frame-pager>
</div>
