<div class="panel panel-default">
  <div>
    <!--标题-->
    <div class="panel-title">
      <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
          <li class="breadcrumb-item active" aria-current="page">当次无人报考课程</li>
        </ol>
      </nav>
    </div>
  </div>

  <div class="panel-body ml-sm " [hidden]="editShowType=='only'">
    <!--查询条件-->
    <div class="row mb-3 ml-1" [hidden]="editShowType=='only'">
      <div class="col-lg-12">
        <form (ngSubmit)="search()" class="form-inline">
          <!-- 支持排序 -->
          <div class="input-group mr-1 input-group-sm">
            <label>批次：</label>
            <flex-select [allowClear]="true" [url]="YEAR_CODE_URL" respDataPath="array" optionValueField="year_code"
              optionTextField="examyearmonth" [(ngModel)]="query.year_code" placeholder="请选择"
              [ngModelOptions]="{standalone: true}" width="80" noResultsFound="无数据">
            </flex-select>
          <!-- <label>关键字：</label>
          <input name="query" [(ngModel)]="query.query" class="input-sm form-control" type="text" value=""
            maxlength="64" placeholder="请输入查询关键字"> -->
      </div>
      <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1">
        <i class="fa fa-search"></i> 查询</button>
        <button class="btn btn-primary mr-1 btn-sm" data-toggle="tooltip" data-placement="left" (click)="export()"
          title="导出">
          <i class="fa icon-layers"></i> 导出</button>
      </form>
    </div>
  </div>




  <!--表格-->
  <div class="row" [hidden]="editShowType=='only'">
    <div class="col-sm-12 ml-0">
      <table class="table table-sm table-striped table-hover table-bordered bg-white">
        <thead>
          <tr>
            <th>序号</th>
            <th align="center">类型</th>
            <th align="center">课程代码</th>
            <th>课程名称</th>
          </tr>
        </thead>
        <tbody>
          <tr *ngFor="let item of noEnrolList; let i = index">
            <td>{{i+1}}</td>
            <td align="center">{{item.is_nation_exam | frameDict :'NationExam'}}</td>
            <td align="center">{{item.course_code}}</td>
            <td>{{item.course_name}}</td>
          </tr>
          <tr>
            <td colspan="3" align="center">合计</td>
            <td colspan="1" >
                国考卷无人报考课程：{{plan.country_num === undefined ? 0 : plan.country_num}} 门 <br>
                区考卷无人报考课程：{{plan.province_num === undefined ? 0 : plan.province_num}} 门
            </td>
          </tr>
        </tbody>
      </table>
     
    </div>
    <!-- 编辑页面 -->
    <div class="col-lg-12" *ngIf="item && editShowType != null &&editShowType!='modal'">
      <ng-container *ngTemplateOutlet="editTemplateModal">
      </ng-container>
    </div>

  </div>
</div>
<!-- only编辑页面-->
<div class="col-lg-12" *ngIf="editShowType != null &&editShowType =='only'">
  <ng-container *ngTemplateOutlet="editTemplateModal">
  </ng-container>
</div>

</div>