|
|
@ -159,10 +159,11 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState( |
|
|
|
{ |
|
|
|
{ |
|
|
|
limit: String(childrenListPagination.size), |
|
|
|
limit: String(childrenListPagination.size), |
|
|
|
offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), |
|
|
|
offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), |
|
|
|
where: childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`, |
|
|
|
where: |
|
|
|
|
|
|
|
childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`, |
|
|
|
} as any, |
|
|
|
} as any, |
|
|
|
) |
|
|
|
) |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
childrenList.value = await $api.dbTableRow.nestedList( |
|
|
|
childrenList.value = await $api.dbTableRow.nestedList( |
|
|
|
NOCO, |
|
|
|
NOCO, |
|
|
|
(project?.value?.id || sharedView?.value?.view?.project_id) as string, |
|
|
|
(project?.value?.id || sharedView?.value?.view?.project_id) as string, |
|
|
@ -173,7 +174,8 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState( |
|
|
|
{ |
|
|
|
{ |
|
|
|
limit: String(childrenListPagination.size), |
|
|
|
limit: String(childrenListPagination.size), |
|
|
|
offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), |
|
|
|
offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), |
|
|
|
where: childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`, |
|
|
|
where: |
|
|
|
|
|
|
|
childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`, |
|
|
|
} as any, |
|
|
|
} as any, |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|