Il campo FOTO sembra non comparire correttamente. (dal profilo)

This commit is contained in:
paoloar77
2022-02-15 19:01:10 +01:00
parent c768e9de30
commit ec410c32d5
11 changed files with 37 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.2.4" APP_VERSION="0.2.5"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.2.4" APP_VERSION="0.2.5"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="1" APP_ID="1"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.2.4" APP_VERSION="0.2.5"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.2.4" APP_VERSION="0.2.5"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="12" APP_ID="12"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

View File

@@ -1,4 +1,4 @@
import { defineComponent, ref, PropType, watch, onMounted } from 'vue' import { defineComponent, ref, PropType, watch, onMounted, computed } from 'vue'
import { useI18n } from '@src/boot/i18n' import { useI18n } from '@src/boot/i18n'
import { useUserStore } from '@store/UserStore' import { useUserStore } from '@store/UserStore'
import { useQuasar } from 'quasar' import { useQuasar } from 'quasar'
@@ -65,6 +65,15 @@ export default defineComponent({
return (myobj && typeof myobj !== 'string' && typeof myobj !== 'undefined') return (myobj && typeof myobj !== 'string' && typeof myobj !== 'undefined')
} }
const isListImgValid = computed(() => {
const arr = getlistimages()
if (arr && tools.isArray(arr)) {
return arr.length > 0
} else {
return !!arr
}
})
watch(() => props.imgGall, (newval, oldval) => { watch(() => props.imgGall, (newval, oldval) => {
if (isValid(props.imgGall)) { if (isValid(props.imgGall)) {
// @ts-ignore // @ts-ignore
@@ -379,6 +388,7 @@ export default defineComponent({
fullscreen, fullscreen,
fullscreensrc, fullscreensrc,
onRejected, onRejected,
isListImgValid,
} }
} }
}) })

View File

@@ -3,9 +3,10 @@
<div v-if="!edit"> <div v-if="!edit">
<div class="q-pa-xs q-gutter-md"> <div class="q-pa-xs q-gutter-md">
<q-card v-if="getlistimages().length > 0" :class="getclass()" @click="apri"> <q-card v-if="isListImgValid" :class="getclass()" @click="apri">
<div v-for="(mygallery, index) in getlistimages()" :key="index"> <div v-for="(mygallery, index) in getlistimages()" :key="index">
<div v-if="index === 0"> <div v-if="index === 0">
AA
<q-img <q-img
:src="getsrcimg(mygallery)" :class="getclimg()" :src="getsrcimg(mygallery)" :class="getclimg()"
:alt="mygallery.alt"> :alt="mygallery.alt">
@@ -17,7 +18,7 @@
</div> </div>
</div> </div>
</q-card> </q-card>
<div v-if="!isInModif && getlistimages().length <= 0 && imagebak"> <div v-else-if="!isInModif && !isListImgValid && imagebak">
<q-card :class="getclass()" @click="ImgFullScreen(mygallery)"> <q-card :class="getclass()" @click="ImgFullScreen(mygallery)">
<q-img <q-img
:src="imagebak" :class="getclimg()"> :src="imagebak" :class="getclimg()">
@@ -25,6 +26,14 @@
</q-card> </q-card>
</div> </div>
<div v-else>
<q-card :class="getclass()" @click="apri">
<q-img
src="images/noimg.png" :class="getclimg()"
alt="no image">
</q-img>
</q-card>
</div>
<q-btn <q-btn
v-if="isInModif" v-if="isInModif"
color="primary" @click="apri" color="primary" @click="apri"
@@ -33,7 +42,7 @@
</div> </div>
</div> </div>
<div v-else> <div v-else>
<div v-if="getnumimages() <= 0"> <div v-if="!isListImgValid">
<q-btn <q-btn
flat round color="blue" icon="fas fa-tools" size="md" flat round color="blue" icon="fas fa-tools" size="md"
@click="apri"></q-btn> @click="apri"></q-btn>
@@ -227,7 +236,7 @@
accept="image/jpeg, image/jpg, image/png, .pdf" accept="image/jpeg, image/jpg, image/png, .pdf"
:url="getUrl()" :url="getUrl()"
:headers="tools.getheaders()" :headers="tools.getheaders()"
:max-file-size="2000000" :max-file-size="40000000"
multiple multiple
auto-upload auto-upload
hide-upload-btn hide-upload-btn
@@ -238,7 +247,7 @@
></q-uploader> ></q-uploader>
</div> </div>
</div> </div>
<div v-if="!isInModif && getlistimages().length <= 0 && imagebak"> <div v-if="!isInModif && !isListImgValid && imagebak">
<q-card :class="getclass()" @click="ImgFullScreen(mygallery)"> <q-card :class="getclass()" @click="ImgFullScreen(mygallery)">
<q-img <q-img

View File

@@ -4890,6 +4890,10 @@ export const tools = {
}, },
isArray(val: any) {
return Array.isArray(val)
},
isUserOk(){ isUserOk(){
const userStore = useUserStore() const userStore = useUserStore()
return userStore.isUserOk() return userStore.isUserOk()

View File

@@ -73,6 +73,7 @@
</CTitleBanner> </CTitleBanner>
<!--
<CTitleBanner <CTitleBanner
class="q-pa-xs" title="Competenze Personali (Offerte)" bgcolor="bg-primary" clcolor="text-white" class="q-pa-xs" title="Competenze Personali (Offerte)" bgcolor="bg-primary" clcolor="text-white"
myclass="myshad" :canopen="true"> myclass="myshad" :canopen="true">
@@ -84,6 +85,7 @@
</CTitleBanner> </CTitleBanner>
-->
<CTitleBanner <CTitleBanner
class="q-pa-xs" title="Informazioni su di te" bgcolor="bg-primary" clcolor="text-white" class="q-pa-xs" title="Informazioni su di te" bgcolor="bg-primary" clcolor="text-white"

View File

@@ -138,6 +138,7 @@
</q-card> </q-card>
</div> </div>
<!--
<CTitleBanner <CTitleBanner
class="" title="Competenze e Talenti" bgcolor="bg-positive" clcolor="text-white" class="" title="Competenze e Talenti" bgcolor="bg-positive" clcolor="text-white"
myclass="myshad" :canopen="true"> myclass="myshad" :canopen="true">
@@ -152,6 +153,7 @@
</CTitleBanner> </CTitleBanner>
-->
<div v-if="myuser._id"> <div v-if="myuser._id">
<CTitleBanner <CTitleBanner