- posso fare upload dell'immagine del prodotto dalla lista
- corretto import dati
This commit is contained in:
@@ -263,6 +263,7 @@ export default defineComponent({
|
||||
})
|
||||
|
||||
const myrow = ref(<any>null)
|
||||
const mypath = ref('')
|
||||
|
||||
/* const myrow = computed(() => {
|
||||
return props.rec && props.isrec ? props.rec : props.row
|
||||
@@ -328,6 +329,13 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
if (props.path) {
|
||||
mypath.value = props.path
|
||||
} else {
|
||||
if (col.value.hasOwnProperty('path'))
|
||||
mypath.value = col.value.path ? col.value.path : ''
|
||||
}
|
||||
|
||||
// console.log('CMyFieldDb crea', myvalue)
|
||||
}
|
||||
|
||||
@@ -612,6 +620,9 @@ export default defineComponent({
|
||||
} else if (col.value.fieldtype === costanti.FieldType.imgcard) {
|
||||
console.log('newVal.imagefile', newVal)
|
||||
myvalue.value = newVal
|
||||
} else if (col.value.fieldtype === costanti.FieldType.image_and_filename) {
|
||||
console.log('newVal.imagefile', newVal)
|
||||
myvalue.value = newVal
|
||||
}
|
||||
|
||||
if (col.value.fieldtype === costanti.FieldType.listobj) {
|
||||
@@ -855,6 +866,7 @@ export default defineComponent({
|
||||
shared_consts,
|
||||
nameKeydown,
|
||||
gotoPage,
|
||||
mypath,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user