<div class="modal-header">
  <h4 class="modal-title pull-left">考点【{{currentEntity.agent_name}}】报考专业方向</h4>
</div>
<div class="modal-body">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th class="th-b-2"></th>
      <th class="th-b-2">#</th>
      <th>专业方向</th>
      <th>开考日期</th>
      <th>人数上限</th>
      <th>是否开启预约</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let s of aspectArray; let i = index">
      <td>
        <div class="form-check">
          <div class="checkbox c-checkbox">
            <label>
              <input type="checkbox" [(ngModel)]="s.checked"/><span class="fa fa-check"></span></label>
          </div>
        </div>
      </td>
      <td>{{s.aspect_id}}</td>
      <td>{{s.aspect_name}}</td>
      <td><input class="form-control form-control-sm" type="text" style="width:120px;"
                 [(ngModel)]="s.aa_start_date" [readonly]="s.checked === false"/></td>
      <td><input class="form-control form-control-sm" type="number" style="width:120px;"
                 [(ngModel)]="s.aa_enrol_limit" [readonly]="s.checked === false"/></td>
      <td>
        <ngx-select [items]="'FrameStatus' | frameDict" [(ngModel)]="s.appointment_flag" 
         optionValueField="dict_value" optionTextField="dict_text"></ngx-select>
      </td>
    </tr>
    </tbody>
  </table>
</div>
<div class="modal-footer justify-content-between">
  <div>
    <div class="btn-group mb-1 mr-1" 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="#" (click)="selectAll(true)">全部选中</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="selectAll(false)">全部取消</a>
      </div>
    </div>

  </div>
  <div>


    <button class="btn btn-primary ml-2" type="button" (click)="saveAspect()">配置专业方向
    </button>
    <button class="btn btn-secondary ml-2" type="button" (click)="closeWindow()">关闭窗口
    </button>
  </div>
</div>
