worker-statistics.component.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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
  8. [(ngModel)]="dateRange" nzShowTime
  9. [nzAllowClear]="false"
  10. (ngModelChange)="changeDate($event)"
  11. (nzOnCalendarChange)="onCalendarChangeDate($event)"
  12. >
  13. </nz-range-picker>
  14. <br />
  15. </div>
  16. <div class="list-template__searchItem ml8">
  17. <nz-select
  18. class="formItem"
  19. [nzDropdownMatchSelectWidth]="false"
  20. [nzShowSearch]="false"
  21. nzPlaceHolder="请选择时间"
  22. [(ngModel)]="defRange"
  23. (ngModelChange)="changeDateRange($event)"
  24. >
  25. <nz-option
  26. nzLabel="{{ data.label }}"
  27. nzValue="{{ data.id }}"
  28. *ngFor="let data of defRanges"
  29. ></nz-option>
  30. </nz-select>
  31. </div>
  32. <div class="list-template__searchItem">
  33. <span class="label">分组</span>:
  34. <nz-select
  35. class="formItem"
  36. [nzDropdownMatchSelectWidth]="false"
  37. [nzShowSearch]="false"
  38. nzPlaceHolder="请选择分组"
  39. [ngModel]="group"
  40. (ngModelChange)="searchGroup($event)"
  41. >
  42. <nz-option nzLabel="全部" [nzValue]="0"></nz-option>
  43. <nz-option
  44. nzLabel="{{ data.groupName }}"
  45. nzValue="{{ data.id }}"
  46. *ngFor="let data of groupList"
  47. ></nz-option>
  48. </nz-select>
  49. </div>
  50. </div>
  51. <div nz-col nzXl="6" class="list-template__btns">
  52. <button nz-button class="btn default" (click)="search(1)">搜索</button>
  53. <button nz-button class="btn default ml8" (click)="excelExport()">
  54. 导出
  55. </button>
  56. <button nz-button class="btn default ml8" (click)="reset()">
  57. 重置
  58. </button>
  59. </div>
  60. </div>
  61. <div class="list-template__checkBoxes">
  62. <nz-checkbox-group [(ngModel)]="checkOptionsOne" (ngModelChange)="getList(1, sortCurrentKey, sortCurrentValue)"></nz-checkbox-group>
  63. </div>
  64. <div class="list-template__bottom">
  65. <nz-table
  66. class="list-template__nzTable"
  67. [nzData]="listOfData"
  68. nzSize="middle"
  69. [nzShowPagination]="false"
  70. [nzLoading]="loading1"
  71. >
  72. <thead (nzSortChange)="sort($event)" nzSingleSort>
  73. <tr class="thead">
  74. <th nzWidth="5%">序号</th>
  75. <th nzWidth="8%">姓名</th>
  76. <th nzWidth="8%" nzShowSort nzSortKey="byOrderNum" [(nzSort)]="sortCurrent.byOrderNum">工单总数</th>
  77. <th nzWidth="16%">五分钟内工单<br>特殊关闭数</th>
  78. <th nzWidth="16%">平均到达时长<br>平均完成时长</th>
  79. <th nzWidth="8%" nzShowSort nzSortKey="completionRate" [(nzSort)]="sortCurrent.completionRate">按时完成达标率</th>
  80. <th nzWidth="8%">楼栋分<br>陪检方式分</th>
  81. <th nzWidth="16%" nzShowSort nzSortKey="byIntegral" [(nzSort)]="sortCurrent.byIntegral">总积分</th>
  82. <th nzWidth="15%">操作</th>
  83. </tr>
  84. </thead>
  85. <tbody>
  86. <tr *ngFor="let data of listOfData; let index = index">
  87. <td>{{ index + (pageIndex - 1) * pageSize + 1 }}</td>
  88. <td>{{ data.name }}</td>
  89. <td>{{ data.total || 0 }}</td>
  90. <td>{{ data.fiveTimeNum || 0 }}<br>{{ data.specialCloseNum }}</td>
  91. <td>{{ data.arriveTime }}<br>{{ data.completeTime }}</td>
  92. <td>{{ data.avePer + "%" }}</td>
  93. <td>{{ data.buildingGrade }}<br>{{ data.inspectModeGrade }}</td>
  94. <td>{{ data.order || 0 }}</td>
  95. <td>
  96. <div class="coop">
  97. <span
  98. *ngIf="coopBtns.look"
  99. (click)="personDetail(data.workerId)"
  100. >查看</span
  101. >
  102. </div>
  103. </td>
  104. </tr>
  105. </tbody>
  106. </nz-table>
  107. <div class="list-template__pagination">
  108. <nz-pagination
  109. [(nzPageIndex)]="pageIndex"
  110. [(nzTotal)]="listLength"
  111. nzShowSizeChanger
  112. [(nzPageSize)]="pageSize"
  113. (nzPageIndexChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)"
  114. (nzPageSizeChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)"
  115. >
  116. </nz-pagination>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <!-- 操作成功/失败提示框 -->
  122. <app-prompt-modal
  123. *ngIf="promptModalShow"
  124. [content]="promptContent"
  125. [success]="ifSuccess"
  126. [show]="promptModalShow"
  127. [info]="promptInfo"
  128. ></app-prompt-modal>
  129. <app-excel-export
  130. [loading]="loading2"
  131. [isShow]="isShow"
  132. (submitFormHand)="submitExcelExport($event)"
  133. (hideFormHand)="hideExcelExport($event)"
  134. *ngIf="isShow"
  135. ></app-excel-export>
  136. <!-- 查看详情 -->
  137. <router-outlet></router-outlet>