From f4306b28d63cec87409a4050a082d7cd894bd8b4 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Mon, 28 Feb 2022 17:42:51 +0100 Subject: [PATCH] Aggiungere i propri annunci sul Profilo --- src/common/shared_vuejs.ts | 2 ++ src/components/CSkill/CSkill.vue | 2 +- src/store/Modules/costanti.ts | 3 +++ src/views/user/myprofile/myprofile.ts | 9 +++++++++ src/views/user/myprofile/myprofile.vue | 27 ++++++++++++++------------ 5 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index da55d0ff..48bade12 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -110,6 +110,8 @@ export const shared_consts = { TABLES_PERM_CHANGE_FOR_USERS: ['myskills', 'mybachecas', 'mygoods'], TABLES_VISU_LISTA_USER: ['myskills', 'mybachecas', 'mygoods', 'users'], + + TABLES_VISU_IMG: ['myskills', 'mybachecas', 'mygoods', 'mygroups'], TABLES_DIRECTORY_A_PARTE: ['mygroups'], diff --git a/src/components/CSkill/CSkill.vue b/src/components/CSkill/CSkill.vue index 69da6335..89df556d 100755 --- a/src/components/CSkill/CSkill.vue +++ b/src/components/CSkill/CSkill.vue @@ -19,7 +19,7 @@ :defaultnewrec="getdefaultnewrec" :filtercustom="filtercustom" v-bind="$attrs" - :extraparams="extraparams()"> + :extraparams="extraparams"> diff --git a/src/store/Modules/costanti.ts b/src/store/Modules/costanti.ts index 31601443..ae3d5bc4 100755 --- a/src/store/Modules/costanti.ts +++ b/src/store/Modules/costanti.ts @@ -19,6 +19,7 @@ export const costanti = { icon: 'fas fa-tshirt', color: 'indigo', hint: '', + table: 'mygoods', }, { title: 'Servizi', @@ -26,6 +27,7 @@ export const costanti = { icon: 'fas fa-house-user', color: 'red', hint: '', + table: 'myskills', }, { title: 'Mobilità', @@ -51,6 +53,7 @@ export const costanti = { color: 'green', hint: 'eventi, last minute, offerte di lavoro', disable: false, + table: 'mybachecas', }, { title: 'Luoghi', diff --git a/src/views/user/myprofile/myprofile.ts b/src/views/user/myprofile/myprofile.ts index 763e7f5d..8a1f655e 100755 --- a/src/views/user/myprofile/myprofile.ts +++ b/src/views/user/myprofile/myprofile.ts @@ -44,6 +44,13 @@ export default defineComponent({ const myuser = ref({}) + const actualcard = ref('mygoods') + + const mycards = computed(() => { + return costanti.MAINCARDS.filter((rec: any) => rec.table) + }) + + function profile() { return userStore.my.profile } @@ -124,6 +131,8 @@ export default defineComponent({ isMyRecord, getRefLink, fieldsTable, + mycards, + actualcard, } } }) diff --git a/src/views/user/myprofile/myprofile.vue b/src/views/user/myprofile/myprofile.vue index af59cd45..23372d85 100755 --- a/src/views/user/myprofile/myprofile.vue +++ b/src/views/user/myprofile/myprofile.vue @@ -153,27 +153,30 @@ - +