distribution-user-evaluate-statistics.component.html 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <div class="searchDataWrap">
  2. <div class="searchData">
  3. <app-custom-change-date #customChangeDate [isShowType]="false"></app-custom-change-date>
  4. <div class="searchDataItem">
  5. <span class="label">人员</span>:
  6. <nz-select class="selectItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeUserInp($event)" nzAllowClear nzPlaceHolder="请选择人员" [(ngModel)]="userId" (nzOpenChange)="openChangeUser($event)">
  7. <ng-container *ngFor="let option of userList">
  8. <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
  9. </ng-container>
  10. <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
  11. <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
  12. </nz-option>
  13. </nz-select>
  14. </div>
  15. </div>
  16. <div class="operation">
  17. <i class="icon_transport transport-gengduo" nz-tooltip nzTooltipTitle="更多搜索" (click)="showMore()"></i>
  18. <button nz-button class="btn default" (click)="search()">查询</button>
  19. <button nz-button class="btn default ml8" (click)="reset()">重置</button>
  20. <button nz-button class="btn default ml8" (click)="excelExport()" [nzLoading]="excelExportLoading">导出</button>
  21. </div>
  22. </div>
  23. <div class="moreFilter" *ngIf="fieldConfig.fields.groupDTO || fieldConfig.fields.deptDTO || fieldConfig.fields.buildingDTO || fieldConfig.fields.taskTypeDTO || fieldConfig.fields.statisticsTypeDTO">
  24. <span>{{fieldConfig.fields.groupDTO?.groupName}}</span>
  25. <span>{{fieldConfig.fields.statisticsTypeDTO?.name}}</span>
  26. <span>{{fieldConfig.fields.taskTypeDTO?.taskName}}</span>
  27. <span>{{fieldConfig.fields.buildingDTO?.buildingName}}</span>
  28. <span>{{fieldConfig.fields.deptDTO?.dept}}</span>
  29. </div>
  30. <nz-table class="table" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px' }" [nzFooter]="footerTpl">
  31. <thead (nzSortChange)="sort($event)" nzSingleSort>
  32. <tr>
  33. <th nzWidth="12%">人员(编码)</th>
  34. <th nzWidth="11%" nzShowSort nzSortKey="totalCount" [(nzSort)]="sortCurrent.totalCount">工单数量</th>
  35. <th nzWidth="11%" nzShowSort nzSortKey="evaCount" [(nzSort)]="sortCurrent.evaCount">评价总工单数</th>
  36. <th nzWidth="11%" nzShowSort nzSortKey="eva1" [(nzSort)]="sortCurrent.eva1">一星评价数</th>
  37. <th nzWidth="11%" nzShowSort nzSortKey="eva2" [(nzSort)]="sortCurrent.eva2">二星评价数</th>
  38. <th nzWidth="11%" nzShowSort nzSortKey="eva3" [(nzSort)]="sortCurrent.eva3">三星评价数</th>
  39. <th nzWidth="11%" nzShowSort nzSortKey="eva4" [(nzSort)]="sortCurrent.eva4">四星评价数</th>
  40. <th nzWidth="11%" nzShowSort nzSortKey="eva5" [(nzSort)]="sortCurrent.eva5">五星评价数</th>
  41. <th nzWidth="11%" nzShowSort nzSortKey="avgCount" [(nzSort)]="sortCurrent.avgCount">平均总星级</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <tr *ngFor="let data of listOfData">
  46. <td>{{ data.userName }}<ng-container *ngIf="data.userAccount">({{ data.userAccount }})</ng-container></td>
  47. <td>{{ data.totalCount }}</td>
  48. <td>{{ data.evaCount }}</td>
  49. <td>{{ data.eva1 }}</td>
  50. <td>{{ data.eva2 }}</td>
  51. <td>{{ data.eva3 }}</td>
  52. <td>{{ data.eva4 }}</td>
  53. <td>{{ data.eva5 }}</td>
  54. <td>{{ data.avgCount }}</td>
  55. </tr>
  56. </tbody>
  57. <ng-template #footerTpl>
  58. <table class="footTable">
  59. <tr *ngFor="let data of listOfDataEnd">
  60. <td style="width: 12%">{{ data.userName }}</td>
  61. <td style="width: 11%">{{ data.totalCount }}</td>
  62. <td style="width: 11%">{{ data.evaCount }}</td>
  63. <td style="width: 11%">{{ data.eva1 }}</td>
  64. <td style="width: 11%">{{ data.eva2 }}</td>
  65. <td style="width: 11%">{{ data.eva3 }}</td>
  66. <td style="width: 11%">{{ data.eva4 }}</td>
  67. <td style="width: 11%">{{ data.eva5 }}</td>
  68. <td style="width: 11%">{{ data.avgCount }}</td>
  69. </tr>
  70. </table>
  71. </ng-template>
  72. </nz-table>
  73. <div class="pagination">
  74. <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
  75. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" [(nzPageSize)]="pageSize" (nzPageIndexChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)" (nzPageSizeChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)" nzShowSizeChanger [nzPageSizeOptions]="[30,50,100,200]" [nzShowTotal]="totalTemplate"></nz-pagination>
  76. </div>
  77. <!-- 详细搜索 -->
  78. <app-distribution-search-more [fieldConfig]="fieldConfig" *ngIf="showSearchMore" [hosId]="hosId" [queryType]="queryType" [dutyId]="dutyId" [parentDutyId]="parentDutyId" (cancelEvent)="cancelEvent()" (submitEvent)="submitEvent($event)"></app-distribution-search-more>