aggiornamento...
This commit is contained in:
@@ -189,6 +189,7 @@ export const shared_consts = {
|
||||
TABLES_WITH_DATE: ['mybachecas', 'myhosps'],
|
||||
TABLES_WITH_SORTING: ['mybachecas', 'myhosps'],
|
||||
TABLES_REC_ID: ['skills', 'goods', 'subskills', 'myskills', 'mybachecas', 'myhosps', 'mygoods'],
|
||||
TABLES_FAVORITE_BOOKMARK: ['myskills', 'mygoods', 'mybachecas', 'myhosps'],
|
||||
|
||||
// costanti.VISUTABLE_SCHEDA_USER, VISUTABLE_SCHEDA_GROUP, VISUTABLE_USER_TABGROUP, VISUTABLE_USER_TABCIRCUIT, VISUTABLE_GROUP_CIRCUIT
|
||||
VERTIC_SHOW_GRID: [-1, 2, -3, -4, -5, -6],
|
||||
@@ -539,6 +540,14 @@ export const shared_consts = {
|
||||
value: 23,
|
||||
label: 'Asciugacapelli',
|
||||
},
|
||||
{
|
||||
value: 24,
|
||||
label: 'Riscaldamento a legna',
|
||||
},
|
||||
{
|
||||
value: 25,
|
||||
label: 'Riscaldamento a gas',
|
||||
},
|
||||
],
|
||||
|
||||
Regions: [
|
||||
@@ -1546,4 +1555,41 @@ export const shared_consts = {
|
||||
return ['_id', 'username', 'group', 'email', 'name', 'surname', 'perm', 'date_reg', 'verified_email', 'notask_verif', 'verified_by_aportador', 'trust_modified', 'img', 'ipaddr', 'lasttimeonline', 'profile', 'news_on']
|
||||
},
|
||||
|
||||
getProjectForAll(proj_add: any) {
|
||||
let proj = {
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
note: 1,
|
||||
descr: 1,
|
||||
date_created: 1,
|
||||
date_updated: 1,
|
||||
userId: 1,
|
||||
username: 1,
|
||||
name: 1,
|
||||
surname: 1,
|
||||
lasttimeonline: 1,
|
||||
comune: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.mycircuits': 1,
|
||||
'profile.qualifica': 1,
|
||||
'profile.resid_province': 1,
|
||||
'profile.username_telegram': 1,
|
||||
'profile.favorite': 1,
|
||||
'profile.bookmark': 1,
|
||||
reported: 1,
|
||||
date_report: 1,
|
||||
username_who_report: 1,
|
||||
};
|
||||
|
||||
if (proj_add)
|
||||
proj = Object.assign({}, proj, proj_add);
|
||||
|
||||
return proj;
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
<template>
|
||||
<div class="bordo_stondato_blu">
|
||||
<CTitleBanner class="column" title="Tipi di ospitalità"></CTitleBanner>
|
||||
<div class="">
|
||||
|
||||
|
||||
<div class="">
|
||||
<q-btn
|
||||
v-if="isInModif"
|
||||
rounded label="Aggiungi Letti" color="positive" @click="add_newbed()">
|
||||
</q-btn>
|
||||
|
||||
<div v-for="(myaccom, index) in getlist()" :key="index">
|
||||
<div v-if="isInModif" class="row justify-center bordo_stondato_small">
|
||||
@@ -17,6 +13,8 @@
|
||||
v-model:value="myaccom.num"
|
||||
optval="value"
|
||||
optlab="label"
|
||||
style="min-width:80px;"
|
||||
|
||||
:sola_lettura="!isInModif"
|
||||
:options="shared_consts.People" :useinput="false"
|
||||
>
|
||||
@@ -58,6 +56,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<q-btn
|
||||
v-if="isInModif"
|
||||
rounded label="Aggiungi Letti" color="positive" @click="add_newbed()">
|
||||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -91,30 +91,15 @@
|
||||
myclass="myshad"
|
||||
:canopen="true"
|
||||
>
|
||||
<<<<<<< HEAD
|
||||
<div v-for="(card, ind) of mycards" :key="ind" :name="card.table">
|
||||
<q-card class="q-my-md">
|
||||
<div v-if="card.table === 'mygroups'">
|
||||
<q-list>
|
||||
<span
|
||||
v-for="(grp, index) in listgroupsfiltered"
|
||||
:key="index"
|
||||
class="q-my-sm q-mx-none"
|
||||
clickable
|
||||
>
|
||||
<CMyGroup
|
||||
:mygrp="grp"
|
||||
:visu="costanti.USER_GROUPS"
|
||||
=======
|
||||
<q-tabs
|
||||
v-model="mytab"
|
||||
inline-label
|
||||
dense
|
||||
class="text-black shadow-2"
|
||||
class="shadow-2"
|
||||
>
|
||||
<q-tab name="my" icon="far fa-user" />
|
||||
<q-tab name="favorite" icon="far fa-heart" />
|
||||
<q-tab name="bookmark" icon="far fa-bookmark" />
|
||||
<q-tab name="favorite" icon="favorite" content-class="text-red" />
|
||||
<q-tab name="bookmark" icon="bookmark" content-class="text-teal" />
|
||||
</q-tabs>
|
||||
|
||||
<q-tab-panels
|
||||
@@ -173,43 +158,55 @@
|
||||
:filtercustom="filtroutente"
|
||||
:butt_modif_new="isMyRecord(myuser.username)"
|
||||
:visuinpage="true"
|
||||
>>>>>>> parent of 701e1f1 (Aggiornamento a 0.6.1)
|
||||
:noaut="true"
|
||||
>
|
||||
</CMyGroup>
|
||||
</span>
|
||||
</q-list>
|
||||
:title="card.title"
|
||||
/>
|
||||
</div>
|
||||
</q-card>
|
||||
</div>
|
||||
<div v-else-if="card.table === 'circuits'">
|
||||
<div class="text-h6">{{ card.title }}</div>
|
||||
<q-list>
|
||||
<span
|
||||
v-for="(circuit, index) in listcircuitsfiltered"
|
||||
:key="index"
|
||||
class="q-my-sm q-mx-none"
|
||||
clickable
|
||||
>
|
||||
<CMyCircuit
|
||||
:mycircuit="circuit"
|
||||
:visu="costanti.USER_CIRCUITS"
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="favorite">
|
||||
<div
|
||||
v-for="(card, ind) of mycards"
|
||||
:key="ind"
|
||||
:name="card.table"
|
||||
>
|
||||
<q-card class="q-my-md">
|
||||
|
||||
<div v-if="card.showfavorite && filtrofavorite(card.table)">
|
||||
<CSkill
|
||||
:table="card.table"
|
||||
:filtercustom="filtrofavorite(card.table)"
|
||||
:butt_modif_new="false"
|
||||
:visuinpage="true"
|
||||
:noaut="false"
|
||||
:title="card.title"
|
||||
/>
|
||||
</div>
|
||||
</q-card>
|
||||
</div>
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="bookmark">
|
||||
<div
|
||||
v-for="(card, ind) of mycards"
|
||||
:key="ind"
|
||||
:name="card.table"
|
||||
>
|
||||
<q-card class="q-my-md">
|
||||
<div v-if="card.showfavorite && filtrobookmark(card.table)">
|
||||
<CSkill
|
||||
:table="card.table"
|
||||
:filtercustom="filtrobookmark(card.table)"
|
||||
:butt_modif_new="isMyRecord(myuser.username)"
|
||||
:visuinpage="true"
|
||||
:noaut="true"
|
||||
>
|
||||
</CMyCircuit>
|
||||
</span>
|
||||
</q-list>
|
||||
:title="card.title"
|
||||
/>
|
||||
</div>
|
||||
</q-card>
|
||||
</div>
|
||||
<div v-else>
|
||||
<CSkill
|
||||
:table="card.table"
|
||||
:filtercustom="filtroutente"
|
||||
:butt_modif_new="isMyRecord(myuser.username)"
|
||||
:visuinpage="true"
|
||||
:noaut="true"
|
||||
:title="card.title"
|
||||
/>
|
||||
</div>
|
||||
</q-card>
|
||||
</div>
|
||||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
</CTitleBanner>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,8 +5,10 @@ import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
import { CProfile } from '@/components/CProfile'
|
||||
import { CDateTime } from '@/components/CDateTime'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CMyChipList } from '@/components/CMyChipList'
|
||||
import { CMyFieldRec } from '@/components/CMyFieldRec'
|
||||
import { CMyUser } from '@/components/CMyUser'
|
||||
import { CGalleryImages } from '@/components/CGalleryImages'
|
||||
import { CAccomodation } from '@/components/CAccomodation'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
@@ -19,14 +21,16 @@ import { costanti } from '@costanti'
|
||||
import { IColGridTable, IImgGallery, IUserFields } from 'model'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { colCitys, fieldsTable } from '@store/Modules/fieldsTable'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { useNotifStore } from '@store/NotifStore'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CMyCardService',
|
||||
components: { CProfile, CTitleBanner,
|
||||
components: {
|
||||
CProfile, CTitleBanner,
|
||||
CMyFieldDb, CDateTime, CMyPage, CMyFieldRec, CAccomodation,
|
||||
CMyUser },
|
||||
CMyUser, CGalleryImages, CMyChipList
|
||||
},
|
||||
props: {
|
||||
table: {
|
||||
type: String,
|
||||
@@ -60,6 +64,10 @@ export default defineComponent({
|
||||
|
||||
const showPic = ref(false)
|
||||
|
||||
const $router = useRouter()
|
||||
|
||||
const usersList = ref({ show: false, title: '', list: [] })
|
||||
|
||||
const myrec = ref(<any>{})
|
||||
const col = ref(<IColGridTable>{})
|
||||
|
||||
@@ -71,7 +79,7 @@ export default defineComponent({
|
||||
|
||||
function load() {
|
||||
// Carica il profilo di quest'utente
|
||||
if (props.idRec > 0) {
|
||||
if (props.idRec) {
|
||||
userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
|
||||
myrec.value = ris
|
||||
notifStore.setAsRead(idnotif.value)
|
||||
@@ -110,8 +118,6 @@ export default defineComponent({
|
||||
return false
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
function getRecGoodSkillByRec(rec: any) {
|
||||
if (props.table === 'myskills')
|
||||
return rec.recSkill
|
||||
@@ -160,7 +166,6 @@ export default defineComponent({
|
||||
return obj
|
||||
}
|
||||
|
||||
>>>>>>> parent of 701e1f1 (Aggiornamento a 0.6.1)
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -181,6 +186,12 @@ export default defineComponent({
|
||||
showBadge,
|
||||
getlinkpage,
|
||||
calendarStore,
|
||||
getSectorByRec,
|
||||
getRecGoodSkillByRec,
|
||||
usersList,
|
||||
clicca,
|
||||
naviga,
|
||||
getTypeHosps,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,32 +1,22 @@
|
||||
<template>
|
||||
<div v-if="myrec._id">
|
||||
<div class="q-pa-sm row items-start q-gutter-sm">
|
||||
<q-card class="my-card" bordered>
|
||||
<q-img
|
||||
<div v-if="myrec && myrec._id" class="fulldiv">
|
||||
<div class="q-pa-sm row items-start q-gutter-sm full-height fulldiv">
|
||||
<q-card class="my-card fulldiv" bordered>
|
||||
<CGalleryImages
|
||||
v-if="myrec.photos.length > 0"
|
||||
:src="myrec.photos[0].imagefile"
|
||||
class="imgautosize"
|
||||
:alt="myrec.descr">
|
||||
</q-img>
|
||||
:imgGallery="myrec.photos"
|
||||
:directory="'upload/' + tools.getDirectoryGall(myrec, table, '')"
|
||||
>
|
||||
</CGalleryImages>
|
||||
|
||||
<q-card-actions align="right">
|
||||
<<<<<<< HEAD
|
||||
<q-btn flat round :color="userStore.isFavorite(myrec._id, table) ? 'red' : ''" icon="favorite" @click="userStore.setFavorite($q, t, myrec._id, shared_consts.TABMYSKILLS)" />
|
||||
<q-btn flat round :color="userStore.isBookmarked(myrec._id, table) ? 'teal' : ''" icon="bookmark" @click="userStore.setBookmark($q, t, myrec._id, shared_consts.TABMYSKILLS)"/>
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
color="primary"
|
||||
icon="share"
|
||||
@click="tools.copyToClip($q, getlinkpage(), true)"
|
||||
/>
|
||||
=======
|
||||
<div class="">
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
:color="userStore.isFavorite(myrec._id, table) ? 'red' : ''"
|
||||
icon="favorite"
|
||||
@click="clicca(costanti.TIPOFAVBOOK.FAVORITE, true)"
|
||||
color="red"
|
||||
:icon="userStore.isFavorite(myrec._id, table) ? 'favorite' : 'far fa-heart'"
|
||||
@click="clicca(costanti.TIPOFAVBOOK.FAVORITE, true, '')"
|
||||
>
|
||||
<q-badge
|
||||
v-if="myrec.myfav"
|
||||
@@ -41,9 +31,9 @@
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
:color="userStore.isBookmarked(myrec._id, table) ? 'teal' : ''"
|
||||
icon="bookmark"
|
||||
@click="clicca(costanti.TIPOFAVBOOK.BOOKMARK, true)"
|
||||
color="teal"
|
||||
:icon="userStore.isBookmarked(myrec._id, table) ? 'bookmark' : 'far fa-bookmark'"
|
||||
@click="clicca(costanti.TIPOFAVBOOK.BOOKMARK, true, '')"
|
||||
>
|
||||
<q-badge
|
||||
v-if="myrec.mybook"
|
||||
@@ -66,7 +56,19 @@
|
||||
<div>
|
||||
<q-btn flat round icon="fas fa-ellipsis-h">
|
||||
<q-menu>
|
||||
<q-list v-if="true" style="min-width: 150px">
|
||||
<q-list v-if="true" style="min-width: 200px">
|
||||
<q-item
|
||||
v-if="myrec.profile.username_telegram"
|
||||
clickable
|
||||
v-close-popup
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="blue" name="far fa-comment" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<a :href="tools.getHttpForTelegram(myrec.profile.username_telegram)" target="_blank">{{ $t('dialog.contact') }} - {{tools.getNomeUtenteByRecUser(myrec)}}</a>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
v-if="!nopopup"
|
||||
clickable
|
||||
@@ -88,7 +90,7 @@
|
||||
clicca(
|
||||
costanti.TIPOFAVBOOK.FAVORITE,
|
||||
false,
|
||||
$t('cmd.favorite')
|
||||
$t('cmd.favorite', {num: myrec.myfav ? myrec.myfav.length : 0})
|
||||
)
|
||||
"
|
||||
>
|
||||
@@ -96,7 +98,7 @@
|
||||
<q-icon color="red" name="favorite" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{ $t('cmd.favorite') }}
|
||||
{{ $t('cmd.favorite', {num: myrec.myfav ? myrec.myfav.length : 0}) }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -106,7 +108,7 @@
|
||||
clicca(
|
||||
costanti.TIPOFAVBOOK.BOOKMARK,
|
||||
false,
|
||||
$t('cmd.bookmark')
|
||||
$t('cmd.bookmark', {num: myrec.mybook ? myrec.mybook.length : 0})
|
||||
)
|
||||
"
|
||||
>
|
||||
@@ -114,14 +116,13 @@
|
||||
<q-icon color="teal" name="bookmark" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{ $t('cmd.bookmark') }}
|
||||
{{ $t('cmd.bookmark', {num: myrec.mybook ? myrec.mybook.length : 0}) }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
</div>
|
||||
>>>>>>> parent of 701e1f1 (Aggiornamento a 0.6.1)
|
||||
</q-card-actions>
|
||||
<q-separator />
|
||||
|
||||
@@ -141,6 +142,12 @@
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label v-if="myrec.typeHosp" class="text-bold text-h7">
|
||||
<q-chip dense color="green" text-color="white"
|
||||
>{{ getTypeHosps() }}
|
||||
</q-chip>
|
||||
</q-item-label>
|
||||
|
||||
<q-item-label class="text-bold text-h7">{{
|
||||
myrec.descr
|
||||
}}</q-item-label>
|
||||
@@ -178,30 +185,88 @@
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
<q-chip
|
||||
v-if="myrec.sector && myrec.sector[0].descr"
|
||||
v-if="getSectorByRec(myrec) && getSectorByRec(myrec)[0].descr"
|
||||
class="glossy"
|
||||
color="blue"
|
||||
text-color="white"
|
||||
dense
|
||||
>
|
||||
<span class="cal__quota-content">{{
|
||||
myrec.sector[0].descr
|
||||
getSectorByRec(myrec)[0].descr
|
||||
}}</span>
|
||||
</q-chip>
|
||||
<q-chip
|
||||
v-if="myrec.recSkill.length > 0 && myrec.recSkill[0].descr"
|
||||
v-if="
|
||||
getRecGoodSkillByRec(myrec) &&
|
||||
getRecGoodSkillByRec(myrec).length > 0 &&
|
||||
getRecGoodSkillByRec(myrec)[0].descr
|
||||
"
|
||||
class="glossy"
|
||||
dense
|
||||
color="blue"
|
||||
text-color="white"
|
||||
>
|
||||
<span class="cal__quota-content">{{
|
||||
myrec.recSkill[0].descr
|
||||
getRecGoodSkillByRec(myrec)[0].descr
|
||||
}}</span>
|
||||
</q-chip>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="myrec.numMaxPeopleHosp" class="q-mt-sm">
|
||||
<q-item-section avatar>
|
||||
<q-icon color="blue" name="fas fa-users" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<q-item-label class="q-px-xs q-ma-xs">
|
||||
<span class="accom_maxosp">{{ myrec.numMaxPeopleHosp }}</span
|
||||
>{{ t('hosps.numMaxPeopleHosp') }}
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="!!myrec.accomodation && myrec.accomodation.length > 0">
|
||||
<q-item-section avatar>
|
||||
<q-icon color="orange" name="fas fa-bed" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
<CAccomodation
|
||||
v-if="!!myrec.accomodation"
|
||||
:mylist="myrec.accomodation"
|
||||
:isInModif="false"
|
||||
:edit="false"
|
||||
:canModify="false"
|
||||
>
|
||||
</CAccomodation>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="!!myrec.preferences && myrec.preferences.length > 0">
|
||||
<q-item-section avatar>
|
||||
<q-icon color="red" name="fas fa-asterisk" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
<CMyChipList
|
||||
:rec="myrec"
|
||||
:type="costanti.FieldType.multiselect"
|
||||
:value="myrec.preferences"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
toolsext.TABPREF,
|
||||
false,
|
||||
false,
|
||||
null
|
||||
)
|
||||
"
|
||||
:optval="fieldsTable.getKeyByTable(toolsext.TABPREF)"
|
||||
:optlab="fieldsTable.getLabelByTable(toolsext.TABPREF)"
|
||||
:opticon="fieldsTable.getIconByTable(toolsext.TABPREF)"
|
||||
></CMyChipList>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-separator />
|
||||
<q-item-label v-if="myrec.note"
|
||||
><div v-html="myrec.note" class="clBorderService"></div
|
||||
></q-item-label>
|
||||
@@ -237,7 +302,26 @@
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label>{{ myrec.website }}</q-item-label>
|
||||
<q-item-label lines="1">
|
||||
<span
|
||||
v-html="
|
||||
tools.getlinkhref(myrec.website, 'Visita il Sito Web')
|
||||
"
|
||||
/></q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item clickable v-if="myrec.link_maplocation">
|
||||
<q-item-section avatar>
|
||||
<q-icon color="blue" name="fas fa-map-marker-alt" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label lines="1">
|
||||
<span
|
||||
v-html="
|
||||
tools.getlinkhref(myrec.link_maplocation, 'Apri Mappa')
|
||||
"
|
||||
/></q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="myrec.idContribType && myrec.idContribType.length > 0">
|
||||
@@ -290,7 +374,11 @@
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-separator />
|
||||
<q-card-actions align="center">
|
||||
<div class="q-mb-xl"></div>
|
||||
<q-card-actions
|
||||
v-if="$q.screen.gt.sm || nopopup"
|
||||
class="text-center justify-center"
|
||||
>
|
||||
<q-btn
|
||||
v-if="myrec.profile.username_telegram"
|
||||
:label="$t('dialog.contact')"
|
||||
@@ -300,9 +388,14 @@
|
||||
:type="tools.isUserOk() ? 'a' : 'btn'"
|
||||
size="md"
|
||||
rounded
|
||||
:href="tools.isUserOk() ? tools.getHttpForTelegram(myrec.profile.username_telegram) : null"
|
||||
:href="
|
||||
tools.isUserOk()
|
||||
? tools.getHttpForTelegram(myrec.profile.username_telegram)
|
||||
: null
|
||||
"
|
||||
/>
|
||||
<q-btn
|
||||
v-if="!nopopup"
|
||||
rounded
|
||||
outline
|
||||
:label="$t('dialog.close')"
|
||||
@@ -312,10 +405,8 @@
|
||||
/>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
<div
|
||||
v-if="!$q.screen.gt.sm || !nopopup"
|
||||
v-if="!$q.screen.gt.sm && !nopopup"
|
||||
class="row absolute-bottom text-shadow custom-caption q-px-md buttons_bottom"
|
||||
>
|
||||
<q-btn
|
||||
@@ -343,170 +434,29 @@
|
||||
v-close-popup
|
||||
/>
|
||||
</div>
|
||||
>>>>>>> parent of 701e1f1 (Aggiornamento a 0.6.1)
|
||||
</div>
|
||||
</div>
|
||||
<q-dialog v-model="usersList.show">
|
||||
<q-card class="dialog_card">
|
||||
<q-toolbar class="bg-primary text-white">
|
||||
<q-toolbar-title>
|
||||
{{ usersList.title }}
|
||||
</q-toolbar-title>
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-toolbar>
|
||||
|
||||
<q-card class="dialog_card q-mb-lg" v-if="myrec._id && false">
|
||||
<q-footer
|
||||
v-if="!nopopup"
|
||||
:class="
|
||||
($q.dark.isActive ? `bg-black` : `bg-white`) +
|
||||
` small-screen-only text-center`
|
||||
"
|
||||
bordered
|
||||
>
|
||||
<q-btn
|
||||
push
|
||||
rounded
|
||||
color="primary"
|
||||
icon="close"
|
||||
label="Chiudi"
|
||||
v-close-popup
|
||||
></q-btn>
|
||||
</q-footer>
|
||||
<q-bar v-if="!nopopup" dense class="bg-primary text-white">
|
||||
{{ myrec.username }}
|
||||
<q-space />
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-bar>
|
||||
<q-card-section class="inset-shadow">
|
||||
<!-- Per ora visualizzo solo la Prima Immagine -->
|
||||
<div class="text-center">
|
||||
<q-img
|
||||
v-if="tools.getValue(myrec, 'photos', '')"
|
||||
:src="
|
||||
tools.getFullFileName(
|
||||
tools.getValue(myrec, 'photos', ''),
|
||||
table,
|
||||
myrec.username,
|
||||
myrec.groupname
|
||||
)
|
||||
"
|
||||
class="img"
|
||||
alt="immagine bene"
|
||||
></q-img>
|
||||
</div>
|
||||
|
||||
<div v-if="showBadge()" class="text-center">
|
||||
<q-chip
|
||||
:icon="fieldsTable.getIconByAdType(myrec.adType)"
|
||||
:color="fieldsTable.getColByAdType(myrec.adType)"
|
||||
text-color="white"
|
||||
>{{ fieldsTable.getValByTabAndId(table, 'adType', myrec.adType) }}
|
||||
</q-chip>
|
||||
</div>
|
||||
|
||||
<!--:title="t(mycol.label_trans)"-->
|
||||
<div v-for="(mycol, index) of col" :key="index">
|
||||
<div
|
||||
v-if="
|
||||
mycol.visible &&
|
||||
tools.checkIfShowField(
|
||||
mycol,
|
||||
tools.TIPOVIS_SHOW_RECORD,
|
||||
false,
|
||||
tools.getValue(myrec, mycol.field, mycol.subfield)
|
||||
)
|
||||
"
|
||||
>
|
||||
<div v-if="mycol.fieldtype === costanti.FieldType.html">
|
||||
<div
|
||||
class="note-bacheca"
|
||||
v-html="tools.getValue(myrec, mycol.field, mycol.subfield)"
|
||||
></div>
|
||||
</div>
|
||||
<div v-else-if="mycol.name === 'descr'">
|
||||
<div class="text-bacheca">
|
||||
{{ tools.getValue(myrec, mycol.field, mycol.subfield) }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="mycol.name === 'numMaxPeopleHosp'">
|
||||
<div class="text-bacheca">
|
||||
<span class="accom_maxosp">{{
|
||||
tools.getValue(myrec, mycol.field, mycol.subfield)
|
||||
}}</span
|
||||
>{{ t('hosps.numMaxPeopleHosp') }}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="mycol.name === 'dateTimeStart'"
|
||||
class="text-center cal"
|
||||
<q-card-section class="inset-shadow">
|
||||
<div v-for="(rec, i) in usersList.list" :key="i">
|
||||
<CMyUser
|
||||
:mycontact="rec"
|
||||
:visu="costanti.FIND_PEOPLE"
|
||||
@setCmd="tools.setCmd"
|
||||
>
|
||||
<div v-if="myrec.dateTimeStart" class="cal__when">
|
||||
<span class="cal__where-title">{{ $t('cal.when') }}:</span>
|
||||
<span v-html="tools.getstrDateTimeEvent(t, myrec, true)"></span>
|
||||
</div>
|
||||
<!--
|
||||
<span class="dateevent" v-if="myrec.dateTimeStart">dal <span class="datainizio">{{
|
||||
tools.getstrVeryShortDate(myrec.dateTimeStart)
|
||||
}}</span> al <span class="datafine">{{ tools.getstrVeryShortDate(myrec.dateTimeEnd) }}</span>
|
||||
</span>--->
|
||||
</div>
|
||||
<div v-else-if="mycol.name === 'accomodation'">
|
||||
<CAccomodation
|
||||
v-if="!!myrec.accomodation"
|
||||
:mylist="myrec.accomodation"
|
||||
:isInModif="false"
|
||||
:edit="false"
|
||||
:canModify="false"
|
||||
>
|
||||
</CAccomodation>
|
||||
</div>
|
||||
<div v-else-if="mycol.name === 'dateTimeEnd'"></div>
|
||||
<CMyFieldRec
|
||||
v-else
|
||||
:table="table"
|
||||
:id="myrec._id"
|
||||
:rec="myrec"
|
||||
:field="mycol.field"
|
||||
:canEdit="false"
|
||||
:canModify="false"
|
||||
>
|
||||
</CMyFieldRec>
|
||||
</CMyUser>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<div v-if="myrec.date_created" class="row justify-center">
|
||||
<span class="cal__where-title"> {{ $t('reg.pub_created') }}:</span>
|
||||
<span v-html="tools.getstrDate(myrec.date_created)"></span>
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
tools.getstrDate(myrec.date_updated) !==
|
||||
tools.getstrDate(myrec.date_created)
|
||||
"
|
||||
class="row justify-center"
|
||||
>
|
||||
<span class="cal__where-title"> {{ $t('reg.pub_updated') }}:</span>
|
||||
<span v-html="tools.getstrDate(myrec.date_updated)"></span>
|
||||
</div>
|
||||
|
||||
<div v-if="!nopopup" class="row q-ma-sm q-pa-sm justify-center">
|
||||
<div class="q-ma-sm">
|
||||
<q-btn
|
||||
icon="far fa-file-alt"
|
||||
label="Apri"
|
||||
color="primary"
|
||||
text-color="white"
|
||||
:to="tools.getToByCol(col, table, myrec)"
|
||||
/>
|
||||
</div>
|
||||
<div class="q-ma-sm">
|
||||
<q-btn
|
||||
v-if="myrec._id"
|
||||
:text-color="$q.dark.isActive ? `white` : `black`"
|
||||
icon="fas fa-link"
|
||||
label="Condividi"
|
||||
@click="condividipag"
|
||||
></q-btn>
|
||||
</div>
|
||||
</div>
|
||||
<br /><br />
|
||||
myrec: {{ myrec }}
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CMyCardService.ts">
|
||||
|
||||
@@ -17,6 +17,11 @@ export const costanti = {
|
||||
CERCO: 2,
|
||||
},
|
||||
|
||||
TIPOFAVBOOK: {
|
||||
FAVORITE: 1,
|
||||
BOOKMARK: 2,
|
||||
},
|
||||
|
||||
ENABLE_FRIENDS: false,
|
||||
ENABLE_CONTI_COLLETTIVI: true,
|
||||
|
||||
@@ -105,6 +110,7 @@ export const costanti = {
|
||||
table: 'mygoods',
|
||||
visuonstat: true,
|
||||
small: false,
|
||||
showfavorite: true,
|
||||
},
|
||||
{
|
||||
visible: true,
|
||||
@@ -118,6 +124,7 @@ export const costanti = {
|
||||
table: 'myskills',
|
||||
visuonstat: true,
|
||||
small: false,
|
||||
showfavorite: true,
|
||||
},
|
||||
{
|
||||
visible: true,
|
||||
@@ -133,6 +140,7 @@ export const costanti = {
|
||||
small: false,
|
||||
table: 'myhosps',
|
||||
visuonstat: true,
|
||||
showfavorite: true,
|
||||
},
|
||||
{
|
||||
visible: false,
|
||||
@@ -186,6 +194,7 @@ export const costanti = {
|
||||
table: 'mybachecas',
|
||||
visuonstat: true,
|
||||
small: false,
|
||||
showfavorite: true,
|
||||
},
|
||||
{
|
||||
visible: false,
|
||||
|
||||
@@ -6946,6 +6946,7 @@ export const tools = {
|
||||
idCity: this.getCitySel(),
|
||||
pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
|
||||
photos: [],
|
||||
accomodation: [],
|
||||
descr: '',
|
||||
note: '',
|
||||
website: '',
|
||||
|
||||
Reference in New Issue
Block a user