<div class="content-heading  justify-content-between">
  <div>复试成绩查询</div>
  <div class="float-right">
    <div class="btn-group ml-3 mr-5" dropdown>
      <button class="btn dropdown-toggle btn-secondary" type="button" dropdownToggle>辅助功能
        <span class="caret"></span>
      </button>
      <div *dropdownMenu class="dropdown-menu" role="menu">
        <a class="dropdown-item" href="#" (click)="doUploaFile()">导入复试成绩</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#"
           (click)="FuncService.ajaxDownload('frame/report/download.htm', {report_name:'YmFinalScoreExport', report_title :'央美2021校考复试成绩'})">导出复试成绩</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="requestWithThread('./score/ym/make/review/log.htm', {batch: 'final'}, {confirmMsg:'确定要重新生成复试的所有成绩复核日志吗？'})">生成成绩复核日志</a>

      </div>
    </div>
  </div>
</div>
<div class="table-responsive bg-white table-full">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th><span class="table-sort" (click)="pager.sort('aspect_name')">专业名称</span></th>
      <th><span class="table-sort" (click)="pager.sort('aspect_ticket_no')">准考证号</span></th>
      <th><span class="table-sort" (click)="pager.sort('cert_id')">证件号码</span></th>
      <th><span class="table-sort" (click)="pager.sort('std_name')">考生姓名</span></th>
      <th><span class="table-sort" (click)="pager.sort('aspect_score')">专业分</span></th>
      <th><span class="table-sort" (click)="pager.sort('aspect_level')">专业排名</span></th>
      <th><span class="table-sort" (click)="pager.sort('subject_name_1')">科目名1</span></th>
      <th><span class="table-sort" (click)="pager.sort('subject_score_1')">科目分1</span></th>
      <th><span class="table-sort" (click)="pager.sort('subject_name_2')">科目名2</span></th>
      <th><span class="table-sort" (click)="pager.sort('subject_score_2')">科目分2</span></th>
      <th><span class="table-sort" (click)="pager.sort('subject_name_3')">科目名3</span></th>
      <th><span class="table-sort" (click)="pager.sort('subject_score_3')">科目分3</span></th>
      <th><span class="table-sort" (click)="pager.sort('aspect_qualified')">合格状态</span></th>
      <th><span class="table-sort">复核成绩内容</span></th>
      <th><span class="table-sort">复核成绩时间</span></th>
      <th><span class="table-sort">复核结论</span></th>
      <th><span class="table-sort">复核答复时间</span></th>
      <th>成绩复核日志</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{v.aspect_name}}</td>
      <td>{{v.ticket_no}}</td>
      <td><span class="table-sort" (click)="showModal({ResponseEntity:v})"> {{v.cert_id}}</span></td>
      <td><span class="table-sort" (click)="showModal({ResponseEntity:v})">{{v.std_name}}</span></td>
      <td>{{v.aspect_score}}</td>
      <td>{{v.aspect_level}}</td>
      <td>{{v.subject_name_1}}</td>
      <td>{{v.subject_score_1}}</td>
      <td>{{v.subject_name_2}}</td>
      <td>{{v.subject_score_2}}</td>
      <td>{{v.subject_name_3}}</td>
      <td>{{v.subject_score_3}}</td>
      <td>
        <span class="text-danger" *ngIf="v.aspect_qualified == '不合格' || v.aspect_qualified == '作弊'">{{v.aspect_qualified}}</span>
        <span class="text-success" *ngIf="v.aspect_qualified == '合格'">{{v.aspect_qualified}}</span>
        <span *ngIf="v.aspect_qualified != '不合格' && v.aspect_qualified != '作弊' && v.aspect_qualified !='合格'">{{v.aspect_qualified}}</span>
      </td>

      <td>
        <span *ngIf="v.apply_msg" class="text-success" [tooltip]="v.apply_msg">复核内容</span>
      </td>
      <td>{{v.check_flag}}</td>
      <td>
        <span *ngIf="v.check_note" class="text-success" [tooltip]="v.check_note">复核结论</span>
      </td>
      <td>
        <span *ngIf="v.check_note"> {{v.recovery_time}}</span>
      </td>

      <td>
        <div class="btn-group" dropdown style="margin-top: -2px;">
          <button class="btn dropdown-toggle btn-secondary btn-sm" type="button" dropdownToggle>成绩复核日志
            <span class="caret"></span>
          </button>
          <div *dropdownMenu class="dropdown-menu modal-lg" role="menu">
            <a class="dropdown-item" href="#" (click)="downloadReviewLog(v)" *ngIf="v.review_log_file">下载</a>
            <div class="dropdown-divider"*ngIf="!v.review_log_file"></div>
            <a class="dropdown-item" href="#" (click)="makeStdReviewLog(v,false)" *ngIf="!v.review_log_file">生成</a>
            <div class="dropdown-divider"*ngIf="v.review_log_file"></div>
            <a class="dropdown-item" href="#" (click)="makeStdReviewLog(v,true)"  *ngIf="v.review_log_file">重制</a>
          </div>
        </div>
      </td>

    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./score/ymfinal/page.htm'" #pager></frame-pager>
</div>


