<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({}, {class: 'modal-5p'})">新增参数</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>类型</th>
      <th>参数名称</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>{{i+1}}</td>
      <td [innerHTML]="v.wx_id > 0 | frameStyle: [['私有参数','全局参数'],['','text-info']]"></td>
      <td>{{v.param_name}}</td>
      <td>{{v.param_value}}</td>
      <td>{{v.param_type | frameDict: 'FrameValueType'}}</td>
      <td>{{v.param_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 text-danger"
              (click)="pager.optrRecord('weixin/param/delete.htm', v, {successMsg:'参数成功删除！', confirmMsg: '确定要删除该参数吗？请慎重进行此操作！', successMsgType:'Swal'})"><em
          class="fa-lg fas fa-trash-alt "></em></span>

      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./weixin/param/page.htm'" [pagerParams]="{wx_id: wxDefine?.wx_id}" #pager></frame-pager>
</div>


