<div class="content-heading  justify-content-between">
    <div>考生材料批量审核<span class="ml-1 "></span>
        <span *ngIf="total" class="ml-4" style="font-size: 18px;">待审核考生还有【{{total}}】人</span>
    </div>
    <div class="col-lg-5">
        <button class="btn btn-primary btn-lg" type="button" (click)="randomStdBatch()"> 下一批考生</button>
        <button class="btn btn-success btn-lg ml-4" type="button " (click)="acceptAll()"> 一键通过审核</button>
    </div>
    <div class="float-right">
        <div class="row">
            <div style="width:160px;">
                <ngx-select [items]="materialArray" [(ngModel)]="material_type" optionValueField="material_type"
                    (ngModelChange)="randomStdBatchPage()" optionTextField="material_name"></ngx-select>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <ng-container *ngFor="let p of pager.getRecords(); let i = index">
        <div class="col-xl-3 mt-3" [ngClass]="{'text-success':p.verify_status=== 'Active','text-danger':p.verify_status=== 'InActive'}" >
            <div class="card card-default">
                <div class="card-body">
                    <div [ngClass]="{'text-success':p.verify_status=== 'Active','text-danger':p.verify_status=== 'InActive'}">
                        {{p.material_name}}
                        <span *ngIf="p.verify_status=='InActive'" class="text-danger ml-2">已打回</span>
                    </div>
                    <div class="text-center mt-2">
                        <div class="px-2">
                             <img class="img-fluid rounded id_card"  [src]="FrameService.getParamValue('EnrolMaterialWebPath') + p['material_file']"  ngxViewer  [viewerOptions]="viewerOptions" />
                        </div>
                    </div>
                </div>

                <div class="card-footer">
                    <p class="">
                        <span>上传时间：{{p.upload_time}}<span *ngIf="p.verify_time"><br/>审核时间：{{p.verify_time}}</span></span>
                        <span class="float-right">
                            <button class="btn btn-danger btn-sm" type="button" *ngIf="p.verify_status !=='InActive'" (click)="refuseMaterial(p,'材料不符合要求')">打回重传</button>
                            <!-- <button class="btn btn-info btn-sm ml-2" type="button" *ngIf="p['verify_status'] !== 'Active'" (click)="acceptMaterial(p)">通过审核</button> -->
                        </span>
                    </p>
                </div>

            </div>
        </div>
    </ng-container>
</div>
<frame-pager [url]="'./std/material/verify/random/batch/page.htm'" [pagerLimit]="100" [pagerParams]="{material_type: material_type}" #pager></frame-pager>