Changes in EntityEdit Query Loading
This commit is contained in:
@@ -74,12 +74,14 @@ setupCreate()
|
|||||||
|
|
||||||
const setupQuery = () => {
|
const setupQuery = () => {
|
||||||
if(route.query) {
|
if(route.query) {
|
||||||
|
|
||||||
Object.keys(route.query).forEach(key => {
|
Object.keys(route.query).forEach(key => {
|
||||||
if(["customer","contract","plant","contact"].includes(key)){
|
if(dataType.templateColumns.find(i => i.key === key)) {
|
||||||
item.value[key] = Number(route.query[key])
|
console.log(key)
|
||||||
} else {
|
if (["customer", "contract", "plant", "contact", "project"].includes(key)) {
|
||||||
item.value[key] = route.query[key]
|
item.value[key] = Number(route.query[key])
|
||||||
|
} else {
|
||||||
|
item.value[key] = route.query[key]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user