<div class="content-heading  justify-content-between">
  <div>评分区间管理</div>
  <div class="float-right">
    <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)="showModal({'arrayUrl':'conf/subject/list.htm', arrayParam: {subject_type: 'Interview'}})">新增评分区间</a>
        <div class="dropdown-divider"></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 class="th-b-2"></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
    
      <td>{{v.score_name}}</td>
      <td>{{v.score_max}}</td>
      <td>{{v.score_min}}</td>
      <td>{{v.score_tick}}</td>
      <td>{{v.score_level}}</td>
      <td [innerHTML] = "v.master_flag | frameStatus"></td>
      <td>
        <span *ngIf="v.subject_ids === '0' " class="text-success">所有科目</span>
        <span *ngIf="v.subject_ids !== '0' && v.subject_names!=null && v.subject_names.length <= 20 " class="text-primary">部分科目</span>
        <span *ngIf="v.subject_ids !== '0' && v.subject_names!=null && v.subject_names.length > 20 " class="text-danger" [tooltip]="v.subject_names">
         部分科目</span>
      </td>
      <td>
        <span *ngIf="v.subject_ids !== '0' " class="text-primary"><a href="#" (click)="showSubjectConf(v)">配置</a></span>
      </td>
    
      <td>
        <span class="table-button" (click)="showModal({ResponseEntity:v, 'arrayUrl':'conf/subject/list.htm', arrayParam: {subject_type: 'Interview'}})">
          <em class="fa-lg fas fa-edit"></em></span>
          <span class="table-button ml-3 text-danger" 
              (click)="pager.optrRecord('exam/subject/score/delete.htm', v, {successMsg:'评分区间已删除！', confirmMsg: '确定要删除该评分区间吗？', successMsgType:'Swal'})"><em
          class="fa-lg fas fa-trash-alt "></em></span>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./exam/subject/score/page.htm'" #pager></frame-pager>
</div>
