- Add New Record directly by the QSelect

This commit is contained in:
paoloar77
2022-01-28 00:57:28 +01:00
parent 5842fa69e1
commit 5f51c231eb
19 changed files with 434 additions and 181 deletions

View File

@@ -275,14 +275,14 @@ export default defineComponent({
// Delete File on server:
const ris = await globalStore.DeleteFile({ filename })
console.log('ris', ris)
// console.log('ris', ris)
if (ris)
deleted(rec)
})
}
function save() {
console.log('CGallery save')
console.log('CGallery save', gallerylist.value)
if (gallerylist.value.length > 0) {
if (!props.single) {
emit('showandsave', gallerylist.value)
@@ -290,7 +290,7 @@ export default defineComponent({
emit('showandsave', gallerylist.value[0].imagefile)
}
} else {
emit('showandsave', '')
emit('showandsave', !props.single ? [] : '')
}
}

View File

@@ -91,7 +91,7 @@
<div v-if="edit" class="q-gutter-sm " style="max-height: 200px; width: 208px;">
<q-uploader
label="Aggiungi Immagine"
accept=".jpg, image/*, .pdf"
accept="image/jpeg, image/jpg, image/png, .pdf"
:url="getUrl()"
:headers="tools.getheaders()"
:max-file-size="3000000"
@@ -206,7 +206,7 @@
<div class="q-gutter-sm " style="max-height: 200px; width: 208px;">
<q-uploader
label="Aggiungi Immagine"
accept=".jpg, image/*, .pdf"
accept="image/jpeg, image/jpg, image/png, .pdf"
:url="getUrl()"
:headers="tools.getheaders()"
:max-file-size="2000000"