Changes in EntityEdit Query Loading
This commit is contained in:
@@ -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]
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user