name: app-com-search-table-list
    module: AppSharedModule

    API

    参数 说明 类型 是否必须
    [expandParams] 表格行展开所需数据的字段 ExpandParam[]
    [expandDataName] 表格行展开的key,属于二级对象 string
    [searchParams] 表单搜索列表参数 SearchParam[]
    [permissionParams] 页面权限配置 any

    说明:

    1. <app-com-search-table-list
    2. [expandParams]="expandParams"
    3. [expandDataName]="'mrpProduceRelationList'"
    4. [selectOptions]="selectOptions"
    5. [searchParams]="searchParams"
    6. [permissionParams]="permissionParams"
    7. (search)="search($event)"
    8. (batchDelete)="batchDelete()"
    9. (exportExcel)="exportToExcel()"
    10. (restCheckStatus)="restCheckStatus(dataList)"
    11. (refreshGoFirstPage)="refreshGoFirstPage()"
    12. [selectedDataItems]="l('GridSelectedXItemsTips', selectedDataItems.length)"
    13. [data]="dataList"
    14. [tableParams]="tableParams"
    15. [totalItems]="totalItems"
    16. [(pageNumber)]="pageNumber"
    17. [(pageSize)]="pageSize"
    18. [isTableLoading]="isTableLoading"
    19. (pageNumberChange)="pageNumberChange()"
    20. (pageSizeChange)="refresh()"
    21. (gridSort)="gridSort($event)"
    22. [(allChecked)]="allChecked"
    23. [allCheckboxDisabled]="allCheckboxDisabled"
    24. [checkboxIndeterminate]="checkboxIndeterminate"
    25. (allCheckedChange)="checkAll($event)"
    26. (nzCheckedChange)="refreshCheckStatus($event)"
    27. (createOrEdit)="createOrEdit($event)"
    28. (delete)="delete($event)"
    29. ></app-com-search-table-list>
    • 第7行以下的参数为每个页面默认的数据,不需要修改,只需在该页面的ts文件中配置文档描述参数即可
    • 引用组件前需先引入module,这样不会报找不到组件的错误