<div class="content-heading  justify-content-between">
    <div>编排冲突</div>
    <div class="float-right">
        <div class="row">
            <div class="wd-xl wd-sm">
                <ngx-select [items]="agentArr" [(ngModel)]="query.agent_id"
                    placeholder="考点" [autoClearSearch]="true" optionValueField="agent_id" optionTextField="agent_name">
                </ngx-select>
            </div>
            <div class="wd-xl wd-sm ml-3">
                <ngx-select [items]="'ExamBatchName' | frameDict" [(ngModel)]="query.batch_id"  (ngModelChange)="requestData()"
                optionValueField="dict_value" optionTextField="dict_text" placeholder="批次"></ngx-select>
            </div>
            <div class="btn-group ml-3 mr-3" 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)="export()">导出</a>
                    <div class="dropdown-divider"></div>
                </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="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>
      </tr>
      </thead>
      <tbody>
      <tr  *ngFor="let v of ajax.getArray(); let i = index">
        <td  class="text-center">{{v.aspect_name}}</td>
        <td  class="text-center">{{v.group_name}}</td>
        <td  class="text-center">{{v.face_subject_name}} <span class="text-danger">({{v.face_subject_type | frameDict: 'ConfSubjectType'}})</span></td>
        <td  class="text-center">{{v.face_start_time| date: 'yyyy-MM-dd HH:mm'}}~{{v.face_end_time| date: 'HH:mm'}}</td>
        <td  class="text-center">{{v.other_aspect_name}}</td>
        <td  class="text-center">{{v.written_group_name}}</td>
        <td  class="text-center">{{v.written_subject_name}} <span class="text-danger">({{v.written_subject_type | frameDict: 'ConfSubjectType'}})</span></td>
        <td  class="text-center">{{v.written_start_time| date: 'yyyy-MM-dd HH:mm'}}~{{v.written_end_time| date: 'HH:mm'}}</td>
        <td class="text-center">
            <span class="text-danger" *ngIf="v.enrol_concurrent =='Active'">有兼报</span>
            <span class="text-success" *ngIf="v.enrol_concurrent =='InActive'">无兼报</span>
        </td>
      </tr>
      </tbody>
    </table>
    <frame-ajax [url]="'./layout/conflict/aspect/list.htm'" [requestData]="{ly_agent_id: query.agent_id, batch_id: query.batch_id}"
            [requestParam]="{RequestDataType:'array'}" #ajax></frame-ajax>
  </div>