|
|
@ -3,7 +3,7 @@ import 'leaflet/dist/leaflet.css' |
|
|
|
import L, { LatLng } from 'leaflet' |
|
|
|
import L, { LatLng } from 'leaflet' |
|
|
|
import 'leaflet.markercluster' |
|
|
|
import 'leaflet.markercluster' |
|
|
|
import { ViewTypes } from 'nocodb-sdk' |
|
|
|
import { ViewTypes } from 'nocodb-sdk' |
|
|
|
import { OpenNewRecordFormHookInj, latLongToJoinedString, onMounted, provide, ref } from '#imports' |
|
|
|
import { OpenNewRecordFormHookInj, latLongToJoinedString, onMounted, provide, ref, IsPublicInj } from '#imports' |
|
|
|
import type { Row as RowType } from '~/lib' |
|
|
|
import type { Row as RowType } from '~/lib' |
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute() |
|
|
|
const route = useRoute() |
|
|
@ -23,6 +23,8 @@ const mapContainerRef = ref<HTMLElement>() |
|
|
|
|
|
|
|
|
|
|
|
const myMapRef = ref<L.Map>() |
|
|
|
const myMapRef = ref<L.Map>() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isPublic = inject(IsPublicInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const meta = inject(MetaInj, ref()) |
|
|
|
const meta = inject(MetaInj, ref()) |
|
|
|
|
|
|
|
|
|
|
|
const view = inject(ActiveViewInj, ref()) |
|
|
|
const view = inject(ActiveViewInj, ref()) |
|
|
@ -199,7 +201,6 @@ watch(view, async (nextView) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const count = computed(() => paginationData.value.totalRows) |
|
|
|
const count = computed(() => paginationData.value.totalRows) |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -219,8 +220,7 @@ const count = computed(() => paginationData.value.totalRows) |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<Suspense v-if="!isPublic"> |
|
|
|
<Suspense> |
|
|
|
|
|
|
|
<LazySmartsheetExpandedForm |
|
|
|
<LazySmartsheetExpandedForm |
|
|
|
v-if="expandedFormRow && expandedFormDlg" |
|
|
|
v-if="expandedFormRow && expandedFormDlg" |
|
|
|
v-model="expandedFormDlg" |
|
|
|
v-model="expandedFormDlg" |
|
|
@ -230,8 +230,7 @@ const count = computed(() => paginationData.value.totalRows) |
|
|
|
:view="view" |
|
|
|
:view="view" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Suspense> |
|
|
|
</Suspense> |
|
|
|
|
|
|
|
<Suspense v-if="!isPublic"> |
|
|
|
<Suspense> |
|
|
|
|
|
|
|
<LazySmartsheetExpandedForm |
|
|
|
<LazySmartsheetExpandedForm |
|
|
|
v-if="expandedFormOnRowIdDlg" |
|
|
|
v-if="expandedFormOnRowIdDlg" |
|
|
|
:key="route.query.rowId" |
|
|
|
:key="route.query.rowId" |
|
|
|