<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="id"
              optionTextField="examyearmonth" [(ngModel)]="query.exam_time_id" placeholder="请选择"
              [ngModelOptions]="{standalone: true}" width="80" noResultsFound="无数据" >
            </flex-select>
          </div>
          <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1">
            <i class="fa fa-search"></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 align="center">
              <th>序号</th>
              <th align="center">报考日期</th>
              <th align="center">报考总人数</th>
              <th align="center">报考总科次</th>
              <th align="center">已缴费人数</th>
              <th align="center">已缴费科次</th>
              <!-- <th>未缴费人数</th>
              <th>未缴费科次</th> -->
              <th align="center">网上报考已缴费人数</th>
              <th align="center">网上报考已缴费科次</th>
              <th align="center">现场报考已缴费人数</th>
              <th align="center">现场报考已缴费科次</th>
              <th align="center">新考生人数</th>
            </tr>
          </thead>
          <tbody>
            <tr *ngFor="let item of stdEnrol; let i = index" align="center">
              <td>{{i+1}}</td>
              <td align="center">{{item.enrol_date}}</td>
              <td align="right">{{item.person_num === undefined ? "0" : item.person_num}}</td>
              <td align="right">{{item.num}}</td>
              <td align="right">{{item.have_fee_person === undefined ? "0" : item.have_fee_person}}</td>
              <td align="right">{{item.have_fee_num === undefined ? "0" : item.have_fee_num}}</td>
              <!-- <td>{{item.no_fee_num === undefined ? "0" : item.no_fee_num}}</td>
              <td>{{item.no_fee_person === undefined ? "0" : item.no_fee_person}}</td> -->
              <td align="right">{{item.net_fee_person === undefined ? "0" : item.net_fee_person}}</td>
              <td align="right">{{item.person_p_num === undefined ? "0" : item.person_p_num}}</td>
              <td align="right">{{item.local_fee_person === undefined ? "0" : item.local_fee_person}}</td>
              <td align="right">{{item.college_p_num === undefined ? "0" : item.college_p_num}}</td>
              <td align="right">{{item.new_std_num === undefined ? "0" : item.new_std_num}}</td>
            </tr>
            <tr align="center" style="font-weight: 900;font-size: 15px;">
              <td  align="center" colspan="2">报考数据汇总</td>
              <td align="right">{{this.sumPerson.all_person}}</td>
              <td align="right">{{this.sumPerson.all_num}}</td>
              <td align="right">{{enrol?.person_num}}</td>
              <td align="right">{{this.sumPerson.fee_num}}</td>
              <td align="right">{{enrol?.person_p_num}}</td>
              <td align="right">{{this.sumPerson.net_fee_num}}</td>
              <td align="right">{{enrol?.college_p_num}}</td>
              <td align="right">{{this.sumPerson.local_num}}</td>
              <td align="right">{{this.sumPerson.new_person}}</td>
            </tr>
          </tbody>
        </table>
      </div>


    </div>
  </div>

</div>