<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({}, {class: 'modal-5p'})">新增参数</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="reloadParam()">重载参数(立即生效)</a>
      </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 href="#" (click)="pager.sort('param_name')">参数名称</span></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.param_name}}</td>
      <td>{{v.param_value}}</td>
      <td>{{v.param_value_type | frameDict: 'FrameValueType'}}</td>
      <td [innerHTML]="v.protect_status | frameStatus"></td>
      <td>{{v.project_owner}}</td>
      <td>
        <span class="cursor-hand" (click)="showModal({ResponseEntity:v})" frameRole res_id="0">
          <em class="fa-lg fas fa-edit"></em>
        </span>
        <span class="cursor-hand ml-3 text-danger" frameRole res_id="0"
              (click)="pager.optrRecord('frame/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="frame/param/page.htm" #pager></frame-pager>
</div>


