|
|
@ -10,11 +10,11 @@ import { |
|
|
|
computed, |
|
|
|
computed, |
|
|
|
iconMap, |
|
|
|
iconMap, |
|
|
|
inject, |
|
|
|
inject, |
|
|
|
|
|
|
|
onMounted, |
|
|
|
ref, |
|
|
|
ref, |
|
|
|
useNuxtApp, |
|
|
|
useNuxtApp, |
|
|
|
useViewFilters, |
|
|
|
useViewFilters, |
|
|
|
watch, |
|
|
|
watch, |
|
|
|
onMounted |
|
|
|
|
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
import type { Filter } from '#imports' |
|
|
|
import type { Filter } from '#imports' |
|
|
|
|
|
|
|
|
|
|
@ -89,7 +89,7 @@ const addFiltersRowDomRef = ref<HTMLElement>() |
|
|
|
const columns = computed(() => meta.value?.columns) |
|
|
|
const columns = computed(() => meta.value?.columns) |
|
|
|
|
|
|
|
|
|
|
|
const getColumn = (filter: Filter) => { |
|
|
|
const getColumn = (filter: Filter) => { |
|
|
|
// extract looked up column if available |
|
|
|
// extract looked up column if available |
|
|
|
return btLookupTypesMap.value[filter.fk_column_id] || columns.value?.find((col: ColumnType) => col.id === filter.fk_column_id) |
|
|
|
return btLookupTypesMap.value[filter.fk_column_id] || columns.value?.find((col: ColumnType) => col.id === filter.fk_column_id) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -295,7 +295,7 @@ onMounted(() => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
|
onMounted(async () => { |
|
|
|
await loadBtLookupTypes() |
|
|
|
await loadBtLookupTypes() |
|
|
|
}) |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|