<div class="content-heading  justify-content-between">
  <div>科目信息配置表管理</div>
  <div class="float-right">
    <div class="row">
      <div class="wd-xl wd-sm mr-1">
        <ngx-select [items]="schoolArray" [(ngModel)]="query.school_id" (ngModelChange)="queryBatchArray()"
                    placeholder="学校"
                    [autoClearSearch]="true" optionValueField="school_id" optionTextField="code_name">
        </ngx-select>
      </div>
      <div class="wd-xl wd-sm mr-1">
        <ngx-select [items]="batchArray" [(ngModel)]="query.batch_id" (ngModelChange)="requestData()" placeholder="批次"
                    [autoClearSearch]="true" optionValueField="batch_id" optionTextField="batch_name">
        </ngx-select>
      </div>
      <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 modal-lg" role="menu">
          <!--                    <a class="dropdown-item" href="#" (click)="showModal()">新增配置表-科目信息配置表信息</a>-->
        </div>
      </div>
    </div>
  </div>
</div>

<div class="table-responsive bg-white">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th></th>
      <th>科目类型</th>
      <th>科目名称</th>
      <th>科目编号</th>
      <th>类型</th>
      <th>考试开始时间</th>
      <th>考试结束时间</th>
<!--      <th>研究方向</th> /-->
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{i + 1}}</td>
      <td>{{v.subject_type}}</td>
      <td>{{v.subject_name}}</td>
      <td>{{v.subject_code}}</td>
      <td>{{v.is_practice==0?'理论':'实践'}}</td>
      <td>{{v.exam_start_time}}</td>
      <td>{{v.exam_end_time}}</td>
      <!--                    <td>{{v.aspect_id}}</td>-->
<!--      <td>{{v.aspect_code}}-{{v.aspect_name}}</td>-->
<!--      <td>-->
<!--                    <span class="table-button" (click)="showModal({ResponseEntity:v})" tooltip="修改">-->
<!--                        <em class="fa-lg fas fa-edit"></em></span>-->
<!--        <span class="table-button ml-3 text-danger" tooltip="删除"-->
<!--              (click)="pager.optrRecord('cf/cfSubject/delete.htm', v, {successMsg:'配置表-科目信息配置表已删除！', confirmMsg: '确定要删除该配置表-科目信息配置表吗？', successMsgType:'Swal'})">-->
<!--                                <em class="fa-lg fas fa-trash-alt "></em></span>-->

<!--      </td>-->
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./cf/cfSubject/page.htm'" [pagerParams]="{school_id: query.school_id,batch_id: query.batch_id}"
               #pager></frame-pager>
</div>
