<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" role="menu">
        <a class="dropdown-item" href="#" (click)="showModal({}, {class: 'modal-65p'})">新增消息处理器</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>{{v.msg_type | frameDict: 'WeixinMsgType'}}</td>
      <td>{{v.process_class}}</td>
      <td>{{v.process_param}}</td>
      <td [innerHTML]="v.run_thread | frameStatus"></td>
      <td>{{v.process_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/processor/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/processor/page.htm'" [pagerParams]="{wx_id: wxDefine?.wx_id}" #pager></frame-pager>
</div>


