<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>
      <button class="btn btn-primary" type="button"  (click)="doUploaFile()">导入学术评审老师</button>&nbsp;&nbsp;
    </div>
  </div>
</div>
<div class="table-responsive bg-white table-full">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th width="5%">序号</th>
      <th width="15%">专业名称</th>
      <th width="15%">专业方向</th>
      <th width="20%">设置评审导师</th>
      <th width="10%">报考人数</th>
      <th width="10%">通过率(%)</th>
      <th width="10%">通过人数</th>
      <th width="5%" class="th-b-2"></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{i+1}}</td>
      <td>{{v.major_name}}</td>
      <td>{{v.aspect_name}}</td>
      <td><span (click)="setReviewOptr(v);" class="{{v.optr_name ? 'text-green' : ''}} table-button">{{formatOptrName(v)}}</span></td>
      <td>{{v.enrol_cnt}}</td>
      <td>{{v.pass_percent}}</td>
      <td>{{v.pass_cnt}}</td>
      <td>
          <span class="table-button" (click)="showModal({ResponseEntity:v})"><em class="fa-lg fas fa-edit"></em></span>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./cf/aspect/page.htm'" [pagerParams]="{school_id: query.school_id,batch_id: query.batch_id}" #pager></frame-pager>
</div>

