<div class="content-heading  justify-content-between">
  <div>考生材料审核<span *ngIf="responseMap" class="ml-4">
    <span *ngIf="responseMap.PayTotal">缴费审核失败且重新上传共【{{responseMap.PayTotal}}】人</span>
    <span *ngIf="responseMap.NoVerifyTotal">缴费未审核的共【{{responseMap.NoVerifyTotal}}】人</span>
    <span *ngIf="responseMap" class="ml-4 table-sort" (click)="modifyStd()">【{{responseMap.StdReg.std_name}}】</span>
  </span></div>
  <div>
    <button class="btn btn-primary btn-lg" type="button" (click)="randomStd()"> 下一个考生</button>
  </div>
  <div class="float-right">
    <div class="row">
      <!--
      <div style="width:200px;">
        <ngx-select [items]="materialArray" [(ngModel)]="material_type" optionValueField="material_type"
                    (ngModelChange)="randomStd()"
                    optionTextField="material_name"></ngx-select>
      </div>
      -->
      <div style="width:200px;">
        <ngx-select [items]="materialArray" [(ngModel)]="material_type" optionValueField="material_type"
                    (ngModelChange)="randomStd()"
                    optionTextField="material_name"></ngx-select>
      </div>
    </div>
  </div>
</div>
<div class="row" *ngIf="responseMap">
  <ng-container *ngFor="let m of responseMap.MaterialArray">
    <div class="col-xl-4" *ngIf="m.material_id">
      <div class="card card-default">
        <div class="card-body">
          <div class="">{{m.material_name}} </div>
          <div class="text-center">
            <div class="px-2">
              <img class="img-fluid rounded id_card"
                   [src]="frameService.getParamValue('EnrolMaterialWebPath') + m['material_file']"
                   alt="" ngxViewer/>
            </div>
          </div>
        </div>
        <div class="card-footer">
          <p class="">
            <span>上传时间：{{m.upload_time}}<span *ngIf="m.verify_time"><br/>审核时间：{{m.verify_time}}</span></span>
            <span class="float-right">
                 <button class="btn btn-danger btn-sm" type="button"
                         *ngIf="m['verify_status'] === 'Active'"
                         (click)="refuseMaterial(m,'材料不符合要求')">打回重传</button>
              <div class="btn-group ml-2" dropdown *ngIf="m['verify_status'] === 'Active'">
                <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="#" *ngFor="let r of refuseArray"
                     (click)="refuseMaterial(m,r.refuse_msg)">{{r.refuse_msg}}</a>
                  <div class="dropdown-divider"></div>
                  <a class="dropdown-item" href="#"
                     (click)="showModal({ResponseEntity: m, 'arrayUrl': 'std/material/refuse/all.htm'})">自定义原因</a>
                </div>
              </div>
        <button class="btn btn-info btn-sm" type="button"
                *ngIf="m['verify_status'] !== 'Active'"
                (click)="acceptMaterial(m)">通过审核
        </button>
        </span>
          </p>
        </div>
      </div>
    </div>
  </ng-container>
</div>
