- posso fare upload dell'immagine del prodotto dalla lista

- corretto import dati
This commit is contained in:
Surya Paolo
2024-03-02 22:53:35 +01:00
parent 93e58f444d
commit 71e4c91930
68 changed files with 240 additions and 161 deletions

View File

@@ -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,
}
}
})