|
|
@ -421,12 +421,10 @@ const [useProvideViewGroupBy, useViewGroupBy] = useInjectionState( |
|
|
|
if (groupBy.value.length > 0) { |
|
|
|
if (groupBy.value.length > 0) { |
|
|
|
rootGroup.value.paginationData = { page: 1, pageSize: groupByGroupLimit.value } |
|
|
|
rootGroup.value.paginationData = { page: 1, pageSize: groupByGroupLimit.value } |
|
|
|
rootGroup.value.column = {} as any |
|
|
|
rootGroup.value.column = {} as any |
|
|
|
await loadGroups() |
|
|
|
|
|
|
|
refreshNested() |
|
|
|
refreshNested() |
|
|
|
nextTick(() => reloadViewDataHook?.trigger()) |
|
|
|
nextTick(() => reloadViewDataHook?.trigger()) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ immediate: true }, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const findGroupByNestedIn = (nestedIn: GroupNestedIn[], group?: Group, nestLevel = 0): Group => { |
|
|
|
const findGroupByNestedIn = (nestedIn: GroupNestedIn[], group?: Group, nestLevel = 0): Group => { |
|
|
@ -543,12 +541,11 @@ const [useProvideViewGroupBy, useViewGroupBy] = useInjectionState( |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
|
watch([() => view?.value?.id, () => meta.value?.columns], async ([newViewId]) => { |
|
|
|
await loadAllowedLookups() |
|
|
|
// reload only if view belongs to current table
|
|
|
|
}) |
|
|
|
if (newViewId && view.value?.fk_model_id === meta.value?.id) { |
|
|
|
|
|
|
|
|
|
|
|
watch(meta, async () => { |
|
|
|
|
|
|
|
await loadAllowedLookups() |
|
|
|
await loadAllowedLookups() |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|