|
|
|
@ -136,40 +136,10 @@ if (isKanban.value) {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// if (isMap.value) { |
|
|
|
|
// console.log('fields', fields.value) |
|
|
|
|
// for (const [k, v] of Object.entries(row.value.row)) { |
|
|
|
|
// if (v) { |
|
|
|
|
// console.log('value', v, 'key', k) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// if (initialGeoPositionData?.value?.lat) { |
|
|
|
|
// // Filter the columns by their id |
|
|
|
|
// const filteredColumns = meta?.value?.columns.filter((col) => col.id === initialGeoPositionData?.value?.geoColId) |
|
|
|
|
// // If there are any columns that match the geoColId |
|
|
|
|
// if (filteredColumns.length > 0) { |
|
|
|
|
// // Get the first (and possibly only) column that matches the geoColId |
|
|
|
|
// const geoColumn = filteredColumns[0] |
|
|
|
|
// console.log('geoColumn', geoColumn.id ) |
|
|
|
|
// // Load the lat and long values for the geoColumn |
|
|
|
|
// if (geoColumn.title) { |
|
|
|
|
|
|
|
|
|
// const lat = initialGeoPositionData.value.lat |
|
|
|
|
// const long = initialGeoPositionData.value.long |
|
|
|
|
// row.value.row[geoColumn.title] = lat |
|
|
|
|
|
|
|
|
|
// console.log('lat', lat) |
|
|
|
|
// console.log('long', long) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
const cellWrapperEl = ref<HTMLElement>() |
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
setTimeout(() => { |
|
|
|
|
;(cellWrapperEl.value?.querySelector('input,select,textarea') as HTMLInputElement)?.focus() |
|
|
|
|
}) |
|
|
|
|
setTimeout(() => (cellWrapperEl.value?.querySelector('input,select,textarea') as HTMLInputElement)?.focus()) |
|
|
|
|
}) |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
@ -192,7 +162,7 @@ export default {
|
|
|
|
|
<SmartsheetExpandedFormHeader :view="props.view" @cancel="onClose" /> |
|
|
|
|
|
|
|
|
|
<div class="!bg-gray-100 rounded flex-1"> |
|
|
|
|
FOO geodata: {{ JSON.stringify(initialGeoPositionData?.geoColId) }} BAR |
|
|
|
|
FOO geodata: {{ JSON.stringify(initialGeoPositionData) }} |
|
|
|
|
|
|
|
|
|
<div class="flex h-full nc-form-wrapper items-stretch min-h-[max(70vh,100%)]"> |
|
|
|
|
<div class="flex-1 overflow-auto scrollbar-thin-dull nc-form-fields-container"> |
|
|
|
|