<div class="list-template">
  <div class="list-template__content">
    <div class="list-template__top" nz-row>
      <div nz-col nzXl='17' class="list-template__searchBox">
        <div class="list-template__searchItem">
          <span class="label">备注</span>：
          <input nz-input class="formItem" placeholder="请输入备注" [(ngModel)]="searchDto.logRemarks" />
        </div>
        <div class="list-template__searchItem">
          <span class="label">操作类型</span>：
          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
            nzPlaceHolder="请选择操作类型" [(ngModel)]="searchDto.operation">
            <nz-option *ngFor="let option of operationList" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
          </nz-select>
        </div>
        <div class="list-template__searchItem">
          <span class="label">操作时间</span>：
          <nz-range-picker [(ngModel)]="searchDto.dateRange"></nz-range-picker>
        </div>
      </div>
      <div nz-col nzXl='7' class="list-template__btns">
        <button nz-button class="btn default ml8" (click)='search()'>搜索</button>
        <button nz-button class="btn default ml8" (click)='reset()'>重置</button>
      </div>
    </div>
    <div class="list-template__bottom">
      <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
        [nzLoading]="loading1">
        <thead>
          <tr class="thead">
            <th nzWidth="5%">序号</th>
            <th nzWidth="10%">工单号</th>
            <th nzWidth="10%">申请科室</th>
            <th nzWidth="10%">操作类型</th>
            <th nzWidth="10%">操作人</th>
            <th nzWidth="10%">交接人</th>
            <th nzWidth="10%">操作时间</th>
            <th nzWidth="15%">备注</th>
            <th nzWidth="10%">图片</th>
            <th nzWidth="10%">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr *ngFor="let data of listOfData;let index=index;">
            <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
            <td>{{ data.gdcode }}</td>
            <td>{{ data.createDept?.dept }}</td>
            <td>{{ data.operation?.name }}</td>
            <td>{{ data.username }}</td>
            <td>{{ data.handoverUserid?.name }}</td>
            <td>{{ data.operationTime }}</td>
            <td>{{ data.logRemarks }}</td>
            <td><button *ngIf="data.attachments" (click)="previewImageHandler(data.attachments)">查看图片</button><span *ngIf="!data.attachments">无</span></td>
            <td>
              <div class="coop">
                <span *ngIf="coopBtns.look" (click)="detail($event,data.workOrderId)">查看</span>
              </div>
            </td>
          </tr>
        </tbody>
      </nz-table>
      <div class="list-template__pagination">
        <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
          (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
        </nz-pagination>
      </div>
    </div>
  </div>
</div>
<app-image-viewer [imageUrl]="imgs" hidden *ngIf="isPreview" [isPreviewNow]="true"></app-image-viewer>
<!-- 查看详情 -->
<router-outlet></router-outlet>
