<div class="content-heading  justify-content-between" *ngIf="!submitFlag">

    <div class="col-lg-2">{{responseEntity?.reg.std_name}} 
        <span *ngIf="responseEntity && responseEntity.check_status == 'Active'" class="ml-1 text-green">已审核</span>
  </div>
    <div class="col-lg-1">
      <input type="text" class="form-control" [(ngModel)]= "searchText" (keyup.enter)="searchStd()"  placeholder="序号"  />
    </div>
    <div class="col-lg-1">
      <button class="btn btn-primary btn-sm" (click)="searchStd()">查询</button>
    </div>
    <div class="col-lg-3">
        <button class="btn btn-success btn-sm ml-1" type="button " (click)="reviewStd(1)"> 同一考生</button>
        <button class="btn btn-danger btn-sm ml-2"  type="button " (click)="openDispline()"> 违纪</button>
        <button class="btn btn-warning btn-sm ml-2" type="button " (click)="reviewStd(2)"> 非同一考生</button>
    </div>
    <div class="col-lg-3">
        <button class="btn btn-primary btn-sm ml-1" type="button" (click)="nextLastStd('InActive')"> 上一个考生</button>
        <button class="btn btn-primary btn-sm ml-2" type="button" (click)="nextLastStd('Active')"> 下一个考生</button>
        <button class="btn btn-success btn-sm ml-2" type="button" (click)="submitStd()"> 提交</button>
    </div>
    <div class="col-lg-2">
      <select class="form-control" [(ngModel)]="subject_id" (ngModelChange)="changeSubject()">
        <option *ngFor="let item of subjectArr" value="{{item.subject_id}}">{{item.subject_name}}</option>
      </select>
    </div>
</div>

<div class="content-heading  justify-content-between" *ngIf="!submitFlag">
  <span style="padding-left: 400px;">
     【{{responseEntity?.real_exam_seq}}】号考生</span>
</div>

<!--主机位副机位视频-->
<div class="row" *ngIf="!submitFlag">
  <ng-container>
      <div class="col-xl-4 mt-3">
        <div class="card card-default" >
            <div class="card-body" style="height: 440px;">
              <div [ngClass]="{'text-success':true,'text-danger':false}">主机位视频</div>
               <div id="aliPlayer"></div><br>
          </div>
        </div>
      </div>

      <div class="col-xl-4 mt-3">
          <div class="card card-default">
              <div class="card-body" style="height: 440px;">
                <div [ngClass]="{'text-success':true,'text-danger':false}">辅机位视频</div>
                  <div id="aliOtherPlayer"></div><br>
            </div>
          </div>
        </div>

        <div class="col-xl-4 mt-3">
          <div class="card card-default">
              <div class="card-body" style="height: 440px;">
                <div [ngClass]="{'text-success':true,'text-danger':false}">考生信息</div>
                <p></p>
                <p style="font-size: 16px;">考生姓名：<span class="ml-2 text-green" style="font-size : 18px;">{{responseEntity?.reg.std_name}}</span></p>
                <p style="font-size: 16px;">身份证号：<span class="ml-2 text-green"  style="font-size : 18px;">{{responseEntity?.reg.cert_id}}</span></p>
                <p style="font-size: 16px;">确认结果： 
                    <span *ngIf="responseEntity && responseEntity.check_status=='Active'" class="ml-2 text-green"  style="font-size : 18px;">已审核
                      <span class="text-green" *ngIf="responseEntity.check_remark == '同一考生'">【{{responseEntity.check_remark}}】</span>
                      <span class="text-warning" *ngIf="responseEntity.check_remark !== '同一考生'">【{{responseEntity.check_remark}}】</span>
                    </span>
                    <span *ngIf="responseEntity && responseEntity.discipline_remark" class="ml-2 text-danger"  style="font-size : 18px;">【违纪】</span>
                  </p>
                <p style="font-size: 16px;">比对相似度：
                  <span class="ml-2 text-green"  style="font-size : 18px;" *ngIf="responseEntity?.video.verify_score >= 70">{{responseEntity?.video.verify_score}}</span>
                  <span class="ml-2 text-warning"  style="font-size : 18px;" *ngIf="responseEntity?.video.verify_score < 70">{{responseEntity?.video.verify_score}}</span>
                </p>
            </div>
          </div>
        </div>

  </ng-container>
</div>

<!--考生证件照 -->
<div class="row" *ngIf="!submitFlag">
  <ng-container>
      <div class="col-xl-4 mt-3">
          <div class="card card-default" style="align-content: center;height:auto">
              <div class="card-body">
                <div [ngClass]="{'text-success':true,'text-danger':false}">身份证照片{{responseEntity?.reg.cert_id}}</div>
                <div class="text-center mt-2">
                    <div class="px-2">
                      <img class="img-fluid rounded id_card"
                            [src]="FrameService.getParamValue('EnrolMaterialPath')+responseEntity?.reg.id_card" ngxViewer [viewerOptions]="viewerOptions" />
                    </div>
                  </div>
            </div>
          </div>
        </div>

      <div class="col-xl-4 mt-3">
        <div class="card card-default" style="align-content: center;height:auto">
            <div class="card-body" >
              <div [ngClass]="{'text-success':true,'text-danger':false}">免冠正面照</div>
              <div class="text-center mt-2">
                  <div class="px-2">
                    <img  class="img-fluid rounded id_card"
                      [src]="FrameService.getParamValue('EnrolMaterialPath')+responseEntity?.reg.std_image"  alt="" ngxViewer [viewerOptions]="viewerOptions"/>
                  </div>
                </div>
          </div>
        </div>
      </div>

      <div class="col-xl-4 mt-3">
          <div class="card card-default" style="align-content: center;height:auto">
              <div class="card-body" >
                <div [ngClass]="{'text-success':true,'text-danger':false}">人脸识别照片</div>
                <div class="text-center mt-2">
                  <div class="px-2" *ngIf="responseEntity?.video.snapshot_file_url">
                    <img  class="img-fluid rounded id_card" [src]="responseEntity?.video.snapshot_file_url" ngxViewer [viewerOptions]="viewerOptions" />
                  </div>
                </div>
            </div>
          </div>
        </div>
  </ng-container>
</div>

<div class="content-heading  justify-content-between" *ngIf="submitFlag">
  <span style="padding-top : 30px; padding-left: 400px;color: red;font-size: 28px;" >你已完成全部考生的审核和提交！</span>
  <span style="padding-top : 440px; padding-left: 400px;"></span>
</div>

