name: app-com-search-table-list
module: AppSharedModule
API
参数 | 说明 | 类型 | 是否必须 |
---|---|---|---|
[expandParams] | 表格行展开所需数据的字段 | ExpandParam[] | |
[expandDataName] | 表格行展开的key,属于二级对象 | string | |
[searchParams] | 表单搜索列表参数 | SearchParam[] | ✅ |
[permissionParams] | 页面权限配置 | any | ✅ |
说明:
<app-com-search-table-list
[expandParams]="expandParams"
[expandDataName]="'mrpProduceRelationList'"
[selectOptions]="selectOptions"
[searchParams]="searchParams"
[permissionParams]="permissionParams"
(search)="search($event)"
(batchDelete)="batchDelete()"
(exportExcel)="exportToExcel()"
(restCheckStatus)="restCheckStatus(dataList)"
(refreshGoFirstPage)="refreshGoFirstPage()"
[selectedDataItems]="l('GridSelectedXItemsTips', selectedDataItems.length)"
[data]="dataList"
[tableParams]="tableParams"
[totalItems]="totalItems"
[(pageNumber)]="pageNumber"
[(pageSize)]="pageSize"
[isTableLoading]="isTableLoading"
(pageNumberChange)="pageNumberChange()"
(pageSizeChange)="refresh()"
(gridSort)="gridSort($event)"
[(allChecked)]="allChecked"
[allCheckboxDisabled]="allCheckboxDisabled"
[checkboxIndeterminate]="checkboxIndeterminate"
(allCheckedChange)="checkAll($event)"
(nzCheckedChange)="refreshCheckStatus($event)"
(createOrEdit)="createOrEdit($event)"
(delete)="delete($event)"
></app-com-search-table-list>
- 第7行以下的参数为每个页面默认的数据,不需要修改,只需在该页面的ts文件中配置文档描述参数即可
- 引用组件前需先引入module,这样不会报找不到组件的错误