<div class="modal-header">
  <h4 class="modal-title pull-left">乐器/舞种【{{currentEntity.variety_name}}】曲目配置</h4>
</div>
<div class="modal-body">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th class="th-b-1">#</th>
      <th  style="width:140px;">填报类型</th>
      <th  style="width:100px;">必考</th>
      <th>曲目分组</th>
      <th>曲目名称</th>
      <th>填报说明</th>
    </tr>
    </thead>
    <tbody>
    <ng-container *ngFor="let v of FrameService.getParamValue('ExamBatchs') | numberArray">
      <tr class="text-primary">
        <td colspan="5">
          <div class="form-inline pull-right">
            <label *ngIf="FrameService.getParamValue('ExamBatchs') > 1">{{FrameService.getFrameDictText('ExamBatchName',
              v)}}</label>
            <label>填报：</label><input class="form-control form-control-sm" type="number" (keyup)="changeConfig(v,$event)"
                                     [(ngModel)]="currentEntity['enrol_tracks_'+v]"
                                     style="width:60px;">
            <label class="ml-5">实考：</label><input class="form-control form-control-sm" type="number" style="width:60px;"
                                                  [(ngModel)]="currentEntity['exam_tracks_'+v]"/>
          </div>
        </td>
      </tr>
      <tr *ngFor="let s of tracksMap['array_'+v]; let i = index">
        <td>{{s.tracks_order}}</td>
        <td><select class="form-control form-control-sm"  frameDict [dictName]="'TracksEnrolType'" [(ngModel)]="s.tracks_enrol_type"></select></td>
        <td><select class="form-control form-control-sm"  frameDict [dictName]="'FrameStatus'" [tipFlag]="false" [(ngModel)]="s.required_exam_status" ></select></td>
        <td><input class="form-control form-control-sm" type="text"
                   [(ngModel)]="s.tracks_group" [readonly]="s.tracks_enrol_type == 'Appoint'"/></td>
        <td><input class="form-control form-control-sm" type="text"
                  [(ngModel)]="s.tracks_name" [readonly]="s.tracks_enrol_type !== 'Appoint'"/></td>
        <td><input class="form-control input-group-sm" type="text" [(ngModel)]="s.vt_enrol_explain"/></td>
      </tr>
    </ng-container>
    </tbody>
  </table>
</div>
<div class="modal-footer">
  <button class="btn btn-primary" type="button" (click)="saveTracks()">
    保存曲目配置信息
  </button>
  <button class="btn btn-secondary" type="button" (click)="closeWindow()">关闭窗口</button>

</div>
