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