<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)="buildLayout()">生成编排</a>-->
<!--                  <div class="dropdown-divider"></div>-->
<!--                  <a class="dropdown-item" href="#" (click)="deleteData()">删除编排</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>
                    <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.std_no}}</td>
                    <td>{{v.major_code}}</td>
                    <td>{{v.major_name}}</td>
                    <td>{{v.aspect_code}}</td>
                    <td>{{v.aspect_name}}</td>
                    <td>{{v.subject_code}}</td>
                    <td>{{v.subject_name}}</td>
                    <td>{{v.exam_start_time}}</td>
                    <td>{{v.exam_end_time}}</td>
                    <td>{{v.room_seq}}</td>
                    <td>{{v.class_room_no}}</td>
                    <td>{{v.seat_no}}</td>
                    <td>{{v.room_addr}}</td>
            </tr>
        </tbody>
    </table>
    <frame-pager [url]="'./std/stdLayout/page.htm'" [pagerParams]="{school_id: query.school_id,batch_id: query.batch_id}" #pager></frame-pager>
</div>
