<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">
      <buttn class="btn dropdown-toggle btn-secondary btn-lg" type="button" dropdownToggle>商户管理
        <span class="caret"></span>
      </buttn>
      <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><span (click)="pager.sort('merchant_id')">商户编号</span></th>
      <th><span (click)="pager.sort('merchant_name')">商户名称</span></th>
      <th><span (click)="pager.sort('merchant_status')">状态</span></th>
      <th><span (click)="pager.sort('merchant_desc')">备注信息</span></th>
      <th class="th-b-3"></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{v.merchant_id}}</td>
      <td>{{v.merchant_name}}</td>
      <td [innerHTML]="v.merchant_status | frameStatus"></td>
      <td>{{v.merchant_desc}}</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" title="支付配置" (click)="showComponentModal(PayMerchantChannelComponent,{ResponseEntity:v,'arrayUrl':'pay/channel/all.htm'})">
        <em class="fa-lg fas fa-list"></em>
      </span>
        <span class="table-button ml-3 text-danger" (click)="pager.optrRecord('pay/merchant/delete.htm', v, {successMsg:'支付商户删除完成！', confirmMsg: '确定要删除该支付商户吗？正式运行环境下请谨慎进行此操作！', successMsgType:'Swal'})">
          <em class="fa-lg fas fa-trash-alt "></em>
        </span>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager url="pay/merchant/page.htm" #pager></frame-pager>
</div>


