<div class="content-heading  justify-content-between">
  <div>评委评分表打印</div>
  <div class="float-right">
    <div class="row">

      <div class="ml-3 wd-sm">
        <ngx-select [items]="dateArray" [(ngModel)]="exam_date" [autoClearSearch]="true"
             (ngModelChange)="requestRoom()" optionValueField="exam_date" optionTextField="exam_date"></ngx-select>
      </div>

      <div class="btn-group ml-3" dropdown *ngIf="exam_date!==undefined">
          <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="#" >打印全部</a>
            <div class="dropdown-divider"></div>
          </div>
      </div>

    </div>
  </div>
</div>

<table class="table table-striped table-hover table-bordered">
  <thead>
    <tr>
      <th class="th-index"></th>
      <th class="text-center">考场地址</th>
      <th class="text-center">面试项目</th>
      <th class="text-center">考场状态</th>
      <th class="wd-sm"></th>
    </tr>
  </thead>
  <tbody>
    <tr *ngFor="let v of roomArray; let i = index">
      <td class="text-center">{{i+1}}</td>
      <td class="text-center">{{v.room_addr}}</td>
      <td class="text-center">{{v.group.group_name}}</td>
      <td class="text-center">
        <span [ngClass]="{'text-info':v.exam_status === 'Examing','text-success':v.exam_status === 'Complete'}">{{v.exam_status | frameDict:'ExamRoomStatus'}}</span>
      </td>
      <td class="text-center">
        <div class="btn-group ml-3" 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="#">打印</a>
            <div class="dropdown-divider"></div>
          </div>
        </div>
      </td>
    </tr>
  </tbody>
</table>


<frame-ajax #ajax [autoRequest]="false"></frame-ajax>