|
|
|
@ -186,8 +186,8 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
|
|
|
|
|
const loadChildrenExcludedList = async (activeState?: any) => { |
|
|
|
|
if (activeState) newRowState.state = activeState |
|
|
|
|
try { |
|
|
|
|
let offset = |
|
|
|
|
childrenExcludedListPagination.size * (childrenExcludedListPagination.page - 1) - childrenExcludedOffsetCount.value |
|
|
|
|
// todo: confirm the use case of `childrenExcludedOffsetCount.value`
|
|
|
|
|
let offset = childrenExcludedListPagination.size * (childrenExcludedListPagination.page - 1) - childrenExcludedOffsetCount.value |
|
|
|
|
|
|
|
|
|
if (offset < 0) { |
|
|
|
|
offset = 0 |
|
|
|
@ -540,6 +540,10 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
|
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const resetChildrenExcludedOffsetCount = () =>{ |
|
|
|
|
childrenExcludedOffsetCount.value = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
relatedTableMeta, |
|
|
|
|
loadRelatedTableMeta, |
|
|
|
@ -569,6 +573,8 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
|
|
|
|
|
deleteRelatedRow, |
|
|
|
|
getRelatedTableRowId, |
|
|
|
|
headerDisplayValue, |
|
|
|
|
relatedTableDisplayValuePropId, |
|
|
|
|
resetChildrenExcludedOffsetCount |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'ltar-store', |
|
|
|
|