<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()">新增学校</a>
      </div>
    </div>
  </div>
</div>
<div class="table-responsive bg-white table-full">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th>学校代码</th>
      <th>学校名称</th>
      <th>appid</th>
      <th>学校地址</th>
      <th>创建时间</th>
      <th class="th-b-3"></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{v.school_code}}</td>
      <td>{{v.school_name}}</td>
      <td>{{v.appid}}</td>
      <td title="{{v.school_addr}}">{{v.school_addr | subStr: 30}}</td>
      <td>{{v.create_time}}</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('cf/school/delete.htm', v, {successMsg:'学校已删除！', confirmMsg: '谨慎操作，确定要删除该学校吗？', successMsgType:'Swal'})"><em
          class="fa-lg fas fa-trash-alt "></em></span>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./cf/school/page.htm'" #pager></frame-pager>
</div>

