<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('aspect_code')">专业代码</span></th>
      <th><span class="table-sort" (click)="pager.sort('aspect_name')">专业名称</span></th>
      <th>学分</th>
      <th><span class="table-sort" (click)="pager.sort('aspect_status')">状态</span></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><span *ngIf="v.aspect_code===undefined">{{v.aspect_id}}</span>
          <span *ngIf="v.aspect_code!== undefined">{{v.aspect_code}}<span *ngIf="(v.aspect_id+'') !== v.aspect_code">({{v.aspect_id}})</span></span>
      </td>
      <td><span (click)="showModal()">{{v.aspect_name}}</span></td>
      <td>{{v.aspect_score}}</td>
      <td [innerHTML]="v.aspect_status | frameStatusCustom: ['开放','关闭']"></td>
      <td>{{v.fee_amount}}</td>
      <td><span *ngIf="v.aspect_notice" class="text-success" [tooltip]="v.aspect_notice">有报考说明</span></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/aspect/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/aspect/page.htm'" #pager></frame-pager>
</div>


