- ok
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -373,7 +373,6 @@ export default defineComponent({
|
|||||||
const scrollTargetId = 'carousel-scroll-target'
|
const scrollTargetId = 'carousel-scroll-target'
|
||||||
|
|
||||||
const newRecordBool = ref(false)
|
const newRecordBool = ref(false)
|
||||||
const newRecordBoolOld = ref(false)
|
|
||||||
const editRecordBool = ref(false)
|
const editRecordBool = ref(false)
|
||||||
const newRecord = ref(<any>{})
|
const newRecord = ref(<any>{})
|
||||||
const recSaved = ref(<any>{})
|
const recSaved = ref(<any>{})
|
||||||
@@ -2771,7 +2770,6 @@ export default defineComponent({
|
|||||||
exportTable,
|
exportTable,
|
||||||
showNotification,
|
showNotification,
|
||||||
editOn,
|
editOn,
|
||||||
newRecordBoolOld,
|
|
||||||
showSpin,
|
showSpin,
|
||||||
userStore,
|
userStore,
|
||||||
doSort,
|
doSort,
|
||||||
|
|||||||
@@ -1352,7 +1352,7 @@
|
|||||||
v-model="newRecordBool"
|
v-model="newRecordBool"
|
||||||
@hide="hidewindow"
|
@hide="hidewindow"
|
||||||
class="dialog_class"
|
class="dialog_class"
|
||||||
permanent
|
:persistent="true"
|
||||||
:maximized="false"
|
:maximized="false"
|
||||||
>
|
>
|
||||||
<q-card class="dialog_card">
|
<q-card class="dialog_card">
|
||||||
@@ -1423,80 +1423,6 @@
|
|||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
<q-dialog
|
|
||||||
v-model="newRecordBoolOld"
|
|
||||||
@hide="hidewindow"
|
|
||||||
:maximized="$q.screen.lt.sm"
|
|
||||||
permanent
|
|
||||||
>
|
|
||||||
<q-card class="dialog_card">
|
|
||||||
<q-bar dense class="bg-primary text-white">
|
|
||||||
Nuovo {{ mytitle }}:
|
|
||||||
<q-space />
|
|
||||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
|
||||||
</q-bar>
|
|
||||||
|
|
||||||
<q-card-section class="inset-shadow">
|
|
||||||
<div
|
|
||||||
:class="$q.screen.lt.sm ? `` : `row` + ` text-blue `"
|
|
||||||
v-for="col in mycolumns"
|
|
||||||
:key="col.name"
|
|
||||||
>
|
|
||||||
<!--<div class="text-center q-my-xs" v-if="(col.fieldtype === costanti.FieldType.separator)">
|
|
||||||
<q-btn color="primary" size="md" dense :icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'"
|
|
||||||
label="Campi Avanzati" @click="showfilteradv = !showfilteradv"></q-btn>
|
|
||||||
</div>-->
|
|
||||||
<div
|
|
||||||
v-if="
|
|
||||||
showColCheck(
|
|
||||||
col,
|
|
||||||
tools.TIPOVIS_NEW_RECORD,
|
|
||||||
true,
|
|
||||||
0,
|
|
||||||
newRecord
|
|
||||||
) && col.foredit
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<div class="">
|
|
||||||
<CMyPopupEdit
|
|
||||||
:table="mytable"
|
|
||||||
:canEdit="true"
|
|
||||||
:canModify="true"
|
|
||||||
:mycol="col"
|
|
||||||
v-model:row="newRecord"
|
|
||||||
:field="col.field"
|
|
||||||
:subfield="col.subfield"
|
|
||||||
:tablesel="col.tablesel"
|
|
||||||
:value_extra="getValueExtra(col, newRecord)"
|
|
||||||
:isInModif="true"
|
|
||||||
minuteinterval="1"
|
|
||||||
:visulabel="true"
|
|
||||||
:insertMode="true"
|
|
||||||
@save="SaveValue"
|
|
||||||
@show="selItem(newRecord, col)"
|
|
||||||
@showandsave="showandsave"
|
|
||||||
>
|
|
||||||
</CMyPopupEdit>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</q-card-section>
|
|
||||||
<q-card-actions align="center">
|
|
||||||
<q-btn
|
|
||||||
:label="t('dialog.save')"
|
|
||||||
color="primary"
|
|
||||||
@click="saveNewRecord"
|
|
||||||
></q-btn>
|
|
||||||
<q-btn
|
|
||||||
flat
|
|
||||||
:label="t('dialog.cancel')"
|
|
||||||
color="primary"
|
|
||||||
v-close-popup
|
|
||||||
@click="annulla"
|
|
||||||
></q-btn>
|
|
||||||
</q-card-actions>
|
|
||||||
</q-card>
|
|
||||||
</q-dialog>
|
|
||||||
<q-dialog
|
<q-dialog
|
||||||
v-model="editRecordBool"
|
v-model="editRecordBool"
|
||||||
@hide="hidewindow"
|
@hide="hidewindow"
|
||||||
|
|||||||
@@ -290,7 +290,7 @@
|
|||||||
v-model="newRecordBool"
|
v-model="newRecordBool"
|
||||||
@hide="hidewindow"
|
@hide="hidewindow"
|
||||||
:maximized="$q.screen.lt.sm"
|
:maximized="$q.screen.lt.sm"
|
||||||
permanent
|
:persistent="true"
|
||||||
>
|
>
|
||||||
<q-card class="dialog_card">
|
<q-card class="dialog_card">
|
||||||
<q-bar dense class="bg-primary text-white">
|
<q-bar dense class="bg-primary text-white">
|
||||||
@@ -360,80 +360,6 @@
|
|||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
<q-dialog
|
|
||||||
v-model="newRecordBoolOld"
|
|
||||||
@hide="hidewindow"
|
|
||||||
:maximized="$q.screen.lt.sm"
|
|
||||||
permanent
|
|
||||||
>
|
|
||||||
<q-card class="dialog_card">
|
|
||||||
<q-bar dense class="bg-primary text-white">
|
|
||||||
Nuovo {{ mytitle }}:
|
|
||||||
<q-space />
|
|
||||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
|
||||||
</q-bar>
|
|
||||||
|
|
||||||
<q-card-section class="inset-shadow">
|
|
||||||
<div
|
|
||||||
:class="$q.screen.lt.sm ? `` : `row` + ` text-blue `"
|
|
||||||
v-for="col in mycolumns"
|
|
||||||
:key="col.name"
|
|
||||||
>
|
|
||||||
<!--<div class="text-center q-my-xs" v-if="(col.fieldtype === costanti.FieldType.separator)">
|
|
||||||
<q-btn color="primary" size="md" dense :icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'"
|
|
||||||
label="Campi Avanzati" @click="showfilteradv = !showfilteradv"></q-btn>
|
|
||||||
</div>-->
|
|
||||||
<div
|
|
||||||
v-if="
|
|
||||||
showColCheck(
|
|
||||||
col,
|
|
||||||
tools.TIPOVIS_NEW_RECORD,
|
|
||||||
true,
|
|
||||||
0,
|
|
||||||
newRecord
|
|
||||||
) && col.foredit
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<div class="">
|
|
||||||
<CMyPopupEdit
|
|
||||||
:table="mytable"
|
|
||||||
:canEdit="true"
|
|
||||||
:canModify="true"
|
|
||||||
:mycol="col"
|
|
||||||
v-model:row="newRecord"
|
|
||||||
:field="col.field"
|
|
||||||
:subfield="col.subfield"
|
|
||||||
:tablesel="col.tablesel"
|
|
||||||
:value_extra="getValueExtra(col, newRecord)"
|
|
||||||
:isInModif="true"
|
|
||||||
minuteinterval="1"
|
|
||||||
:visulabel="true"
|
|
||||||
:insertMode="true"
|
|
||||||
@save="SaveValue"
|
|
||||||
@show="selItem(newRecord, col)"
|
|
||||||
@showandsave="showandsave"
|
|
||||||
>
|
|
||||||
</CMyPopupEdit>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</q-card-section>
|
|
||||||
<q-card-actions align="center">
|
|
||||||
<q-btn
|
|
||||||
:label="$t('dialog.save')"
|
|
||||||
color="primary"
|
|
||||||
@click="saveNewRecord"
|
|
||||||
></q-btn>
|
|
||||||
<q-btn
|
|
||||||
flat
|
|
||||||
:label="$t('dialog.cancel')"
|
|
||||||
color="primary"
|
|
||||||
v-close-popup
|
|
||||||
@click="annulla"
|
|
||||||
></q-btn>
|
|
||||||
</q-card-actions>
|
|
||||||
</q-card>
|
|
||||||
</q-dialog>
|
|
||||||
<q-dialog
|
<q-dialog
|
||||||
v-model="editRecordBool"
|
v-model="editRecordBool"
|
||||||
@hide="hidewindow"
|
@hide="hidewindow"
|
||||||
|
|||||||
@@ -371,7 +371,8 @@
|
|||||||
</q-item>
|
</q-item>
|
||||||
<q-item v-if="myrec.descr">
|
<q-item v-if="myrec.descr">
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-item-label class="text-h7">{{ myrec.descr }}</q-item-label>
|
<q-item-label v-if="table === shared_consts.TABLES_MYBACHECAS" class="text-h6 text-bold">{{ myrec.descr }}</q-item-label>
|
||||||
|
<q-item-label v-else class="text-h7">{{ myrec.descr }}</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
@@ -536,6 +537,36 @@
|
|||||||
></div
|
></div
|
||||||
></q-item-label>
|
></q-item-label>
|
||||||
|
|
||||||
|
<q-item
|
||||||
|
v-if="
|
||||||
|
myrec.mycities &&
|
||||||
|
myrec.mycities.length > 0 &&
|
||||||
|
myrec.mycities[0].comune
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon color="amber" name="fas fa-map-marker-alt" />
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>
|
||||||
|
<div v-if="myrec.address">
|
||||||
|
{{ myrec.address }}
|
||||||
|
</div>
|
||||||
|
<span
|
||||||
|
v-for="(city, index) in myrec.mycities"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
<span v-if="city.comune">
|
||||||
|
{{ city.comune }} ({{ city.prov }})</span
|
||||||
|
><span v-if="myrec.mycities.length > 1"> - </span>
|
||||||
|
</span>
|
||||||
|
</q-item-label>
|
||||||
|
<q-item-label v-if="myrec.profile.qualifica" caption>{{
|
||||||
|
myrec.biografia
|
||||||
|
}}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
|
||||||
<q-item clickable v-if="table === 'mybachecas'">
|
<q-item clickable v-if="table === 'mybachecas'">
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="green" name="fas fa-house-user" />
|
<q-icon color="green" name="fas fa-house-user" />
|
||||||
@@ -598,23 +629,20 @@
|
|||||||
</q-item-label>
|
</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item clickable v-if="myrec.contact_email">
|
||||||
clickable
|
|
||||||
v-if="table === 'mybachecas' && myrec.contact_email"
|
|
||||||
>
|
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="blue" name="fas fa-mail-bulk" />
|
<q-icon color="blue" name="fas fa-mail-bulk" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-item-label lines="1">
|
<q-item-label lines="1">
|
||||||
<CLabel
|
{{$t('event.contact_email')}}:
|
||||||
v-bind="$attrs"
|
<span
|
||||||
:copy="true"
|
v-html="
|
||||||
:value="myrec.contact_email"
|
tools.getlinkEmailTo(
|
||||||
:label="$t('event.contact_email')"
|
myrec.contact_email)
|
||||||
/>
|
"
|
||||||
</q-item-label>
|
/></q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
@@ -627,45 +655,17 @@
|
|||||||
|
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-item-label lines="1">
|
<q-item-label lines="1">
|
||||||
|
{{ $t('msgs.telegrammsg') }}:
|
||||||
<a
|
<a
|
||||||
:href="tools.getHttpForTelegram(myrec.contact_telegram)"
|
:href="tools.getHttpForTelegram(myrec.contact_telegram)"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>{{ $t('msgs.telegrammsg') }}: @{{
|
>@{{
|
||||||
myrec.contact_telegram
|
myrec.contact_telegram
|
||||||
}}
|
}}
|
||||||
</a>
|
</a>
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
|
||||||
v-if="
|
|
||||||
myrec.mycities &&
|
|
||||||
myrec.mycities.length > 0 &&
|
|
||||||
myrec.mycities[0].comune
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<q-item-section avatar>
|
|
||||||
<q-icon color="amber" name="fas fa-map-marker-alt" />
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>
|
|
||||||
<q-item-label>
|
|
||||||
<div v-if="myrec.address">
|
|
||||||
{{ myrec.address }}
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
v-for="(city, index) in myrec.mycities"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
<span v-if="city.comune">
|
|
||||||
{{ city.comune }} ({{ city.prov }})</span
|
|
||||||
><span v-if="myrec.mycities.length > 1"> - </span>
|
|
||||||
</span>
|
|
||||||
</q-item-label>
|
|
||||||
<q-item-label v-if="myrec.profile.qualifica" caption>{{
|
|
||||||
myrec.biografia
|
|
||||||
}}</q-item-label>
|
|
||||||
</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-if="
|
v-if="
|
||||||
|
|||||||
@@ -109,10 +109,13 @@ export default defineComponent({
|
|||||||
// console.log('load', mypathin.value)
|
// console.log('load', mypathin.value)
|
||||||
|
|
||||||
if (mypathin.value !== '') {
|
if (mypathin.value !== '') {
|
||||||
await globalStore.loadPage('/' + mypathin.value, 'cmypageelem').then(ris => {
|
onloading.value = true
|
||||||
|
await globalStore.loadPage('/' + mypathin.value, 'cmypageelem')
|
||||||
|
.then(ris => {
|
||||||
rec.value = ris
|
rec.value = ris
|
||||||
// console.log('LoadPage', ris)
|
// console.log('LoadPage', ris)
|
||||||
})
|
})
|
||||||
|
onloading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mypathin.value === 'home_logout' && globalStore.site.name === 'local' && !rec.value) {
|
if (mypathin.value === 'home_logout' && globalStore.site.name === 'local' && !rec.value) {
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div v-if="mypathin && !!rec && !onloading">
|
<div v-if="mypathin && !!rec">
|
||||||
|
<q-inner-loading id="spinner" :showing="onloading">
|
||||||
|
<q-spinner-tail color="primary" size="4em"> </q-spinner-tail>
|
||||||
|
</q-inner-loading>
|
||||||
|
|
||||||
|
<div v-if="!onloading">
|
||||||
<q-toggle
|
<q-toggle
|
||||||
v-if="tools.isManager()"
|
v-if="tools.isManager()"
|
||||||
v-model="editOn"
|
v-model="editOn"
|
||||||
@@ -87,7 +92,9 @@
|
|||||||
<transition :duration="1000" appear>
|
<transition :duration="1000" appear>
|
||||||
<CTitleBanner
|
<CTitleBanner
|
||||||
v-if="
|
v-if="
|
||||||
(myelem.active || editOn) && !!rec.path && myelem.titleBanner
|
(myelem.active || editOn) &&
|
||||||
|
!!rec.path &&
|
||||||
|
myelem.titleBanner
|
||||||
"
|
"
|
||||||
:class="`q-pa-xs `"
|
:class="`q-pa-xs `"
|
||||||
:title="myelem.titleBanner"
|
:title="myelem.titleBanner"
|
||||||
@@ -141,6 +148,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<LandingFooter v-if="rec.showFooter"></LandingFooter>
|
<LandingFooter v-if="rec.showFooter"></LandingFooter>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div v-if="!!title">
|
<div v-if="!!title">
|
||||||
<CTitle
|
<CTitle
|
||||||
@@ -157,9 +165,6 @@
|
|||||||
<div v-if="!nofooter"></div>
|
<div v-if="!nofooter"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<q-inner-loading id="spinner" :showing="onloading">
|
|
||||||
<q-spinner-tail color="primary" size="4em"> </q-spinner-tail>
|
|
||||||
</q-inner-loading>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1914,6 +1914,11 @@ export const colmyBachecas = [
|
|||||||
label_trans: 'event.contact_telegram',
|
label_trans: 'event.contact_telegram',
|
||||||
fieldtype: costanti.FieldType.string,
|
fieldtype: costanti.FieldType.string,
|
||||||
}),
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'website', label_trans: 'reg.website', isadvanced_field: true, fieldtype: costanti.FieldType.link,
|
||||||
|
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||||
|
sortable: false,
|
||||||
|
}),
|
||||||
AddCol({ name: 'min_partecip', label_trans: 'event.min_partecip', fieldtype: costanti.FieldType.number }),
|
AddCol({ name: 'min_partecip', label_trans: 'event.min_partecip', fieldtype: costanti.FieldType.number }),
|
||||||
AddCol({ name: 'max_partecip', label_trans: 'event.max_partecip', fieldtype: costanti.FieldType.number }),
|
AddCol({ name: 'max_partecip', label_trans: 'event.max_partecip', fieldtype: costanti.FieldType.number }),
|
||||||
AddCol({
|
AddCol({
|
||||||
@@ -1945,11 +1950,6 @@ export const colmyBachecas = [
|
|||||||
showWhen: 0
|
showWhen: 0
|
||||||
}),
|
}),
|
||||||
// **ADDFIELD_MYBACHECAS
|
// **ADDFIELD_MYBACHECAS
|
||||||
AddCol({
|
|
||||||
name: 'website', label_trans: 'reg.website', isadvanced_field: true, fieldtype: costanti.FieldType.link,
|
|
||||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
|
||||||
sortable: false,
|
|
||||||
}),
|
|
||||||
AddCol(DuplicateRec),
|
AddCol(DuplicateRec),
|
||||||
AddCol(ModifRec),
|
AddCol(ModifRec),
|
||||||
AddCol(DeleteRec),
|
AddCol(DeleteRec),
|
||||||
|
|||||||
@@ -4739,6 +4739,16 @@ export const tools = {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getlinkEmailTo(myemail: string) {
|
||||||
|
if (myemail) {
|
||||||
|
|
||||||
|
return `<a href="mailto:${myemail}" >${myemail}</a>`
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
getNationsByNationality(nat: string) {
|
getNationsByNationality(nat: string) {
|
||||||
if (!nat)
|
if (!nat)
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user