work-log.component.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <div class="list-template">
  2. <div class="list-template__content">
  3. <div class="list-template__top" nz-row>
  4. <div nz-col nzXl='17' class="list-template__searchBox">
  5. <div class="list-template__searchItem">
  6. <span class="label">操作时间</span>:
  7. <nz-range-picker nzShowTime [(ngModel)]="dateRange" (nzOnCalendarChange)="onCalendarChangeDate($event)" (ngModelChange)="changeDate($event)"></nz-range-picker>
  8. </div>
  9. <div class="list-template__searchItem">
  10. <span class="label">操作人</span>:
  11. <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
  12. (nzOnSearch)="changeUser($event)" nzAllowClear nzPlaceHolder="请选择操作人" [(ngModel)]="operationUser">
  13. <ng-container *ngFor="let option of allWorker">
  14. <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
  15. </ng-container>
  16. <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
  17. <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
  18. </nz-option>
  19. </nz-select>
  20. </div>
  21. <div class="list-template__searchItem">
  22. <span class="label">类型</span>:
  23. <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch
  24. nzAllowClear nzPlaceHolder="请选择类型" [(ngModel)]="logType">
  25. <ng-container *ngFor="let option of typeData">
  26. <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
  27. </ng-container>
  28. </nz-select>
  29. </div>
  30. </div>
  31. <div nz-col nzLg="7" class="list-template__btns">
  32. <button nz-button class="btn default ml8" (click)='search()'>搜索</button>
  33. <button nz-button class="btn default ml8" (click)='reset()'>重置</button>
  34. </div>
  35. </div>
  36. <div class="list-template__bottom">
  37. <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
  38. [nzLoading]="loading1">
  39. <thead>
  40. <tr class="thead">
  41. <th nzWidth="20%">操作人</th>
  42. <th nzWidth="20%">类型</th>
  43. <th nzWidth="20%">动作</th>
  44. <th nzWidth="20%">备注</th>
  45. <th nzWidth="20%">操作时间</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. <tr *ngFor="let data of listOfData;let i = index">
  50. <td>{{data.operationUserDTO?.name}}</td>
  51. <td>{{data.logType?.name}}</td>
  52. <td>{{data.operationType?.name}}</td>
  53. <td>{{data.logRemarks}}</td>
  54. <td>{{data.operationTime | date: "yyyy-MM-dd HH:mm:ss"}}</td>
  55. </tr>
  56. </tbody>
  57. </nz-table>
  58. <div class="list-template__pagination">
  59. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" [(nzPageSize)]="pageSize" nzShowSizeChanger
  60. (nzPageIndexChange)="getList(0)" (nzPageSizeChange)="getList(0)">
  61. </nz-pagination>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <!-- 操作成功/失败提示框 -->
  67. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  68. [info]="promptInfo">
  69. </app-prompt-modal>