<div class="modal-header">
  <h4 class="modal-title pull-left">查看科目<span *ngIf="ResponseMap.TracksArray.length>0">/曲目</span></h4>
</div>
<div class="modal-body">
  <div class="card card-default">
    <div class="card-body">
      <div class="form-group row">
        <label class="col-lg-2 col-form-label text-lg-right">考试科目</label>
        <div class="col-lg-10 col-md-10">
          <table class="table table-striped table-hover table-bordered">
            <thead>
            <tr>
              <th class="th-index"></th>
              <th>科目名称</th>
              <th>科目类型</th>
              <th>乐器/舞种</th>
            </tr>
            </thead>
            <tbody>
            <tr *ngFor="let v of ResponseMap.SubjectArray; let i = index">
              <td>{{ i + 1}}</td>
              <td>{{v.subject_name}}</td>
              <td>{{v.subject_type | frameDict :'ConfSubjectType'}}</td>
              <td>{{v.variety_name}}</td>
            </tr>
            </tbody>
          </table>
        </div>
      </div>
      <div class="form-group row" *ngIf="ResponseMap.TracksArray.length>0">
        <label class="col-lg-2 col-form-label text-lg-right">填报曲目</label>
        <div class="col-lg-10 col-md-10">
          <table class="table table-striped table-hover table-bordered">
            <thead>
            <tr>
              <th class="th-index"></th>
              <th>曲目名称</th>
            </tr>
            </thead>
            <tbody>
            <tr *ngFor="let v of ResponseMap.TracksArray; let i = index" >
              <td>{{ i + 1}}</td>
              <td *ngIf="v.tracks_enrol_type == 'User'"><input class="form-control input-group-sm" type="text" [(ngModel)]="v.tracks_name"/></td>
              <td *ngIf="v.tracks_enrol_type == 'Variety'">
                <ngx-select [items]="tracksList" [(ngModel)]="v.tracks_id" optionValueField="tracks_id" optionTextField="tracks_name"></ngx-select>
              </td>
            </tr>
            </tbody>
          </table>
        </div>
      </div>
      <div class="form-group row">
        <label class="col-lg-2 col-form-label text-lg-right">备注信息</label>
        <div class="col-lg-10 col-md-10">
         <textarea class="form-control" type="text"  rows="3"
                   [(ngModel)]="currentEntity.business_note"></textarea>
          <form-valid [form]="detailForm" fieldName="business_note"></form-valid>
        </div>
      </div>

    </div>
  </div>
</div>
<div class="modal-footer">
  <button class="btn btn-primary" type="button" *ngIf="ResponseMap.TracksArray.length>0" (click)="saveTracks()">更改曲目信息
  </button>
  <button class="btn btn-secondary" type="button" (click)="closeWindow()">关闭窗口</button>
</div>
