worker-statistics.component.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <div class="list-template">
  2. <div class="list-template__content">
  3. <div class="list-template__top" nz-row>
  4. <div nz-col nzXl='18' class="list-template__searchBox">
  5. <div class="list-template__searchItem">
  6. <span class="label">发起时间</span>:
  7. <nz-range-picker [(ngModel)]="dateRange" [nzAllowClear]='false' (ngModelChange)="changeDate($event)">
  8. </nz-range-picker>
  9. <br />
  10. </div>
  11. <div class="list-template__searchItem ml8">
  12. <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzPlaceHolder="请选择时间"
  13. [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
  14. <nz-option nzLabel="{{data.label}}" nzValue="{{data.id}}" *ngFor="let data of defRanges"></nz-option>
  15. </nz-select>
  16. </div>
  17. <div class="list-template__searchItem">
  18. <span class="label">分组</span>:
  19. <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzPlaceHolder="请选择分组"
  20. [ngModel]="group" (ngModelChange)="searchGroup($event)">
  21. <nz-option nzLabel="全部" [nzValue]="0"></nz-option>
  22. <nz-option nzLabel="{{data.groupName}}" nzValue="{{data.id}}" *ngFor="let data of groupList"></nz-option>
  23. </nz-select>
  24. </div>
  25. </div>
  26. <div nz-col nzXl='6' class="list-template__btns">
  27. <button nz-button class="btn default" (click)='search(1)'>搜索</button>
  28. <button nz-button class="btn default ml8" (click)='export()' [nzLoading]="loading2">导出</button>
  29. <button nz-button class="btn default ml8" (click)='reset()'>重置</button>
  30. </div>
  31. </div>
  32. <div class="list-template__bottom">
  33. <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
  34. [nzLoading]="loading1">
  35. <thead>
  36. <tr class="thead">
  37. <th nzWidth="5%">序号</th>
  38. <th nzWidth="10%">支助人员名称</th>
  39. <th nzWidth="10%">工单总量</th>
  40. <th nzWidth="10%">积分</th>
  41. <th nzWidth="10%">好评数量</th>
  42. <th nzWidth="10%">特殊关闭数量</th>
  43. <th nzWidth="15%">按时完成达标率</th>
  44. <th nzWidth="10%">平均到达时间</th>
  45. <th nzWidth="10%">平均完成时间</th>
  46. <th nzWidth="10%">操作</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <tr *ngFor="let data of listOfData;let index=index;">
  51. <td>{{index+(pageIndex-1)*10+1}}</td>
  52. <td>{{ data.name }}</td>
  53. <td>{{ data.total||0}}</td>
  54. <td>{{data.order||0}}</td>
  55. <td>{{data.num||0}}</td>
  56. <td>{{data.specialCloseNum}}</td>
  57. <td>{{data.avePer+'%'}}</td>
  58. <td>{{data.arriveTime}}</td>
  59. <td>{{data.completeTime}}</td>
  60. <td>
  61. <div class="coop">
  62. <span *ngIf="coopBtns.look" (click)="personDetail(data.workerId)">查看</span>
  63. </div>
  64. </td>
  65. </tr>
  66. </tbody>
  67. </nz-table>
  68. <div class="list-template__pagination">
  69. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
  70. (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
  71. </nz-pagination>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <!-- 操作成功/失败提示框 -->
  77. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  78. [info]="promptInfo"></app-prompt-modal>
  79. <!-- 查看详情 -->
  80. <router-outlet></router-outlet>