|
|
|
@ -33,7 +33,7 @@ const [useProvideMapViewStore, useMapViewStore] = useInjectionState(
|
|
|
|
|
|
|
|
|
|
const formattedData = ref<Row[]>([]) |
|
|
|
|
|
|
|
|
|
// const { api } = useApi()
|
|
|
|
|
const { api } = useApi() |
|
|
|
|
|
|
|
|
|
const { project } = useProject() |
|
|
|
|
|
|
|
|
@ -71,9 +71,8 @@ const [useProvideMapViewStore, useMapViewStore] = useInjectionState(
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async function loadMapMeta() { |
|
|
|
|
alert('loadMapData') |
|
|
|
|
if (!viewMeta?.value?.id || !meta?.value?.columns) return |
|
|
|
|
// mapMetaData.value = await $api.dbView.mapRead(viewMeta.value.id)
|
|
|
|
|
mapMetaData.value = await $api.dbView.mapRead(viewMeta.value.id) |
|
|
|
|
geoDataFieldColumn.value = |
|
|
|
|
(meta.value.columns as ColumnType[]).filter((f) => f.id === mapMetaData.value.fk_geo_data_col_id)[0] || {} |
|
|
|
|
} |
|
|
|
|