diff --git a/components/EntityEdit.vue b/components/EntityEdit.vue index 0e99afc..d6fd9a1 100644 --- a/components/EntityEdit.vue +++ b/components/EntityEdit.vue @@ -74,12 +74,14 @@ setupCreate() const setupQuery = () => { if(route.query) { - Object.keys(route.query).forEach(key => { - if(["customer","contract","plant","contact"].includes(key)){ - item.value[key] = Number(route.query[key]) - } else { - item.value[key] = route.query[key] + if(dataType.templateColumns.find(i => i.key === key)) { + console.log(key) + if (["customer", "contract", "plant", "contact", "project"].includes(key)) { + item.value[key] = Number(route.query[key]) + } else { + item.value[key] = route.query[key] + } } }) }