<div class="content-heading  justify-content-between">
    <div>任务分发</div>
    <div class="float-right">
      <div class="row">
        <div>
          <ngx-select [items]="agentArray" [(ngModel)]="ly_agent_id" (ngModelChange)="ajax.reload({ly_agent_id:ly_agent_id})"
                      placeholder="请选择考点 "
                      class="wd-wide" [size]="'large'"
                      optionValueField="ly_agent_id" optionTextField="ly_agent_name"></ngx-select>
        </div>
        <div class="btn-group mb-1 mr-1 ml-3 " dropdown *ngIf="ly_agent_id !==undefined">
          <button class="btn dropdown-toggle btn-secondary btn-lg" type="button" dropdownToggle>视频管理
            <span class="caret"></span>
          </button>
          <div *dropdownMenu class="dropdown-menu modal-lg" role="menu">
            <a class="dropdown-item" href="#" (click)="showModal({ResponseEntity:ly_agent_id}, {class: 'modal-12'})">任务分发</a>
            <div class="dropdown-divider" ></div>
            <a class="dropdown-item" href="#" (click)="cancelTaskModal()">取消任务分发</a>
            <div class="dropdown-divider" ></div>
            <a class="dropdown-item" href="#" (click)="recycleVideo()" >回收当日未评分考生</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item text-danger" href="#" (click)="initVideo()">初始化评分</a>
            <div class="dropdown-divider"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="table-responsive bg-white table-full">
    <table class="table table-striped table-hover table-bordered">
      <thead>
      <tr>
        <th class="th-index"></th>
        <th>考试项目</th>
        <th>分评/集评</th>
        <th>考生总数(内|外)</th>
        <!-- <th>视频总数(内|外)</th> -->
        <th>已分配数(内|外)</th>
        <th>未分配数(内|外)</th>
      </tr>
      </thead>
      <tbody>
      <tr *ngFor="let v of ajax.getArray(); let i = index">
        <td>{{i+1}}</td>
        <td>{{!v.show_aspect_name ? v.group_name : v.show_aspect_name}}</td>
        <td>
          <span class="text-muted" *ngIf="v.separate_score == null || v.separate_score == '' || v.separate_score == 'InActive'">集评</span>
          <span *ngIf="v.separate_score == 'Active'" class="text-success">分评</span>
        </td>
        <td>{{v.upload_total}}({{v.in_province_total}}|{{v.out_province_total}})</td>
        <td class="text-success">{{v.layout_total}}({{v.layout_in_province_total}}|{{v.layout_out_province_total}})</td>
        <td class="text-muted">{{v.nolayout_total}}({{v.nolayout_in_province_total}}|{{v.nolayout_out_province_total}})</td>
      </tr>
      </tbody>
    </table>
    <frame-ajax [url]="'./exam/video/dist/total.htm'" [autoRequest]="false" [ajaxDataType]="'array'" #ajax></frame-ajax>
  </div>
  
  