<div class="content-heading  justify-content-between">
    <div>录取管理-专业计划</div>
    <div class="float-right">
        <div class="row">
            <div class="btn-group mb-1 mr-1 ml-2" 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)="ModalService.showUploadWindow(bsService,'wish/plan/export.htm', {},
                    {
                        uploadTitle:'专业计划导入',
                        templateFile:'模版-录取计划导入.xls',
                        uploadCallback:uploadCallback.bind(this),
                        autoClose:true
                    })">专业计划导入</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#" (click)="mergeGroup()">合并专业计划</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#" (click)="breakGroup()">打散专业计划</a>
                </div>
            </div>
        </div>
    </div>
</div>


<table class="table table-striped table-hover table-bordered">
    <thead>
        <tr>
            <th>选择</th>
            <th><span class="table-sort">录取年份</span></th>
            <th><span class="table-sort">专业分组</span></th>
            <th><span class="table-sort">录取专业编号</span></th>
            <th><span class="table-sort">录取专业编码</span></th>
            <th><span class="table-sort">录取专业名称</span></th>
            <th><span class="table-sort">录取招考方向</span></th>
            <th><span class="table-sort">校考专业名称</span></th>
            <th><span class="table-sort">录取计划人数</span></th>
            <th><span class="table-sort">限定性别</span></th>
            <!-- <th><span class="table-sort">文化课占比</span></th>
            <th><span class="table-sort">校考占比</span></th>
            <th><span class="table-sort">合格比率</span></th> -->
            <th></th>
        </tr>
    </thead>
    <tbody>
        <tr *ngFor="let v of pager.getRecords(); let i = index">
            <td>
                <div class="checkbox c-checkbox">
                    <label><input type="checkbox" [(ngModel)]="v.checked"/> <span class="fa fa-check"></span></label>
                </div>
            </td>
            <td>{{v.wish_year}}</td>
            <td>{{v.wish_group}}</td>
            <td>{{v.wish_aspect_id}}</td>
            <td>{{v.wish_aspect_code}}</td>
            <td>{{v.wish_aspect_name}}</td>
            <td>{{v.wish_variety_name}}</td>
            <td>{{v.exam_aspect_name}}</td>
            <td>{{v.wish_std_total}}</td>
            <td>{{v.wish_sex}}</td>
            <!-- <td>{{v.culture_rate}}</td>
            <td>{{v.school_score_rate}}</td>
            <td>{{v.qualified_rate}}</td> -->
            <td>
                <span class="table-button ml-3 text-danger"
                    (click)="pager.optrRecord('wish/plan/delete.htm', v, {successMsg:'计划已删除！', confirmMsg: '确定要删除该专业计划吗？', successMsgType:'Swal'})">
                <em  class="fa-lg fas fa-trash-alt "></em>
                </span>
            </td>
        </tr>
    </tbody>
</table>

<frame-pager [url]="'./wish/plan/page.htm'" #pager></frame-pager>