<div class="content-heading  justify-content-between">
  <div>录取状态一览</div>
  <div class="float-">
    <div class="btn-group mb-1 mr-5" 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)="FuncService.ajaxDownload('admit/score/download.htm')">下载各专业录取线</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="FuncService.ajaxDownload('admit/wish/aspect/download.htm')">下载拟录取名单（专业排序）</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="FuncService.ajaxDownload('admit/wish2/download.htm')">下载第二志愿拟录</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="FuncService.ajaxDownload('admit/wish/province/download.htm')">下载分省拟录名单</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="FuncService.ajaxDownload('admit/wish/all/download.htm')">下载全国志愿总表</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="makeAllWish()">合成所有省份志愿</a>
        <a class="dropdown-item" href="#" (click)="admitAllWish()">进行拟录判断</a>



      </div>
    </div>
  </div>
</div>
<table class="table table-striped table-hover table-bordered">
  <thead>
  <tr>
    <th class="text-center">代码</th>
    <th class="text-center">省份名称</th>
    <th class="text-center">启用录取</th>
    <th class="text-center">专业状态</th>
    <th class="text-center">合格名单</th>
    <th class="text-center">文化线状态</th>
    <th class="text-center">考生志愿</th>
    <th class="text-center">拟录取名单</th>
    <th class="text-center">最终录取</th>
    <td class="th-b-1"></td>
  </tr>
  </thead>
  <tbody>
  <tr *ngFor="let v of pager.getRecords(); let i = index">
    <td class="text-center">{{v.province_id}}</td>
    <td>{{v.province_name}}</td>
    <td class="text-center" [innerHTML]="v.province_status | frameStatus"></td>

    <td [hidden]="v.province_status === 'InActive'" class="text-center">
      <span class="table-button text-danger" title="上传【{{v.province_name}}】专业编码" (click)="uploadAspect(v)" *ngIf="v.aspect_code_status !== 'Active'">
          未导入
      </span>
      <span class="table-button text-success" title="上传【{{v.province_name}}】专业编码" (click)="uploadAspect(v)" *ngIf="v.aspect_code_status === 'Active'">
          已导入
      </span>
    </td>

    <td [hidden]="v.province_status === 'InActive'" class="text-center"
        [innerHTML]="v.qualified_std_upload_status | frameStatusCustom : ['已上传','未上传']"></td>
    <td [hidden]="v.province_status === 'InActive'" class="text-center">
      <span class="table-button" [ngClass]="{'text-success': v.cultural_line_status === 'Active', 'text-danger':v.cultural_line_status !== 'Active'}" title="上传【{{v.province_name}}】志愿表" (click)="confirmScore(v)">
          {{v.cultural_line_status === 'Active'? '已确定':'未确定'}}
      </span>
    </td>
    <td [hidden]="v.province_status === 'InActive'" class="text-center">
      <span class="table-button text-danger" title="上传【{{v.province_name}}】志愿表" (click)="uploadWish(v)" *ngIf="v.wish_status !== 'Active'">
          未导入
      </span>
      <span class="table-button text-success" title="上传【{{v.province_name}}】志愿表" (click)="uploadWish(v)" *ngIf="v.wish_status === 'Active'">
          已导入
      </span>
    </td>
    <td [hidden]="v.province_status === 'InActive'" class="text-center"
        [innerHTML]="v.beadmit_upload_status | frameStatusCustom : ['已发送','未完成']"></td>
    <td [hidden]="v.province_status === 'InActive'" class="text-center"
        [innerHTML]="v.admit_upload_status | frameStatusCustom : ['已完成','未完成']"></td>
    <td  [hidden]="v.province_status === 'InActive'">
      <span class="table-button" title="下载考生志愿" [hidden]="v.wish_status !== 'Active'" (click)="FuncService.ajaxDownload('admit/province/wish/download.htm', {province_id: v.province_id})"><em class="fa-lg fas fa-cloud-download-alt"></em></span>

    </td>
  </tr>
  </tbody>
</table>

<frame-pager [url]="'./admit/province/page.htm'" [showPagination]="false" #pager ></frame-pager>

<!-- <frame-uploader [uploadUrl]="'admit/province/wish/upload.htm'" (afterUpload)="afterUpload($event)" #uploader></frame-uploader> -->




