<div class="content-heading  justify-content-between">
  <div>录取管理-省份列表</div>
  <div class="float-right">
    <div class="row">
      <div>
        <input class="form-control wd-sm" type="text" [(ngModel)]="searchText" placeholder="输入关键字进行搜索"/>
      </div>
      <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)="FuncService.ajaxDownload('frame/report/download.htm', {report_name: 'whStdReport', report_title: '考生录取汇总表'})">导出考生</a>
          <div class="dropdown-divider"></div>
          <!-- <a class="dropdown-item" href="#" (click)="uploader.downloadTempalte()">下载模版</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#" (click)="uploader.uploadFiles()">考生分数导入</a> -->
          <!-- <a class="dropdown-item" href="#" (click)="ModalService.showUploadWindow(bsService,'wish/province/file/upload.htm', {},
           {
            uploadTitle:'考生分数导入',
            templateFile:'ThreadTest.txt',
            uploadCallback:uploadCallback.bind(this),
            autoClose:true
          })">考生分数导入</a> -->
        </div>
      </div>
    </div>
  </div>
</div>

  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <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 ajax.getArray() |  arrayFilter:  searchText; let i = index">
      <td>{{v.province_id}}</td>
      <td>{{v.province_name}}</td>
      <td>{{v.province_status}}</td>
      <td>{{v.wish_file_time}}</td>
      <td><span *ngIf="v.liberal_score">文科:{{v.liberal_score}}</span>
        <span *ngIf="v.science_score" class="ml-2">理科:{{v.science_score}}</span>
      </td>
      <td>{{v.wish_std_total}}</td>
      <td class="text-center align-middle">
        <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" role="menu">
            <a class="dropdown-item" href="#" (click)="showAspect(v)"  *ngIf="v.wish_code_flag === 'Active'">省编专业代码</a>
            <div class="dropdown-divider" *ngIf="v.wish_code_flag === 'Active'"></div>
            <!-- <a class="dropdown-item" href="#" (click)="uploadWish(v)">上传投档文件</a> -->
            <a class="dropdown-item" href="#" (click)="ModalService.showUploadWindow(bsService,'wish/province/file/upload.htm', 
            {province_id: v.province_id},  {
            uploadTitle:'上传投档文件',
            uploadCallback:uploadCallback.bind(this),
            autoClose:true
          })">上传投档文件</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#"
               (click)="showColumn(v)">字段匹配</a>
          </div>
        </div>
      </td>

    </tr>
    </tbody>
  </table>
  <frame-ajax url="wish/province/list.htm" ajaxDataType="array" #ajax></frame-ajax>



<!-- <frame-uploader uploadUrl="wish/province/file/upload.htm" #uploader (afterUpload)="ajax.reload()"></frame-uploader> -->
