<div class="content-heading  justify-content-between">
  <div>插件管理</div>
  <div class="float-right">
    <div class="btn-group mb-1 mr-1" dropdown frameRole resId="0">
      <button class="btn dropdown-toggle btn-secondary btn-lg" type="button" dropdownToggle>插件管理
        <span class="caret"></span>
      </button>
      <div *dropdownMenu class="dropdown-menu" 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 class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th class="th-index">#</th>
      <th><span (click)="pager.sort('module_name')">插件名</span></th>
      <th><span (click)="pager.sort('module_alias')">插件别名</span></th>
      <th><span (click)="pager.sort('module_version')">插件版本</span></th>
      <th><span (click)="pager.sort('module_class')">实现类</span></th>
      <th><span (click)="pager.sort('project_name')">使用工程</span></th>
      <th><span (click)="pager.sort('load_order')">顺序</span></th>
      <th class="th-b-2"></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{i + 1}}</td>
      <td>{{v.module_name}}</td>
      <td>{{v.module_alias}}</td>
      <td>{{v.module_version}}</td>
      <td>{{v.module_class}}</td>
      <td>{{v.project_name}}</td>
      <td>{{v.load_order}}</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('frame/module/delete.htm', v, {successMsg:'插件删除完成！', confirmMsg: '确定要删除该插件吗？', successMsgType:'Swal'})">
          <em class="fa-lg fas fa-trash-alt "></em>
        </span>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager url="frame/module/page.htm" #pager></frame-pager>
</div>


