| | |
| | | infiniteLoadingProps, |
| | | }; |
| | | } |
| | | |
| | | type UseCheckReceiveTaskUserSubmitsOptions = { |
| | | id?: string; |
| | | }; |
| | | |
| | | export function useCheckReceiveTaskUserSubmits( |
| | | options: UseCheckReceiveTaskUserSubmitsOptions = {} |
| | | ) { |
| | | const { id } = options; |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.GetCheckReceiveTaskUserSubmitsQuery = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | | }, |
| | | id: id, |
| | | }; |
| | | |
| | | return taskCheckReceiveServices.getCheckReceiveTaskUserSubmits(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['taskCheckReceiveServices/getCheckReceiveTaskUserSubmits', id], |
| | | } |
| | | ); |
| | | |
| | | return { |
| | | infiniteLoadingProps, |
| | | }; |
| | | } |