Deprecated Events as non Standard Entity

Repaired query
Reparied Document Show
This commit is contained in:
2024-12-27 11:05:59 +01:00
parent 43c7148637
commit 2bda15d264
6 changed files with 161 additions and 21 deletions

View File

@@ -32,6 +32,7 @@ defineShortcuts({
const router = useRouter()
const route = useRoute()
const dataStore = useDataStore()
const profileStore = useProfileStore()
const supabase = useSupabaseClient()
@@ -64,9 +65,23 @@ const setupCreate = () => {
})
}
setupCreate()
const setupQuery = () => {
if(route.query) {
console.log(route.query)
Object.keys(route.query).forEach(key => {
if(["customer","contract","plant","contact"].includes(key)){
props.item[key] = Number(route.query[key])
} else {
props.item[key] = route.query[key]
}
})
}
}
setupQuery()
const loadedOptions = ref({})
const loadOptions = async () => {
let optionsToLoad = dataType.templateColumns.filter(i => i.selectDataType).map(i => {
@@ -315,7 +330,7 @@ const contentChanged = (content, datapoint) => {
</div>
</div>
<UFormGroup
v-for="datapoint in dataType.templateColumns.filter(i => i.inputType && i.inputColumn === columnName)"
v-for="datapoint in dataType.templateColumns.filter(i => i.inputType)"
:label="datapoint.label"
>
<template #help>