<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({'arrayUrl':'frame/region/province/list.htm'})">新增专业</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('agent_code')">录取专业编号</span></th>
                <th><span class="table-sort" (click)="pager.sort('agent_name')">录取专业代码</span></th>
                <th><span class="table-sort" (click)="pager.sort('agent_province')">录取专业</span></th>
                <th><span class="table-sort" (click)="pager.sort('enrol_scope')">录取招考方向</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.wish_aspect_id}}</td>
                <td>{{v.wish_aspect_code}}</td>
                <td>{{v.wish_aspect_name}}</td>
                <td>{{v.wish_variety_name}}</td>
                <td><a href="#" (click)="showModal({ResponseEntity: v})">{{v.num}}</a></td>
                <td>
                    <span class="table-button" (click)="showModal({ResponseEntity:v, 'arrayUrl':'frame/region/province/list.htm'})">
                        <em class="fa-lg fas fa-edit"></em></span>
                    <span class="table-button ml-3 text-danger"
                         (click)="pager.optrRecord('wish/aspect/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/aspect/page.htm'" #pager></frame-pager>
</div>