<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">
    <div class="row" style="margin-left:5px;">
      <ngx-select [items]="classroomArray" [(ngModel)]="query.class_room" (ngModelChange)="changeClassroom()" placeholder="考场"
        [autoClearSearch]="true" optionValueField="class_room" optionTextField="class_room" style="width: 200px;">
      </ngx-select>&nbsp;&nbsp;
      <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-secondary" type="button" (click)="backBatch()">返回</button>
    </div>
  </div>
</div>
<div class="modal-body" *ngIf="curStep == 'detail'">
  <div class="card card-default">
    <div class="card-body" *ngFor="let v of classVoArray; let i = index"><!--循环考场-->
      <div class="row" style="display: flex;justify-content: center;align-items: center; ">
        <span style="font-weight: 600;color:#2a5caa">【{{v.class_room}}】</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button class="btn btn-primary" type="button" (click)="saveClassRoomScore(v)">保存</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button class="btn btn-primary" type="button" (click)="goSubmit(v)">提交分数</button>
      </div>
      <div class="table-responsive bg-white" style="margin-top: 2px;" *ngFor="let gList of v.group_list; let j = index"><!--循环考场下面的分组list-->
        <span style="font-weight: 600;color: green;">【{{gList[0].group_name}}】</span>
        <table class="table table-striped table-hover table-bordered">
          <thead>
            <tr>
              <th width="3%" style="text-align: center;">序号</th>
              <th width="4%" style="text-align: center;">姓名</th>
              <th width="4%" style="text-align: center;">准考证</th>
              <th width="6%" style="text-align: center;">专业</th>
              <th width="6%" style="text-align: center;">专业综合面试</th>
              <th width="7%" style="text-align: center;">专业综合面试90%</th>
              <th width="6%" style="text-align: center;">外语面试10%</th>
              <th width="5%" style="text-align: center;">复试总成绩</th>
              <th width="5%" style="text-align: center;">初试总分</th>
              <th width="7%" style="text-align: center;">初试总成绩(权重)</th>
              <th width="4%" style="text-align: center;">总成绩</th>
              <th width="3%" style="text-align: center;">排名</th>
              <th width="4%" style="text-align: center;">导师</th>
            </tr>
          </thead>
          <tbody>
          <tr *ngFor="let s of gList; let k = index">
            <td style="text-align: center;">{{s.score_seq}}</td>
            <td style="text-align: center;">{{s.std_name}}</td>
            <td style="text-align: center;">{{s.ticket_no}}</td>
            <td style="text-align: center;">{{s.aspect_name}}</td>
            <td style="text-align: center;"><input class="form-control" type="number" [(ngModel)]="s.final_score" (ngModelChange)="checkScore(s)" maxlength="4" size="8" title="只能输入0-100整数!"/></td>
            <td style="text-align: center;">{{s.final_score_weight}}</td>
            <td style="text-align: center;">{{s.foreign_score}}</td>
            <td style="text-align: center;">{{s.interview_score}}</td>
            <td style="text-align: center;">{{s.first_score}}</td>
            <td style="text-align: center;">{{s.first_score_weight}}</td>
            <td style="text-align: center;">{{s.total_score}}</td>
            <td style="text-align: center;"><span style="color: #f47920;font-weight: 800;font-style: italic;">{{s.score_level}}</span></td>
            <td style="text-align: center;">{{s.doct_name}}</td>
          </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
<div class="modal-body" *ngIf="curStep == 'update'">
  <div class="card card-default">
    <div class="card-body"><!--修改指定考场-->
      <div class="row" style="display: flex;justify-content: center;align-items: center; ">
        <span style="font-weight: 600;color:#2a5caa">【{{update_list[0][0].class_room}}】</span>&nbsp;&nbsp;&nbsp;&nbsp;
        <button class="btn btn-primary" type="button" (click)="updateScoreRemark()">确认提交</button>&nbsp;&nbsp;&nbsp;&nbsp;
        <button class="btn btn-primary" type="button" (click)="goDetail()">返回</button>
      </div>
      <div class="table-responsive bg-white" style="margin-top: 2px;" *ngFor="let gList of update_list; let j = index"><!--循环考场下面的分组list-->
        <span style="font-weight: 600;color: green;">{{gList[0].group_name}}</span>
        <table class="table table-striped table-hover table-bordered">
          <thead>
            <tr>
              <th width="4%" style="text-align: center;">姓名</th>
              <th width="2%" style="text-align: center;">准考证</th>
              <th width="6%" style="text-align: center;">专业</th>
              <th width="6%" style="text-align: center;">专业综合面试</th>
              <th width="8%" style="text-align: center;">专业综合面试90%</th>
              <th width="6%" style="text-align: center;">外语面试10%</th>
              <th width="5%" style="text-align: center;">复试总成绩</th>
              <th width="5%" style="text-align: center;">初试总分</th>
              <th width="7%" style="text-align: center;">初试总成绩(权重)</th>
              <th width="3%" style="text-align: center;">总成绩</th>
              <th width="3%" style="text-align: center;">排名</th>
              <th width="4%" style="text-align: center;">导师</th>
              <th width="6%" style="text-align: center;">拟录取意见</th>
            </tr>
          </thead>
          <tbody>
          <tr *ngFor="let s of gList; let k = index">
            <!-- <td>{{s.score_seq}}</td> -->
            <td style="text-align: center;">{{s.std_name}}</td>
            <td style="text-align: center;">{{s.ticket_no}}</td>
            <td style="text-align: center;">{{s.aspect_name}}</td>
            <td style="text-align: center;">{{s.final_score}}</td>
            <td style="text-align: center;">{{s.final_score_weight}}</td>
            <td style="text-align: center;">{{s.foreign_score}}</td>
            <td style="text-align: center;">{{s.interview_score}}</td><!--复试面试成绩-->
            <td style="text-align: center;">{{s.first_score}}</td><!--初试总成绩-->
            <td style="text-align: center;">{{s.first_score_weight}}</td>
            <td style="text-align: center;">{{s.total_score}}</td>
            <td style="text-align: center;"><span style="color: #f47920;font-weight: 800;font-style: italic;">{{s.score_level}}</span></td>
            <td style="text-align: center;">{{s.doct_name}}</td>
            <td style="text-align: center;"><input class="form-control" type="text" [(ngModel)]="s.admiss_remark" maxlength="128" size="30"/></td>
          </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>

