<div class="content-heading  justify-content-between">
    <div>考场管理</div>
    <div class="float-right">
        <div class="row">
          <div class="wd-xl wd-sm mr-1">
            <ngx-select [items]="schoolArray" [(ngModel)]="query.school_id" (ngModelChange)="queryBatchArray()" placeholder="学校"
                        [autoClearSearch]="true" optionValueField="school_id" optionTextField="code_name">
            </ngx-select>
          </div>
          <div class="wd-xl wd-sm mr-1">
            <ngx-select [items]="batchArray" [(ngModel)]="query.batch_id" (ngModelChange)="requestData()" placeholder="批次"
                        [autoClearSearch]="true" optionValueField="batch_id" optionTextField="batch_name">
            </ngx-select>
          </div>
            <div class="btn-group ml-3" dropdown>
                <button class="btn dropdown-toggle btn-secondary" type="button" dropdownToggle>考场管理
                    <span class="caret"></span>
                </button>
<!--                <div *dropdownMenu class="dropdown-menu modal-lg" role="menu">-->
<!--                    <a class="dropdown-item" href="#" (click)="showAddModal()">新增考场信息</a>-->
<!--                </div>-->
            </div>
        </div>
    </div>
</div>

<div class="table-responsive bg-white">
    <table class="table table-striped table-hover table-bordered">
        <thead>
            <tr>
                    <th></th>
                    <th>考场编号</th>
                    <th>教室编号</th>
                    <th>考试地点</th>
                    <th>考场容量</th>
                    <th>已编排</th>
                    <th>省内考场</th>
            </tr>
        </thead>
        <tbody>
            <tr *ngFor="let v of pager.getRecords(); let i = index">
                    <td>{{i+1}}</td>
                    <td>{{v.room_code}}</td>
                    <td>{{v.room_name}}</td>
                    <td>{{v.room_addr}}</td>
                    <td>{{v.room_capacity}}</td>
                    <td>{{v.layout_num}}</td>
                    <td>{{v.is_provence==1?'是':'否'}}</td>
<!--                <td>-->
<!--                    <span class="table-button" (click)="showModal({ResponseEntity:v})" tooltip="修改">-->
<!--                        <em  class="fa-lg fas fa-edit"></em></span>-->
<!--                    <span class="table-button ml-3 text-danger" tooltip="删除"-->
<!--                        (click)="pager.optrRecord('ly/lyRoom/delete.htm', v, {successMsg:'已删除！', confirmMsg: '确定要删除该吗？', successMsgType:'Swal'})">-->
<!--                        <em class="fa-lg fas fa-trash-alt "></em></span>-->

<!--                </td>-->
            </tr>
        </tbody>
    </table>
    <frame-pager [url]="'./ly/lyRoom/page.htm'" [pagerParams]="{school_id: query.school_id,batch_id: query.batch_id}" #pager></frame-pager>
</div>
