<div class="content-heading  justify-content-between">
  <div>基础数据导入</div>
  <div class="float-right">
      <div class="row">

          <div class="ml-3">
              <select class="form-control mt-1" [(ngModel)]="currAgentId" placeholder="请选择考点" (change)="requestData()">
                <option [value]="v.agent_id" *ngFor="let v of agentArr">{{v.agent_name}}</option>
              </select>
          </div>&nbsp;
          <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)="ModalService.showUploadWindow(bsService,'cf/basic/data/imp.htm',
              {agent_id: currAgentId},{
              uploadTitle:'基础数据导入',
              templateFile:'模版-基础配置.xlsx',
              uploadCallback:uploadCallback.bind(this),
              autoClose:true
             })">导入数据</a>
              <div class="dropdown-divider"></div>
              <!-- <a class="dropdown-item" href="#" (click)="doUploaFile()">导入数据</a>
              <div class="dropdown-divider"></div>
              <a class="dropdown-item" href="#" (click)="uploader.downloadTempalte()">模板下载</a> -->
           
            </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>学院代码</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>{{v.category_code}}</td>
      <td>{{v.category_name}}</td>
      <td>{{v.major_code}}</td>
      <td>{{v.major_name}}</td>
      <td>{{v.aspect_code}}</td>
      <td>{{v.aspect_name}}</td>
      <td>{{v.aspect_batch}}</td>
      <td>{{v.fee_name}}</td>
      <td>{{v.subject_code}}</td>
      <td>{{v.subject_name}}</td>
      <td>{{v.subject_type}}</td>
      <td>{{v.subject_order}}</td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./conf/basic/data/page.htm'" [pagerParams]="{agent_id: currAgentId}" #pager></frame-pager>
</div>
