<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 class="dropdown-divider"></div>
      </div>
    </div>
  </div> 
</div>
<div class="table-responsive bg-white table-full">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th><span class="table-sort" (click)="pager.sort('school_code')">学校代码</span></th>
      <th><span class="table-sort" (click)="pager.sort('school_name')">学校名称</span></th>
      <th>专业</th>
      <th><span class="table-sort" (click)="pager.sort('enrol_start_time')">报名起止时间</span></th>
      <th><span class="table-sort" (click)="pager.sort('ticket_start_time')">准考证起止时间</span></th>
      <th>填报说明</th>
      <th class="th-b-2"></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><span *ngIf="v.aspect_total !== undefined" class="text-info table-button"
                (click)="showAspect(v)">{{v.aspect_total}}</span>
        <span *ngIf="v.aspect_total === undefined" class="text-muted table-button" (click)="showAspect(v)">配置</span>
      </td>
      <td [innerHTML]="getEnrolTime(v)"></td>
      <td [innerHTML]="getTicketTime(v)"></td>

      <td><span *ngIf="v.ticket_note" class="text-success" [tooltip]="v.ticket_note">有报考说明</span></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('conf/agent/delete.htm', v, {successMsg:'考点已删除！', confirmMsg: '确定要删除该考点吗？', successMsgType:'Swal'})"><em
          class="fa-lg fas fa-trash-alt "></em></span>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./conf/agent/page.htm'" #pager></frame-pager>
</div>

