- 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

@@ -96,7 +96,7 @@ export default defineComponent({
}
} else {
gallerylist.value = [
]
]
}
}
@@ -229,12 +229,16 @@ export default defineComponent({
function uploaded(info: any) {
console.log('uploaded', info)
if (gallerylist.value) {
for (const file of info.files) {
gallerylist.value.push({ imagefile: file.name })
if (props.single && info.files) {
console.log('gallerylist.value[0]', info.files[0].name)
gallerylist.value[0] = { imagefile: info.files[0].name }
} else {
for (const file of info.files) {
gallerylist.value.push({ imagefile: file.name })
}
}
if (!props.single)
save()
save()
console.log('gallerylist', gallerylist.value)
}
@@ -260,9 +264,7 @@ export default defineComponent({
console.log('single', props.single)
if (!props.single) {
save()
}
save()
}
}
@@ -280,8 +282,7 @@ export default defineComponent({
tools.copyStringToClipboard($q, filename, true)
}
function deleteFile(rec: any)
{
function deleteFile(rec: any) {
console.log('deleteFile....')
const filename = getfullname(rec)
const filenamerel = filename.replace(/^.*[\\\/]/, '')
@@ -353,7 +354,7 @@ export default defineComponent({
fullscreensrc.value = getfullname(mygallery)
}
function onRejected (rejectedEntries: any) {
function onRejected(rejectedEntries: any) {
// Notify plugin needs to be installed
// https://quasar.dev/quasar-plugins/notify#Installation
console.log('rejectedEntries', rejectedEntries)