Aggiungere i propri annunci sul Profilo
This commit is contained in:
@@ -110,6 +110,8 @@ export const shared_consts = {
|
|||||||
TABLES_PERM_CHANGE_FOR_USERS: ['myskills', 'mybachecas', 'mygoods'],
|
TABLES_PERM_CHANGE_FOR_USERS: ['myskills', 'mybachecas', 'mygoods'],
|
||||||
TABLES_VISU_LISTA_USER: ['myskills', 'mybachecas', 'mygoods', 'users'],
|
TABLES_VISU_LISTA_USER: ['myskills', 'mybachecas', 'mygoods', 'users'],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TABLES_VISU_IMG: ['myskills', 'mybachecas', 'mygoods', 'mygroups'],
|
TABLES_VISU_IMG: ['myskills', 'mybachecas', 'mygoods', 'mygroups'],
|
||||||
TABLES_DIRECTORY_A_PARTE: ['mygroups'],
|
TABLES_DIRECTORY_A_PARTE: ['mygroups'],
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
:defaultnewrec="getdefaultnewrec"
|
:defaultnewrec="getdefaultnewrec"
|
||||||
:filtercustom="filtercustom"
|
:filtercustom="filtercustom"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
:extraparams="extraparams()">
|
:extraparams="extraparams">
|
||||||
|
|
||||||
</CGridTableRec>
|
</CGridTableRec>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export const costanti = {
|
|||||||
icon: 'fas fa-tshirt',
|
icon: 'fas fa-tshirt',
|
||||||
color: 'indigo',
|
color: 'indigo',
|
||||||
hint: '',
|
hint: '',
|
||||||
|
table: 'mygoods',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Servizi',
|
title: 'Servizi',
|
||||||
@@ -26,6 +27,7 @@ export const costanti = {
|
|||||||
icon: 'fas fa-house-user',
|
icon: 'fas fa-house-user',
|
||||||
color: 'red',
|
color: 'red',
|
||||||
hint: '',
|
hint: '',
|
||||||
|
table: 'myskills',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Mobilità',
|
title: 'Mobilità',
|
||||||
@@ -51,6 +53,7 @@ export const costanti = {
|
|||||||
color: 'green',
|
color: 'green',
|
||||||
hint: 'eventi, last minute, offerte di lavoro',
|
hint: 'eventi, last minute, offerte di lavoro',
|
||||||
disable: false,
|
disable: false,
|
||||||
|
table: 'mybachecas',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Luoghi',
|
title: 'Luoghi',
|
||||||
|
|||||||
@@ -44,6 +44,13 @@ export default defineComponent({
|
|||||||
|
|
||||||
const myuser = ref(<IUserFields>{})
|
const myuser = ref(<IUserFields>{})
|
||||||
|
|
||||||
|
const actualcard = ref('mygoods')
|
||||||
|
|
||||||
|
const mycards = computed(() => {
|
||||||
|
return costanti.MAINCARDS.filter((rec: any) => rec.table)
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
function profile() {
|
function profile() {
|
||||||
return userStore.my.profile
|
return userStore.my.profile
|
||||||
}
|
}
|
||||||
@@ -124,6 +131,8 @@ export default defineComponent({
|
|||||||
isMyRecord,
|
isMyRecord,
|
||||||
getRefLink,
|
getRefLink,
|
||||||
fieldsTable,
|
fieldsTable,
|
||||||
|
mycards,
|
||||||
|
actualcard,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -153,27 +153,30 @@
|
|||||||
</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">
|
||||||
|
|
||||||
<q-tabs v-model="tabgrp" class="text-blue">
|
<q-tabs v-model="actualcard" class="text-blue">
|
||||||
<q-tab label="Beni" name="goods" icon="fas fa-info"></q-tab>
|
<q-tab v-for="(card, ind) of mycards" :key="ind" :name="card.table" :label="card.title">
|
||||||
|
|
||||||
|
</q-tab>
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
<CSkill
|
|
||||||
:table="table"
|
|
||||||
:visuinpage="false"
|
|
||||||
:filtercustom="filtroutente"
|
|
||||||
:butt_modif_new="isMyRecord(myuser.username)"
|
|
||||||
|
|
||||||
>
|
<q-tab-panels v-model="actualcard" animated>
|
||||||
|
<q-tab-panel v-for="(card, ind) of mycards" :key="ind" :name="card.table">
|
||||||
</CSkill>
|
|
||||||
|
|
||||||
|
<CSkill
|
||||||
|
:table="card.table"
|
||||||
|
:filtercustom="filtroutente"
|
||||||
|
:butt_modif_new="isMyRecord(myuser.username)"
|
||||||
|
/>
|
||||||
|
</q-tab-panel>
|
||||||
|
</q-tab-panels>
|
||||||
|
|
||||||
</CTitleBanner>
|
</CTitleBanner>
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
<div v-if="myuser._id && (userStore.IsMyFriendByUsername(myuser.username) || isMyRecord(myuser.username))">
|
<div v-if="myuser._id && (userStore.IsMyFriendByUsername(myuser.username) || isMyRecord(myuser.username))">
|
||||||
|
|||||||
Reference in New Issue
Block a user