<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>大类名称</th>
      <th>开放</th>
      <th>人数上限</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let s of categoryArray; let i = index">
      <td>{{s.category_id}}</td>
      <td>{{s.category_name}}</td>
      <td><select class="form-control form-control-sm" frameDict [dictName]="'FrameStatus'" [tipFlag]="false"
                  style="width:100px;"
                  [(ngModel)]="s.ac_status"></select></td>
      <td><input class="form-control form-control-sm" type="number" style="width:120px;"
                 [(ngModel)]="s.ac_enrol_limit" [readonly]="s.ac_status === 'InActive'"/></td>
    </tr>
    </tbody>
  </table>
</div>
<div class="modal-footer">
  <button class="btn btn-primary ml-2" type="button" (click)="saveCategory()">配置报考大类
  </button>
  <button class="btn btn-secondary ml-2" type="button" (click)="closeWindow()">关闭窗口
  </button>
</div>
