<ng-container *ngIf="agent">
  <div class="content-heading  justify-content-between">
    <div>评委列表 - {{agent?.ly_agent_name}}</div>
    <div class="float-right">
      <div class="row">
        <div class="btn-group mb-1 mr-1 ml-3" 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)="showModal({ResponseMap:{ly_agent_id:agent?.ly_agent_id},'arrayUrl':'exam/judge/breeds/list.htm', arrayParam:{ly_agent_id:agent?.ly_agent_id}})">增加评委</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item text-danger" href="#" (click)="pager.optrRecord('exam/judge/clear.htm',{ly_agent_id:agent?.ly_agent_id},{successMsgType:'Swal',successMsg:'评委名单已清理！'})">清理评委</a>
            <div class="dropdown-divider"></div>
            <!-- <a class="dropdown-item " href="#" (click)="uploader.uploadFiles({ly_agent_id: agent?.ly_agent_id})" >导入评委</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#" (click)="uploader.downloadTempalte()">下载评委模版</a> -->
            <a class="dropdown-item" href="#" (click)="ModalService.showUploadWindow(bsService,'exam/judge/upload.htm',
            {ly_agent_id:agent?.ly_agent_id},{
            uploadTitle:'导入评委',
            templateFile:'模版-评委库导入.xlsx',
            uploadCallback:uploadCallback.bind(this),
            autoClose:true
        })">导入评委</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 class="th-index"></th>
        <th><span class="table-sort" (click)="pager.sort('judge_mobile')">手机号码</span></th>
        <th><span class="table-sort" (click)="pager.sort('judge_name')">评委姓名</span></th>
        <th><span class="table-sort" (click)="pager.sort('extract_flag')">可抽取</span></th>
        <th><span class="table-sort" (click)="pager.sort('judge_sex')">性别</span></th>
        <th><span class="table-sort" (click)="pager.sort('judge_school')">单位</span></th>
        <th><span class="table-sort" (click)="pager.sort('judge_title')">职称</span></th>
        <th><span class="table-sort" (click)="pager.sort('judge_breeds')">参评品种</span></th>
        <th><span class="table-sort" (click)="pager.sort('chief_flag')">主评</span></th>
        <th class="th-b-2"></th>
      </tr>
      </thead>
      <tbody>
      <tr *ngFor="let v of pager.getRecords(); let i = index">
        <td>{{i + 1}}</td>
        <td>{{v.judge_mobile}}</td>
        <td>{{v.judge_name}}</td>
        <td [innerHTML]="v.extract_flag | frameStatus"></td>
        <td>{{v.judge_sex}}</td>
        <td>{{v.judge_school}}</td>
        <td>{{v.judge_title}}</td>
        <td>{{v.judge_breeds}}</td>
        <td [innerHTML]="v.chief_flag | frameStatus"></td>
        <td>
          <span class="table-button"
                (click)="showModal({ResponseEntity:v, 'arrayUrl':'exam/judge/breeds/list.htm', arrayParam:{ly_agent_id:agent?.ly_agent_id}})"><em
            class="fa-lg fas fa-edit"></em></span>
        </td>
      </tr>
      </tbody>
    </table>
    <frame-pager [url]="'./exam/judge/page.htm'" [pagerParams]="{ly_agent_id: agent?.ly_agent_id}" #pager></frame-pager>
  </div>


  <!-- <frame-uploader [uploadUrl]="'./exam/judge/upload.htm'" [uploadParams]="{ly_agent_id:agent?.ly_agent_id}" [templateFile]="'模版-评委库导入.xlsx'"  (afterUpload)="afterUpload($event)" [allowedFileType]="['xls']" #uploader></frame-uploader> -->

</ng-container>
