|
|
@ -567,13 +567,24 @@ const [useProvideCalendarViewStore, useCalendarViewStore] = useInjectionState( |
|
|
|
if ((!base?.value?.id || !meta.value?.id || !viewMeta.value?.id || !filterJSON.value) && !isPublic?.value) return |
|
|
|
if ((!base?.value?.id || !meta.value?.id || !viewMeta.value?.id || !filterJSON.value) && !isPublic?.value) return |
|
|
|
isCalendarDataLoading.value = true |
|
|
|
isCalendarDataLoading.value = true |
|
|
|
const res = !isPublic.value |
|
|
|
const res = !isPublic.value |
|
|
|
? await api.dbViewRow.list('noco', base.value.id!, meta.value!.id!, viewMeta.value!.id!, { |
|
|
|
? await api.dbViewRow.list( |
|
|
|
...queryParams.value, |
|
|
|
'noco', |
|
|
|
...(isUIAllowed('filterSync') |
|
|
|
base.value.id!, |
|
|
|
? { filterArrJson: JSON.stringify([...filterJSON.value]) } |
|
|
|
meta.value!.id!, |
|
|
|
: { filterArrJson: JSON.stringify([nestedFilters.value, ...filterJSON.value]) }), |
|
|
|
viewMeta.value!.id!, |
|
|
|
where: where?.value ?? '', |
|
|
|
{ |
|
|
|
}) |
|
|
|
...queryParams.value, |
|
|
|
|
|
|
|
...(isUIAllowed('filterSync') |
|
|
|
|
|
|
|
? { filterArrJson: JSON.stringify([...filterJSON.value]) } |
|
|
|
|
|
|
|
: { filterArrJson: JSON.stringify([nestedFilters.value, ...filterJSON.value]) }), |
|
|
|
|
|
|
|
where: where?.value ?? '', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
headers: { |
|
|
|
|
|
|
|
'xc-ignore-pagination': true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
) |
|
|
|
: await fetchSharedViewData({ sortsArr: sorts.value, filtersArr: filterJSON.value }) |
|
|
|
: await fetchSharedViewData({ sortsArr: sorts.value, filtersArr: filterJSON.value }) |
|
|
|
formattedData.value = formatData(res!.list) |
|
|
|
formattedData.value = formatData(res!.list) |
|
|
|
isCalendarDataLoading.value = false |
|
|
|
isCalendarDataLoading.value = false |
|
|
|