<div class="content-heading  justify-content-between">
  <div>报考费用管理</div>
  <div class="float-right">
    <div class="btn-group mb-1 mr-1" dropdown>
      <button class="btn dropdown-toggle btn-secondary btn-lg" 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 class="dropdown-divider"></div>
      </div>
    </div>
  </div>
</div>
<div class="table-responsive bg-white table-full">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th><span class="table-sort" (click)="pager.sort('fee_code')">费用代码</span></th>
      <th><span class="table-sort" (click)="pager.sort('fee_name')">费用名称</span></th>
      <th>费用范围</th>
      <th>费用类型</th>
      <th>报考金额</th>
      <th class="th-b-2"></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{v.fee_id}}</td>
      <td>{{v.fee_name}}</td>
      <td [ngClass]="{'text-warning':v.fee_range==='Public'}">{{v.fee_range | frameDict:'ConfFeeRange'}}</td>
      <td [ngClass]="{'text-warning':v.fee_type==='Subject'}">{{v.fee_type | frameDict:'ConfFeeType'}}</td>
      <td [innerHTML]="getFeeConfig(v)"></td>
      <td><span class="table-button" (click)="showModal({ResponseEntity:v})"><em
        class="fa-lg fas fa-edit"></em></span>
        <span class="table-button ml-3 text-danger"
              (click)="pager.optrRecord('conf/fee/delete.htm', v, {successMsg:'报考费用配置已经删除！', confirmMsg: '确定要删除该费用配置吗？', successMsgType:'Swal'})"><em
          class="fa-lg fas fa-trash-alt "></em></span>

      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./conf/fee/page.htm'" #pager></frame-pager>
</div>


