aggiornamento...
This commit is contained in:
@@ -189,6 +189,7 @@ export const shared_consts = {
|
|||||||
TABLES_WITH_DATE: ['mybachecas', 'myhosps'],
|
TABLES_WITH_DATE: ['mybachecas', 'myhosps'],
|
||||||
TABLES_WITH_SORTING: ['mybachecas', 'myhosps'],
|
TABLES_WITH_SORTING: ['mybachecas', 'myhosps'],
|
||||||
TABLES_REC_ID: ['skills', 'goods', 'subskills', 'myskills', 'mybachecas', 'myhosps', 'mygoods'],
|
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
|
// 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],
|
VERTIC_SHOW_GRID: [-1, 2, -3, -4, -5, -6],
|
||||||
@@ -539,6 +540,14 @@ export const shared_consts = {
|
|||||||
value: 23,
|
value: 23,
|
||||||
label: 'Asciugacapelli',
|
label: 'Asciugacapelli',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: 24,
|
||||||
|
label: 'Riscaldamento a legna',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 25,
|
||||||
|
label: 'Riscaldamento a gas',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
Regions: [
|
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']
|
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>
|
<template>
|
||||||
<div class="bordo_stondato_blu">
|
<div class="">
|
||||||
<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-for="(myaccom, index) in getlist()" :key="index">
|
||||||
<div v-if="isInModif" class="row justify-center bordo_stondato_small">
|
<div v-if="isInModif" class="row justify-center bordo_stondato_small">
|
||||||
@@ -17,6 +13,8 @@
|
|||||||
v-model:value="myaccom.num"
|
v-model:value="myaccom.num"
|
||||||
optval="value"
|
optval="value"
|
||||||
optlab="label"
|
optlab="label"
|
||||||
|
style="min-width:80px;"
|
||||||
|
|
||||||
:sola_lettura="!isInModif"
|
:sola_lettura="!isInModif"
|
||||||
:options="shared_consts.People" :useinput="false"
|
:options="shared_consts.People" :useinput="false"
|
||||||
>
|
>
|
||||||
@@ -58,6 +56,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<q-btn
|
||||||
|
v-if="isInModif"
|
||||||
|
rounded label="Aggiungi Letti" color="positive" @click="add_newbed()">
|
||||||
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -91,30 +91,15 @@
|
|||||||
myclass="myshad"
|
myclass="myshad"
|
||||||
:canopen="true"
|
: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
|
<q-tabs
|
||||||
v-model="mytab"
|
v-model="mytab"
|
||||||
inline-label
|
inline-label
|
||||||
dense
|
dense
|
||||||
class="text-black shadow-2"
|
class="shadow-2"
|
||||||
>
|
>
|
||||||
<q-tab name="my" icon="far fa-user" />
|
<q-tab name="my" icon="far fa-user" />
|
||||||
<q-tab name="favorite" icon="far fa-heart" />
|
<q-tab name="favorite" icon="favorite" content-class="text-red" />
|
||||||
<q-tab name="bookmark" icon="far fa-bookmark" />
|
<q-tab name="bookmark" icon="bookmark" content-class="text-teal" />
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
|
|
||||||
<q-tab-panels
|
<q-tab-panels
|
||||||
@@ -173,35 +158,45 @@
|
|||||||
:filtercustom="filtroutente"
|
:filtercustom="filtroutente"
|
||||||
:butt_modif_new="isMyRecord(myuser.username)"
|
:butt_modif_new="isMyRecord(myuser.username)"
|
||||||
:visuinpage="true"
|
:visuinpage="true"
|
||||||
>>>>>>> parent of 701e1f1 (Aggiornamento a 0.6.1)
|
|
||||||
:noaut="true"
|
:noaut="true"
|
||||||
>
|
:title="card.title"
|
||||||
</CMyGroup>
|
/>
|
||||||
</span>
|
|
||||||
</q-list>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="card.table === 'circuits'">
|
</q-card>
|
||||||
<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"
|
|
||||||
:noaut="true"
|
|
||||||
>
|
|
||||||
</CMyCircuit>
|
|
||||||
</span>
|
|
||||||
</q-list>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
</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
|
<CSkill
|
||||||
:table="card.table"
|
:table="card.table"
|
||||||
:filtercustom="filtroutente"
|
: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)"
|
:butt_modif_new="isMyRecord(myuser.username)"
|
||||||
:visuinpage="true"
|
:visuinpage="true"
|
||||||
:noaut="true"
|
:noaut="true"
|
||||||
@@ -210,6 +205,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
</q-tab-panel>
|
||||||
|
</q-tab-panels>
|
||||||
</CTitleBanner>
|
</CTitleBanner>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,8 +5,10 @@ import { CTitleBanner } from '@/components/CTitleBanner'
|
|||||||
import { CProfile } from '@/components/CProfile'
|
import { CProfile } from '@/components/CProfile'
|
||||||
import { CDateTime } from '@/components/CDateTime'
|
import { CDateTime } from '@/components/CDateTime'
|
||||||
import { CMyPage } from '@/components/CMyPage'
|
import { CMyPage } from '@/components/CMyPage'
|
||||||
|
import { CMyChipList } from '@/components/CMyChipList'
|
||||||
import { CMyFieldRec } from '@/components/CMyFieldRec'
|
import { CMyFieldRec } from '@/components/CMyFieldRec'
|
||||||
import { CMyUser } from '@/components/CMyUser'
|
import { CMyUser } from '@/components/CMyUser'
|
||||||
|
import { CGalleryImages } from '@/components/CGalleryImages'
|
||||||
import { CAccomodation } from '@/components/CAccomodation'
|
import { CAccomodation } from '@/components/CAccomodation'
|
||||||
import { tools } from '@store/Modules/tools'
|
import { tools } from '@store/Modules/tools'
|
||||||
import { useUserStore } from '@store/UserStore'
|
import { useUserStore } from '@store/UserStore'
|
||||||
@@ -19,14 +21,16 @@ import { costanti } from '@costanti'
|
|||||||
import { IColGridTable, IImgGallery, IUserFields } from 'model'
|
import { IColGridTable, IImgGallery, IUserFields } from 'model'
|
||||||
import { shared_consts } from '@/common/shared_vuejs'
|
import { shared_consts } from '@/common/shared_vuejs'
|
||||||
import { colCitys, fieldsTable } from '@store/Modules/fieldsTable'
|
import { colCitys, fieldsTable } from '@store/Modules/fieldsTable'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
import { useNotifStore } from '@store/NotifStore'
|
import { useNotifStore } from '@store/NotifStore'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CMyCardService',
|
name: 'CMyCardService',
|
||||||
components: { CProfile, CTitleBanner,
|
components: {
|
||||||
|
CProfile, CTitleBanner,
|
||||||
CMyFieldDb, CDateTime, CMyPage, CMyFieldRec, CAccomodation,
|
CMyFieldDb, CDateTime, CMyPage, CMyFieldRec, CAccomodation,
|
||||||
CMyUser },
|
CMyUser, CGalleryImages, CMyChipList
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
table: {
|
table: {
|
||||||
type: String,
|
type: String,
|
||||||
@@ -60,6 +64,10 @@ export default defineComponent({
|
|||||||
|
|
||||||
const showPic = ref(false)
|
const showPic = ref(false)
|
||||||
|
|
||||||
|
const $router = useRouter()
|
||||||
|
|
||||||
|
const usersList = ref({ show: false, title: '', list: [] })
|
||||||
|
|
||||||
const myrec = ref(<any>{})
|
const myrec = ref(<any>{})
|
||||||
const col = ref(<IColGridTable>{})
|
const col = ref(<IColGridTable>{})
|
||||||
|
|
||||||
@@ -71,7 +79,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
function load() {
|
function load() {
|
||||||
// Carica il profilo di quest'utente
|
// Carica il profilo di quest'utente
|
||||||
if (props.idRec > 0) {
|
if (props.idRec) {
|
||||||
userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
|
userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
|
||||||
myrec.value = ris
|
myrec.value = ris
|
||||||
notifStore.setAsRead(idnotif.value)
|
notifStore.setAsRead(idnotif.value)
|
||||||
@@ -110,8 +118,6 @@ export default defineComponent({
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
function getRecGoodSkillByRec(rec: any) {
|
function getRecGoodSkillByRec(rec: any) {
|
||||||
if (props.table === 'myskills')
|
if (props.table === 'myskills')
|
||||||
return rec.recSkill
|
return rec.recSkill
|
||||||
@@ -160,7 +166,6 @@ export default defineComponent({
|
|||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
|
||||||
>>>>>>> parent of 701e1f1 (Aggiornamento a 0.6.1)
|
|
||||||
onMounted(mounted)
|
onMounted(mounted)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -181,6 +186,12 @@ export default defineComponent({
|
|||||||
showBadge,
|
showBadge,
|
||||||
getlinkpage,
|
getlinkpage,
|
||||||
calendarStore,
|
calendarStore,
|
||||||
|
getSectorByRec,
|
||||||
|
getRecGoodSkillByRec,
|
||||||
|
usersList,
|
||||||
|
clicca,
|
||||||
|
naviga,
|
||||||
|
getTypeHosps,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,32 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="myrec._id">
|
<div v-if="myrec && myrec._id" class="fulldiv">
|
||||||
<div class="q-pa-sm row items-start q-gutter-sm">
|
<div class="q-pa-sm row items-start q-gutter-sm full-height fulldiv">
|
||||||
<q-card class="my-card" bordered>
|
<q-card class="my-card fulldiv" bordered>
|
||||||
<q-img
|
<CGalleryImages
|
||||||
v-if="myrec.photos.length > 0"
|
v-if="myrec.photos.length > 0"
|
||||||
:src="myrec.photos[0].imagefile"
|
:imgGallery="myrec.photos"
|
||||||
class="imgautosize"
|
:directory="'upload/' + tools.getDirectoryGall(myrec, table, '')"
|
||||||
:alt="myrec.descr">
|
>
|
||||||
</q-img>
|
</CGalleryImages>
|
||||||
|
|
||||||
<q-card-actions align="right">
|
<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="">
|
<div class="">
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
:color="userStore.isFavorite(myrec._id, table) ? 'red' : ''"
|
color="red"
|
||||||
icon="favorite"
|
:icon="userStore.isFavorite(myrec._id, table) ? 'favorite' : 'far fa-heart'"
|
||||||
@click="clicca(costanti.TIPOFAVBOOK.FAVORITE, true)"
|
@click="clicca(costanti.TIPOFAVBOOK.FAVORITE, true, '')"
|
||||||
>
|
>
|
||||||
<q-badge
|
<q-badge
|
||||||
v-if="myrec.myfav"
|
v-if="myrec.myfav"
|
||||||
@@ -41,9 +31,9 @@
|
|||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
:color="userStore.isBookmarked(myrec._id, table) ? 'teal' : ''"
|
color="teal"
|
||||||
icon="bookmark"
|
:icon="userStore.isBookmarked(myrec._id, table) ? 'bookmark' : 'far fa-bookmark'"
|
||||||
@click="clicca(costanti.TIPOFAVBOOK.BOOKMARK, true)"
|
@click="clicca(costanti.TIPOFAVBOOK.BOOKMARK, true, '')"
|
||||||
>
|
>
|
||||||
<q-badge
|
<q-badge
|
||||||
v-if="myrec.mybook"
|
v-if="myrec.mybook"
|
||||||
@@ -66,7 +56,19 @@
|
|||||||
<div>
|
<div>
|
||||||
<q-btn flat round icon="fas fa-ellipsis-h">
|
<q-btn flat round icon="fas fa-ellipsis-h">
|
||||||
<q-menu>
|
<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
|
<q-item
|
||||||
v-if="!nopopup"
|
v-if="!nopopup"
|
||||||
clickable
|
clickable
|
||||||
@@ -88,7 +90,7 @@
|
|||||||
clicca(
|
clicca(
|
||||||
costanti.TIPOFAVBOOK.FAVORITE,
|
costanti.TIPOFAVBOOK.FAVORITE,
|
||||||
false,
|
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-icon color="red" name="favorite" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
{{ $t('cmd.favorite') }}
|
{{ $t('cmd.favorite', {num: myrec.myfav ? myrec.myfav.length : 0}) }}
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
@@ -106,7 +108,7 @@
|
|||||||
clicca(
|
clicca(
|
||||||
costanti.TIPOFAVBOOK.BOOKMARK,
|
costanti.TIPOFAVBOOK.BOOKMARK,
|
||||||
false,
|
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-icon color="teal" name="bookmark" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
{{ $t('cmd.bookmark') }}
|
{{ $t('cmd.bookmark', {num: myrec.mybook ? myrec.mybook.length : 0}) }}
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
>>>>>>> parent of 701e1f1 (Aggiornamento a 0.6.1)
|
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
@@ -141,6 +142,12 @@
|
|||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
|
||||||
<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">{{
|
<q-item-label class="text-bold text-h7">{{
|
||||||
myrec.descr
|
myrec.descr
|
||||||
}}</q-item-label>
|
}}</q-item-label>
|
||||||
@@ -178,30 +185,88 @@
|
|||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-item-label>
|
<q-item-label>
|
||||||
<q-chip
|
<q-chip
|
||||||
v-if="myrec.sector && myrec.sector[0].descr"
|
v-if="getSectorByRec(myrec) && getSectorByRec(myrec)[0].descr"
|
||||||
class="glossy"
|
class="glossy"
|
||||||
color="blue"
|
color="blue"
|
||||||
text-color="white"
|
text-color="white"
|
||||||
dense
|
dense
|
||||||
>
|
>
|
||||||
<span class="cal__quota-content">{{
|
<span class="cal__quota-content">{{
|
||||||
myrec.sector[0].descr
|
getSectorByRec(myrec)[0].descr
|
||||||
}}</span>
|
}}</span>
|
||||||
</q-chip>
|
</q-chip>
|
||||||
<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"
|
class="glossy"
|
||||||
dense
|
dense
|
||||||
color="blue"
|
color="blue"
|
||||||
text-color="white"
|
text-color="white"
|
||||||
>
|
>
|
||||||
<span class="cal__quota-content">{{
|
<span class="cal__quota-content">{{
|
||||||
myrec.recSkill[0].descr
|
getRecGoodSkillByRec(myrec)[0].descr
|
||||||
}}</span>
|
}}</span>
|
||||||
</q-chip>
|
</q-chip>
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</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"
|
<q-item-label v-if="myrec.note"
|
||||||
><div v-html="myrec.note" class="clBorderService"></div
|
><div v-html="myrec.note" class="clBorderService"></div
|
||||||
></q-item-label>
|
></q-item-label>
|
||||||
@@ -237,7 +302,26 @@
|
|||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
|
||||||
<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-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item v-if="myrec.idContribType && myrec.idContribType.length > 0">
|
<q-item v-if="myrec.idContribType && myrec.idContribType.length > 0">
|
||||||
@@ -290,7 +374,11 @@
|
|||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
<q-separator />
|
<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
|
<q-btn
|
||||||
v-if="myrec.profile.username_telegram"
|
v-if="myrec.profile.username_telegram"
|
||||||
:label="$t('dialog.contact')"
|
:label="$t('dialog.contact')"
|
||||||
@@ -300,9 +388,14 @@
|
|||||||
:type="tools.isUserOk() ? 'a' : 'btn'"
|
:type="tools.isUserOk() ? 'a' : 'btn'"
|
||||||
size="md"
|
size="md"
|
||||||
rounded
|
rounded
|
||||||
:href="tools.isUserOk() ? tools.getHttpForTelegram(myrec.profile.username_telegram) : null"
|
:href="
|
||||||
|
tools.isUserOk()
|
||||||
|
? tools.getHttpForTelegram(myrec.profile.username_telegram)
|
||||||
|
: null
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="!nopopup"
|
||||||
rounded
|
rounded
|
||||||
outline
|
outline
|
||||||
:label="$t('dialog.close')"
|
:label="$t('dialog.close')"
|
||||||
@@ -312,10 +405,8 @@
|
|||||||
/>
|
/>
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
<div
|
<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"
|
class="row absolute-bottom text-shadow custom-caption q-px-md buttons_bottom"
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
@@ -343,170 +434,29 @@
|
|||||||
v-close-popup
|
v-close-popup
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
>>>>>>> parent of 701e1f1 (Aggiornamento a 0.6.1)
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<q-dialog v-model="usersList.show">
|
||||||
<q-card class="dialog_card q-mb-lg" v-if="myrec._id && false">
|
<q-card class="dialog_card">
|
||||||
<q-footer
|
<q-toolbar class="bg-primary text-white">
|
||||||
v-if="!nopopup"
|
<q-toolbar-title>
|
||||||
:class="
|
{{ usersList.title }}
|
||||||
($q.dark.isActive ? `bg-black` : `bg-white`) +
|
</q-toolbar-title>
|
||||||
` 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-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||||
</q-bar>
|
</q-toolbar>
|
||||||
|
|
||||||
<q-card-section class="inset-shadow">
|
<q-card-section class="inset-shadow">
|
||||||
<!-- Per ora visualizzo solo la Prima Immagine -->
|
<div v-for="(rec, i) in usersList.list" :key="i">
|
||||||
<div class="text-center">
|
<CMyUser
|
||||||
<q-img
|
:mycontact="rec"
|
||||||
v-if="tools.getValue(myrec, 'photos', '')"
|
:visu="costanti.FIND_PEOPLE"
|
||||||
:src="
|
@setCmd="tools.setCmd"
|
||||||
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">
|
</CMyUser>
|
||||||
<div
|
|
||||||
class="note-bacheca"
|
|
||||||
v-html="tools.getValue(myrec, mycol.field, mycol.subfield)"
|
|
||||||
></div>
|
|
||||||
</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"
|
|
||||||
>
|
|
||||||
<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>
|
|
||||||
</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-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
</q-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" src="./CMyCardService.ts">
|
<script lang="ts" src="./CMyCardService.ts">
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ export const costanti = {
|
|||||||
CERCO: 2,
|
CERCO: 2,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
TIPOFAVBOOK: {
|
||||||
|
FAVORITE: 1,
|
||||||
|
BOOKMARK: 2,
|
||||||
|
},
|
||||||
|
|
||||||
ENABLE_FRIENDS: false,
|
ENABLE_FRIENDS: false,
|
||||||
ENABLE_CONTI_COLLETTIVI: true,
|
ENABLE_CONTI_COLLETTIVI: true,
|
||||||
|
|
||||||
@@ -105,6 +110,7 @@ export const costanti = {
|
|||||||
table: 'mygoods',
|
table: 'mygoods',
|
||||||
visuonstat: true,
|
visuonstat: true,
|
||||||
small: false,
|
small: false,
|
||||||
|
showfavorite: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
@@ -118,6 +124,7 @@ export const costanti = {
|
|||||||
table: 'myskills',
|
table: 'myskills',
|
||||||
visuonstat: true,
|
visuonstat: true,
|
||||||
small: false,
|
small: false,
|
||||||
|
showfavorite: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
@@ -133,6 +140,7 @@ export const costanti = {
|
|||||||
small: false,
|
small: false,
|
||||||
table: 'myhosps',
|
table: 'myhosps',
|
||||||
visuonstat: true,
|
visuonstat: true,
|
||||||
|
showfavorite: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -186,6 +194,7 @@ export const costanti = {
|
|||||||
table: 'mybachecas',
|
table: 'mybachecas',
|
||||||
visuonstat: true,
|
visuonstat: true,
|
||||||
small: false,
|
small: false,
|
||||||
|
showfavorite: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: false,
|
visible: false,
|
||||||
|
|||||||
@@ -6946,6 +6946,7 @@ export const tools = {
|
|||||||
idCity: this.getCitySel(),
|
idCity: this.getCitySel(),
|
||||||
pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
|
pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
|
||||||
photos: [],
|
photos: [],
|
||||||
|
accomodation: [],
|
||||||
descr: '',
|
descr: '',
|
||||||
note: '',
|
note: '',
|
||||||
website: '',
|
website: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user