<div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
  <div class="modalBody">
    <div class="title">复制方案<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
    <div class="content content-search">
      <div class="defeat-search-wrap">
        <div class="defeat-search">
          将<em>【{{currentTaskType['queryParamsName']}}-{{currentTaskType['taskTypeName']}}-{{currentTaskType['classesName']}}-{{currentTaskType['bindId']==3?'科室绑定人员':'科室绑定分组'}}】</em>
        </div>
      </div>
      <div class="form">
        <!-- 方案名称 -->
        <overlay-scrollbars #osComponentRef1 class="schemeName">
          <ul *ngIf="!loading1&&schemeNameList.length>0">
            <li *ngFor="let item of schemeNameList" (click)="schemeNameClick(item)"
              [ngClass]="{active:schemeNameId==item.id}">{{item.name}}</li>
          </ul>
          <div class="noData" *ngIf="!loading1&&schemeNameList.length===0">
            <div>暂无数据</div>
          </div>
          <div class="loading" *ngIf="loading1">
            <img src="../../../assets/images/loading.gif" alt="">
            <div>加载中...</div>
          </div>
        </overlay-scrollbars>
        <!-- 任务类型名称 -->
        <overlay-scrollbars #osComponentRef2 class="taskTypeName">
          <ul *ngIf="!loading2&&typeList.length>0">
            <li *ngFor="let item of typeList" (click)="typeNameClick(item)" [ngClass]="{active:typeNameId==item.id}">
              {{item.taskName}}</li>
          </ul>
          <div class="noData" *ngIf="!loading2&&typeList.length===0">
            <div>暂无数据</div>
          </div>
          <div class="loading" *ngIf="loading2">
            <img src="../../../assets/images/loading.gif" alt="">
            <div>加载中...</div>
          </div>
        </overlay-scrollbars>
        <!-- 班次 -->
        <overlay-scrollbars #osComponentRef3 class="frequencyName">
          <ul *ngIf="classesList.length>0">
            <li *ngFor="let item of classesList" (click)="classesNameClick(item)" [ngClass]="{active:item.flag}">
              {{item.name}}-{{currentTaskType['bindId']==3?'科室绑定人员':'科室绑定分组'}}
              <i *ngIf="item.flag">√</i>
            </li>
          </ul>
          <div class="noData" *ngIf="classesList.length===0">
            <div>暂无数据</div>
          </div>
        </overlay-scrollbars>
      </div>
    </div>
    <overlay-scrollbars #osComponentRef4 [ngStyle]="{height:'120px'}" class="defeat-search-wrap--foot">
      <div class="defeat-search-wrap">
        <div class="defeat-search defeat-search--foot">复制到</div>
        <div *ngIf="targetResultFlag" class="defeat-search defeat-search--foot" style="color:#f5222d;margin-left: 8px;font-weight: bold;">请选择您要复制到的方案！</div>
        <div class="defeat-search defeat-search--foot xx" *ngFor="let item of targetResult">
          <em>【{{item.schemeName}}-{{item.typeName}}-{{item.classesName}}-{{currentTaskType.bindId==3?'科室绑定人员':'科室绑定分组'}}】</em>
          <i class="icon icon_transport transport-guanbi1" (click)="deleteThis(item)"></i>
        </div>
      </div>
    </overlay-scrollbars>
    <div class="display_flex justify-content_flex-center">
      <button class="btn know" nz-button nzType="primary" [nzLoading]="isLoading" (click)="ok()">确定</button>
      <button class="btn know" nz-button nzType="primary" nzGhost (click)="hideModal()">取消</button>
    </div>
  </div>
</div>
<!-- 操作成功/失败提示框 -->
<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  [info]="promptInfo"></app-prompt-modal>
