|
|
@ -65,6 +65,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState( |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const loadChildrenExcludedList = async () => { |
|
|
|
const loadChildrenExcludedList = async () => { |
|
|
|
|
|
|
|
try { |
|
|
|
childrenExcludedList.value = await $api.dbTableRow.nestedChildrenExcludedList( |
|
|
|
childrenExcludedList.value = await $api.dbTableRow.nestedChildrenExcludedList( |
|
|
|
NOCO, |
|
|
|
NOCO, |
|
|
|
project.value.id as string, |
|
|
|
project.value.id as string, |
|
|
@ -81,9 +82,16 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState( |
|
|
|
`(${relatedTablePrimaryValueProp.value},like,${childrenExcludedListPagination.query})`, |
|
|
|
`(${relatedTablePrimaryValueProp.value},like,${childrenExcludedListPagination.query})`, |
|
|
|
} as any, |
|
|
|
} as any, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
} catch (e: any) { |
|
|
|
|
|
|
|
notification.error({ |
|
|
|
|
|
|
|
message: 'Failed to load list', |
|
|
|
|
|
|
|
description: await extractSdkResponseErrorMsg(e), |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const loadChildrenList = async () => { |
|
|
|
const loadChildrenList = async () => { |
|
|
|
|
|
|
|
try { |
|
|
|
childrenList.value = await $api.dbTableRow.nestedList( |
|
|
|
childrenList.value = await $api.dbTableRow.nestedList( |
|
|
|
NOCO, |
|
|
|
NOCO, |
|
|
|
project.value.id as string, |
|
|
|
project.value.id as string, |
|
|
@ -98,6 +106,12 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState( |
|
|
|
where: childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`, |
|
|
|
where: childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`, |
|
|
|
} as any, |
|
|
|
} as any, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
} catch (e: any) { |
|
|
|
|
|
|
|
notification.error({ |
|
|
|
|
|
|
|
message: 'Failed to load children list', |
|
|
|
|
|
|
|
description: await extractSdkResponseErrorMsg(e), |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const deleteRelatedRow = async (row: Record<string, any>) => { |
|
|
|
const deleteRelatedRow = async (row: Record<string, any>) => { |
|
|
|