<div class="content-heading  justify-content-between">
    <div>面试参数管理</div>
    <div class="float-right">
        <div class="row">
            <div class="wd-xl wd-sm">
                <ngx-select [items]="schoolArray" [(ngModel)]="param.school_id" (ngModelChange)="requestParam()"
                    [autoClearSearch]="true" optionValueField="school_id" optionTextField="school_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)="showModal({ResponseArray:schoolArray})">新增参数</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#" (click)="reloadCache()">刷新缓存</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#" (click)="showCopyModal()">同步参数</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>
            </tr>
        </thead>
        <tbody>
            <tr *ngFor="let v of pager.getRecords(); let i = index">
                <td>{{v.school_name}}</td>
                <td>{{v.param_name}}</td>
                <td>{{v.param_value}}</td>
                <td>{{v.default_value}}</td>
                <td>{{v.param_desc}}</td>
                <td>
                    <span class="table-button" (click)="showModal({ResponseEntity:v, ResponseArray : schoolArray})" tooltip="修改"><em
                            class="fa-lg fas fa-edit"></em></span>
                    <span class="table-button ml-3 text-danger" tooltip="删除"
                        (click)="pager.optrRecord('ex/param/delete.htm', v, {successMsg:'面试参数已删除！', confirmMsg: '确定要删除该面试参数吗？', successMsgType:'Swal'})">
                        <em class="fa-lg fas fa-trash-alt "></em></span>
                  
                </td>
            </tr>
        </tbody>
    </table>
    <frame-pager [url]="'./ex/param/page.htm'" [pagerParams]="{school_id: this.param.school_id}" #pager></frame-pager>
</div>