<!--添加资源-->
<nz-modal [nzWidth]="880" [(nzVisible)]="isVisible" [nzTitle]="title" (nzOnCancel)="handleEditCancel()" (nzOnOk)="handleEditCancel()">
  <form nz-form>
    <div nz-form class="ant-advanced-search-form form-select">
      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="12">
          <nz-form-item nzFlex>
            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzRequired nzFor="title">计划类型</nz-form-label>
            <nz-form-control [nzSpan]="14">
             {{plan?.title}}
            </nz-form-control>
          </nz-form-item>
        </div>

        <!--<div nz-col [nzSpan]="12">-->
          <!--<nz-form-item nzFlex>-->
            <!--<nz-form-label [nzSpan]="6" nzFor="typeId">计划工作量</nz-form-label>-->
            <!--<nz-form-control [nzSpan]="14">-->

            <!--</nz-form-control>-->
          <!--</nz-form-item>-->
        <!--</div>-->
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="12">
          <nz-form-item nzFlex>
            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzRequired nzFor="secondLevelType">
              开始日期
            </nz-form-label>
            <nz-form-control [nzSpan]="14">
              {{plan?.startTime | date:"yyyy-MM-dd HH:mm:ss"}}
            </nz-form-control>
          </nz-form-item>
        </div>

        <div nz-col [nzSpan]="12">
          <nz-form-item nzFlex>
            <nz-form-label [nzSpan]="6" nzFor="serialnoA">终止日期</nz-form-label>
            <nz-form-control [nzSpan]="14">
            {{plan?.endTime | date:"yyyy-MM-dd HH:mm:ss"}}
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="12">
          <nz-form-item nzFlex>
            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzRequired nzFor="secondLevelType">
              循环周期
            </nz-form-label>
            <nz-form-control [nzSpan]="4">
              <span *ngIf="plan?.cycleType == '0'">每天</span>
              <span *ngIf="plan?.cycleType == '1'">工作日</span>
              <span *ngIf="plan?.cycleType == '2'">每周</span>
              <span *ngIf="plan?.cycleType == '3'">每月</span>
              <span *ngIf="plan?.cycleType == '4'">每季度</span>
              <span *ngIf="plan?.cycleType == '5'">每半年</span>
              <span *ngIf="plan?.cycleType == '6'">无</span>
            </nz-form-control>
            <nz-form-control [nzSpan]="2">
              {{plan?.cycleNum}}
            </nz-form-control>
            <nz-form-control [nzSpan]="6">
              次
            </nz-form-control>
          </nz-form-item>
        </div>

        <div nz-col [nzSpan]="12">
          <nz-form-item nzFlex>
            <nz-form-label [nzSpan]="6" nzFor="serialnoA">巡检人数</nz-form-label>
            <nz-form-control [nzSpan]="14">
            {{plan?.number}}
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="12">
          <nz-form-item nzFlex>
            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzRequired nzFor="title">参与人</nz-form-label>
            <nz-form-control [nzSpan]="14">
              <span style="margin-right: 5px" *ngFor="let item of plan?.participants">{{item.username}}</span>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="12">
          <nz-form-item nzFlex>
            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzRequired nzFor="title">负责人</nz-form-label>
            <nz-form-control [nzSpan]="14">
              <span style="margin-right: 5px" *ngFor="let item of plan?.principals">{{item.username}}</span>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="12">
          <nz-form-item nzFlex>
            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="title">计划描述</nz-form-label>
            <nz-form-control [nzSpan]="14">
              {{plan?.description}}
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="12">
          <nz-form-item nzFlex>
            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="title">附件</nz-form-label>
            <nz-form-control [nzSpan]="14">
              <ng-container *ngIf="plan?.fileName">
                <a (click)="downLoad()">下载</a>
                <a class="main-color cursor">{{plan?.fileName}}</a>
              </ng-container>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>
    </div>
  </form>

</nz-modal>
