Nuova Grafica , Nuovi settori e categorie, Beni e Servizi.
Nella Nazionalità non c'è Repubblica di San Marino Aggiungere Bottone di "Chiudi" nella visualizzazione della Card cerca persona, mettere solo una parte della parola da cercare... Gruppi sistemare il bottone di Nuovo e controllare altro.. adTypeBacheca per la tabella mybachecas (Evento, Offro, Cerco) Semplificare le CATEGORIE ?! o togliere la Specializzazione? (con Giovanna)
This commit is contained in:
@@ -12,6 +12,84 @@ export const costanti = {
|
||||
SHOW_GROUPINFO: 5,
|
||||
SHOW_MYCARD: 10,
|
||||
|
||||
MAINCARDS: [
|
||||
{
|
||||
title: ' Beni ',
|
||||
to: '/goods',
|
||||
icon: 'fas fa-tshirt',
|
||||
color: 'indigo',
|
||||
hint: '',
|
||||
},
|
||||
{
|
||||
title: 'Servizi',
|
||||
to: '/services',
|
||||
icon: 'fas fa-house-user',
|
||||
color: 'red',
|
||||
hint: '',
|
||||
},
|
||||
{
|
||||
title: 'Luoghi',
|
||||
to: '/places',
|
||||
icon: 'fas fa-map-marker-alt',
|
||||
color: 'blue',
|
||||
hint: '',
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
title: 'Mobilità',
|
||||
to: '/places',
|
||||
icon: 'fas fa-taxi',
|
||||
color: 'yellow-5',
|
||||
textcolor: 'grey-10',
|
||||
hint: '',
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
title: 'Scuola',
|
||||
to: '/school',
|
||||
icon: 'fas fa-book-open',
|
||||
color: 'orange',
|
||||
hint: '',
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
title: 'Alimenti',
|
||||
to: '/foods',
|
||||
icon: 'fas fa-utensils',
|
||||
color: 'green-5',
|
||||
hint: '',
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
title: 'Tue_Idee',
|
||||
to: '/ideas',
|
||||
icon: 'fas fa-lightbulb',
|
||||
color: 'red-5',
|
||||
textcolor: '',
|
||||
hint: '',
|
||||
disable: true,
|
||||
small: true,
|
||||
},
|
||||
{
|
||||
title: 'Aiuto',
|
||||
to: '/bacheca',
|
||||
icon: 'event',
|
||||
color: 'pink-5',
|
||||
hint: 'eventi, last minute, offerte di lavoro',
|
||||
disable: true,
|
||||
small: true,
|
||||
},
|
||||
{
|
||||
title: 'Socializza',
|
||||
to: '/socialising',
|
||||
icon: 'fas fa-users',
|
||||
color: 'purple-5',
|
||||
hint: '',
|
||||
disable: true,
|
||||
small: true,
|
||||
},
|
||||
],
|
||||
|
||||
BINARY_CHECK: 1,
|
||||
|
||||
RISERVATO_PASSWORD: 1,
|
||||
|
||||
@@ -4,6 +4,7 @@ import { lists } from './lists'
|
||||
import { costanti } from './costanti'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { static_data } from '@/db/static_data'
|
||||
|
||||
const DeleteRec = {
|
||||
name: 'deleterec',
|
||||
@@ -351,6 +352,24 @@ export const colSectors = [
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
|
||||
export const colSectorGoods = [
|
||||
AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'descr', label_trans: 'store.description' }),
|
||||
AddCol({
|
||||
name: 'idSectorGood',
|
||||
label_trans: 'sectors.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
jointable: 'sectorgoods',
|
||||
}),
|
||||
AddCol({ name: 'main', label_trans: 'store.main', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'color', label_trans: 'products.color' }),
|
||||
AddCol({ name: 'theme', label_trans: 'products.theme' }),
|
||||
AddCol({ name: 'img', label_trans: 'store.img' }),
|
||||
AddCol({ name: 'icon', label_trans: 'store.icon' }),
|
||||
AddCol(DeleteRec),
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
|
||||
export const colCatGrps = [
|
||||
AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'descr', label_trans: 'store.description' }),
|
||||
@@ -444,7 +463,24 @@ export const colSkills = [
|
||||
AddCol(DuplicateRec),
|
||||
AddCol(DeleteRec),
|
||||
]
|
||||
export const colGoods = [
|
||||
// AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'descr', label_trans: 'store.description' }),
|
||||
AddCol({ name: 'img', label_trans: 'store.img' }),
|
||||
AddCol({ name: 'icon', label_trans: 'store.icon' }),
|
||||
AddCol({
|
||||
name: 'idSectorGood',
|
||||
label_trans: 'sectors.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'sectorgoods',
|
||||
}),
|
||||
AddCol({ name: 'color', label_trans: 'products.color' }),
|
||||
AddCol({ name: 'theme', label_trans: 'products.theme' }),
|
||||
AddCol(DuplicateRec),
|
||||
AddCol(DeleteRec),
|
||||
]
|
||||
|
||||
/*
|
||||
export const colSubSkills = [
|
||||
// AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'descr', label_trans: 'store.description' }),
|
||||
@@ -462,6 +498,8 @@ export const colSubSkills = [
|
||||
AddCol(DeleteRec),
|
||||
]
|
||||
|
||||
*/
|
||||
|
||||
export const colmyUserPeople = [
|
||||
// AddCol({ name: '_id', label_trans: 'reg.id' }),
|
||||
AddCol({ name: 'username', label_trans: 'reg.username_short' }),
|
||||
@@ -493,7 +531,13 @@ export const colmyUserGroup = [
|
||||
icon: 'category',
|
||||
noshowlabel: true,
|
||||
}),
|
||||
AddCol({ name: 'descr', label_trans: 'proj.longdescr', required: true, noshowlabel: true, }),
|
||||
AddCol(
|
||||
{
|
||||
name: 'descr', label_trans: 'proj.longdescr', required: true,
|
||||
noshowlabel: true,
|
||||
maxlength: 40
|
||||
}
|
||||
),
|
||||
AddCol({
|
||||
name: 'visibility',
|
||||
label_trans: 'bot.visibility',
|
||||
@@ -546,7 +590,155 @@ export const colmyUserGroup = [
|
||||
]
|
||||
|
||||
|
||||
export const colmyGoods = [
|
||||
AddCol({
|
||||
name: 'username',
|
||||
label_trans: 'reg.username',
|
||||
foredit: false,
|
||||
tipovisu: costanti.TipoVisu.LINK,
|
||||
fieldtype: costanti.FieldType.username_chip,
|
||||
link: '/my/username',
|
||||
noshowlabel: true,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idCity',
|
||||
label_trans: 'skill.city',
|
||||
fieldtype: costanti.FieldType.multiselect_by_server,
|
||||
jointable: 'cities',
|
||||
tablesel: 'cities',
|
||||
noshowlabel: true,
|
||||
icon: 'fas fa-map-marker-alt',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
remote_table: 'mycities',
|
||||
remote_key: '_id',
|
||||
remote_field: 'comune',
|
||||
}),
|
||||
AddCol({
|
||||
name: 'adTypeGood',
|
||||
label_trans: 'adTypes.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
jointable: 'adtypegoods',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit,
|
||||
icon: 'fas fa-bullhorn',
|
||||
noshowlabel: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'descr',
|
||||
label_trans: 'proj.shortdescr',
|
||||
fieldtype: costanti.FieldType.string,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
maxlength: 200,
|
||||
required: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idSectorGood',
|
||||
label_trans: 'sectors.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
jointable: 'sectorgoods',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit,
|
||||
visible: true,
|
||||
icon: 'category',
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idGood',
|
||||
label_trans: 'skill.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
jointable: 'goods',
|
||||
filter_table: 'sectorgoods',
|
||||
filter_field: 'idSectorGood',
|
||||
noshowlabel: true,
|
||||
icon: 'engineering',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
allowNewValue: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idShipping',
|
||||
label_trans: 'shipping.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'shippings',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'fas fa-shipping-fast',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
// isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idContribType',
|
||||
label_trans: 'contribtype.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'contribtypes',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'fas fa-hand-holding',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
// isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: '',
|
||||
fieldtype: costanti.FieldType.separator,
|
||||
required: false,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit,
|
||||
visible: false,
|
||||
}),
|
||||
/*AddCol({
|
||||
name: 'idSubSkill',
|
||||
label_trans: 'skill.subskill',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
required: false,
|
||||
jointable: 'subskills',
|
||||
filter_table: 'skills',
|
||||
filter_field: 'idSkill',
|
||||
noshowlabel: true,
|
||||
icon: 'far fa-id-card',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
allowNewValue: true,
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
|
||||
*/
|
||||
|
||||
AddCol({
|
||||
name: 'photos',
|
||||
label_trans: 'skill.photos',
|
||||
fieldtype: costanti.FieldType.listimages,
|
||||
jointable: '',
|
||||
showpicprofile_ifnotset: true,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'note', label_trans: 'proj.longdescr', fieldtype: costanti.FieldType.html,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
titlepopupedit: 'Dettagli', field_extra1: 'username', subfield_extra1: '',
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
//**ADDFIELD_MYSKILL
|
||||
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
|
||||
}),
|
||||
AddCol(DuplicateRec),
|
||||
AddCol(ModifRec),
|
||||
AddCol(DeleteRec),
|
||||
]
|
||||
|
||||
export const colmySkills = [
|
||||
AddCol({
|
||||
name: 'idStatusSkill',
|
||||
label_trans: 'statusSkill.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'statusSkills',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'mood',
|
||||
required: true,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'username',
|
||||
label_trans: 'reg.username',
|
||||
@@ -586,7 +778,8 @@ export const colmySkills = [
|
||||
fieldtype: costanti.FieldType.string,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
maxlength: 200
|
||||
maxlength: 200,
|
||||
required: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idSector',
|
||||
@@ -602,7 +795,6 @@ export const colmySkills = [
|
||||
name: 'idSkill',
|
||||
label_trans: 'skill.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
jointable: 'skills',
|
||||
filter_table: 'sectors',
|
||||
filter_field: 'idSector',
|
||||
@@ -610,6 +802,18 @@ export const colmySkills = [
|
||||
icon: 'engineering',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
allowNewValue: true,
|
||||
required: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idContribType',
|
||||
label_trans: 'contribtype.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'contribtypes',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'fas fa-hand-holding',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
// isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: '',
|
||||
@@ -618,7 +822,7 @@ export const colmySkills = [
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit,
|
||||
visible: false,
|
||||
}),
|
||||
AddCol({
|
||||
/*AddCol({
|
||||
name: 'idSubSkill',
|
||||
label_trans: 'skill.subskill',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
@@ -633,6 +837,8 @@ export const colmySkills = [
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
|
||||
*/
|
||||
|
||||
AddCol({
|
||||
name: 'numLevel',
|
||||
label_trans: 'level.name',
|
||||
@@ -644,27 +850,6 @@ export const colmySkills = [
|
||||
icon: 'grading',
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idStatusSkill',
|
||||
label_trans: 'statusSkill.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'statusSkills',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'mood',
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idContribType',
|
||||
label_trans: 'contribtype.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'contribtypes',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'currency_exchange',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'photos',
|
||||
label_trans: 'skill.photos',
|
||||
@@ -681,14 +866,27 @@ export const colmySkills = [
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
//**ADDFIELD_MYSKILL
|
||||
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 }),
|
||||
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
|
||||
}),
|
||||
AddCol(DuplicateRec),
|
||||
AddCol(ModifRec),
|
||||
AddCol(DeleteRec),
|
||||
]
|
||||
|
||||
export const colmyBachecas = [
|
||||
AddCol({
|
||||
name: 'idStatusSkill',
|
||||
label_trans: 'statusSkill.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'statusSkills',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'mood',
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'username',
|
||||
label_trans: 'reg.username',
|
||||
@@ -728,7 +926,8 @@ export const colmyBachecas = [
|
||||
fieldtype: costanti.FieldType.string,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
maxlength: 200
|
||||
maxlength: 200,
|
||||
required: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idSector',
|
||||
@@ -744,7 +943,6 @@ export const colmyBachecas = [
|
||||
name: 'idSkill',
|
||||
label_trans: 'skill.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
jointable: 'skills',
|
||||
filter_table: 'sectors',
|
||||
filter_field: 'idSector',
|
||||
@@ -752,6 +950,7 @@ export const colmyBachecas = [
|
||||
icon: 'engineering',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
allowNewValue: true,
|
||||
required: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: '',
|
||||
@@ -786,16 +985,6 @@ export const colmyBachecas = [
|
||||
icon: 'grading',
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idStatusSkill',
|
||||
label_trans: 'statusSkill.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'statusSkills',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'mood',
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idContribType',
|
||||
label_trans: 'contribtype.name',
|
||||
@@ -803,7 +992,7 @@ export const colmyBachecas = [
|
||||
jointable: 'contribtypes',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'currency_exchange',
|
||||
icon: 'fas fa-hand-holding',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
@@ -823,8 +1012,10 @@ export const colmyBachecas = [
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
//**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 }),
|
||||
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
|
||||
}),
|
||||
AddCol(DuplicateRec),
|
||||
AddCol(ModifRec),
|
||||
AddCol(DeleteRec),
|
||||
@@ -835,6 +1026,7 @@ export const colStatusSkills = [
|
||||
AddCol({ name: 'descr', label_trans: 'store.description' }),
|
||||
AddCol({ name: 'color', label_trans: 'products.color' }),
|
||||
AddCol({ name: 'theme', label_trans: 'products.theme' }),
|
||||
AddCol({ name: 'icon', label_trans: 'pages.icon' }),
|
||||
AddCol(DeleteRec),
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
@@ -1239,6 +1431,19 @@ export const fields = {
|
||||
}
|
||||
|
||||
export const fieldsTable = {
|
||||
userlist() {
|
||||
|
||||
if (static_data.functionality.ENABLE_REG_AYNI) {
|
||||
return fieldsTable.colTableUsers
|
||||
} else if (static_data.functionality.ENABLE_REG_CNM) {
|
||||
return fieldsTable.colTableUsersCNM
|
||||
} else if (static_data.functionality.ENABLE_REG_ISP) {
|
||||
return fieldsTable.colTableUsersISP
|
||||
} else {
|
||||
return fieldsTable.colTableUsersBase
|
||||
}
|
||||
},
|
||||
|
||||
getrecTableList(mytable: string) {
|
||||
return this.tablesList.find((rec) => rec.value === mytable)
|
||||
},
|
||||
@@ -1771,7 +1976,10 @@ export const fieldsTable = {
|
||||
name: 'profile.nationality', field: 'profile', subfield: 'nationality', label_trans: 'reg.nationality',
|
||||
}),
|
||||
AddCol({ name: 'profile.dateofbirth', label_trans: 'reg.dateofbirth', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({ name: 'profile.born_city', label_trans: 'reg.born_city', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({
|
||||
name: 'born_city_id', label_trans: 'reg.born_city', fieldtype: costanti.FieldType.select,
|
||||
jointable: 'cities',
|
||||
}),
|
||||
AddCol({ name: 'profile.born_province', label_trans: 'reg.born_province', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'profile.born_country', label_trans: 'reg.born_country', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({
|
||||
@@ -1941,6 +2149,7 @@ export const fieldsTable = {
|
||||
|
||||
tableForUsers: [
|
||||
'myskills',
|
||||
'mygoods',
|
||||
'mybachecas',
|
||||
],
|
||||
|
||||
@@ -1952,6 +2161,7 @@ export const fieldsTable = {
|
||||
|
||||
tableWithUsername: [
|
||||
'myskills',
|
||||
'mygoods',
|
||||
'mybachecas',
|
||||
],
|
||||
|
||||
@@ -2215,6 +2425,13 @@ export const fieldsTable = {
|
||||
colkey: '_id',
|
||||
collabel: (rec: any) => `${rec.descr}`,
|
||||
},
|
||||
{
|
||||
value: toolsext.TABMYGOODS,
|
||||
label: 'Beni',
|
||||
columns: colmyGoods,
|
||||
colkey: '_id',
|
||||
collabel: (rec: any) => `${rec.descr}`,
|
||||
},
|
||||
{
|
||||
value: 'skills',
|
||||
label: 'Competenze',
|
||||
@@ -2223,15 +2440,24 @@ export const fieldsTable = {
|
||||
collabel: 'descr',
|
||||
},
|
||||
{
|
||||
value: 'goods',
|
||||
label: 'Beni',
|
||||
columns: colGoods,
|
||||
colkey: '_id',
|
||||
collabel: 'descr',
|
||||
},
|
||||
/*{
|
||||
value: 'subskills',
|
||||
label: 'Specializzazione',
|
||||
columns: colSubSkills,
|
||||
colkey: '_id',
|
||||
collabel: 'descr',
|
||||
},
|
||||
|
||||
*/
|
||||
{
|
||||
value: 'statusSkills',
|
||||
label: 'Stato Attuale',
|
||||
label: 'Di Persona / OnLine',
|
||||
columns: colStatusSkills,
|
||||
colkey: '_id',
|
||||
collabel: 'descr',
|
||||
@@ -2243,6 +2469,13 @@ export const fieldsTable = {
|
||||
colkey: '_id',
|
||||
collabel: 'descr',
|
||||
},
|
||||
{
|
||||
value: 'sectorgoods',
|
||||
label: 'Settori Beni',
|
||||
columns: colSectorGoods,
|
||||
colkey: '_id',
|
||||
collabel: 'descr',
|
||||
},
|
||||
{
|
||||
value: 'catgrps',
|
||||
label: 'Categorie',
|
||||
@@ -2264,6 +2497,13 @@ export const fieldsTable = {
|
||||
colkey: '_id',
|
||||
collabel: 'descr',
|
||||
},
|
||||
{
|
||||
value: 'adtypegoods',
|
||||
label: 'Offro / Cerco',
|
||||
columns: colAdType,
|
||||
colkey: '_id',
|
||||
collabel: 'descr',
|
||||
},
|
||||
{
|
||||
value: 'cities',
|
||||
label: 'Comune',
|
||||
@@ -2314,10 +2554,17 @@ export const fieldsTable = {
|
||||
{
|
||||
value: 'mygroups',
|
||||
label: 'Gruppi',
|
||||
columns: colTableMyGroup,
|
||||
columns: colmyUserGroup,
|
||||
colkey: 'groupname',
|
||||
collabel: 'groupname',
|
||||
},
|
||||
{
|
||||
value: 'shippings',
|
||||
label: 'Spedizione',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
ITodo,
|
||||
IUserFields,
|
||||
Privacy,
|
||||
TipoVisu, IGroup, IMySkill, IMyBacheca,
|
||||
TipoVisu, IGroup, IMySkill, IMyBacheca, IImgGallery,
|
||||
} from '@model'
|
||||
|
||||
import { lists } from '@store/Modules/lists'
|
||||
@@ -1751,7 +1751,6 @@ export const tools = {
|
||||
// console.log('param1', par.param1)
|
||||
globalStore.DeleteRec({ table, id: par.param1 }).then((ris) => {
|
||||
if (ris) {
|
||||
debugger
|
||||
mythis.ActionAfterYes(func, par.param2, null)
|
||||
this.showPositiveNotif(mythisq, t('db.deletedrecord'))
|
||||
} else {
|
||||
@@ -4928,7 +4927,7 @@ export const tools = {
|
||||
_id: 0,
|
||||
idSector: 0,
|
||||
idSkill: 0,
|
||||
idSubSkill: [],
|
||||
// idSubSkill: [],
|
||||
idStatusSkill: [],
|
||||
idContribType: [],
|
||||
idCity: [],
|
||||
@@ -4942,6 +4941,38 @@ export const tools = {
|
||||
}
|
||||
},
|
||||
|
||||
getdefaultnewrec_MyGoods(): any {
|
||||
return {
|
||||
_id: 0,
|
||||
idSectorGood: 0,
|
||||
idGood: 0,
|
||||
idShipping: [],
|
||||
idStatusSkill: [],
|
||||
idContribType: [],
|
||||
idCity: [],
|
||||
NumLevel: 0,
|
||||
adType: 0,
|
||||
photos: [],
|
||||
note: '',
|
||||
//**ADDFIELD_MYSKILL
|
||||
website: '',
|
||||
descr: '',
|
||||
}
|
||||
},
|
||||
|
||||
getdefaultnewrec_MyGroup(): any {
|
||||
return {
|
||||
_id: 0,
|
||||
groupname: '',
|
||||
photos: [],
|
||||
visibility: 0,
|
||||
admins: [],
|
||||
req_users: [],
|
||||
blocked: false,
|
||||
website: '',
|
||||
link_telegram: '',
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
getdefaultnewrec_MyBacheca(): any {
|
||||
@@ -4949,7 +4980,7 @@ export const tools = {
|
||||
_id: 0,
|
||||
idSector: 0,
|
||||
idSkill: 0,
|
||||
idSubSkill: [],
|
||||
// idSubSkill: [],
|
||||
idStatusSkill: [],
|
||||
idContribType: [],
|
||||
idCity: [],
|
||||
|
||||
@@ -61,6 +61,7 @@ export const toolsext = {
|
||||
TABFRIENDS: 'friends',
|
||||
TABMYGROUPS: 'mygroups',
|
||||
TABMYSKILLS: 'myskills',
|
||||
TABMYGOODS: 'mygoods',
|
||||
TABMYBACHECAS: 'mybachecas',
|
||||
TABNAVI: 'navi',
|
||||
TABLISTAINGRESSO: 'listaingressos',
|
||||
|
||||
@@ -118,10 +118,13 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
URL_RESTORE: '',
|
||||
levels: [],
|
||||
adtypes: [],
|
||||
adtypegoods: [],
|
||||
skills: [],
|
||||
subSkills: [],
|
||||
goods: [],
|
||||
// subSkills: [],
|
||||
statusSkills: [],
|
||||
sectors: [],
|
||||
sectorgoods: [],
|
||||
catgrps: [],
|
||||
cities: [],
|
||||
}),
|
||||
@@ -235,14 +238,20 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return state.levels
|
||||
else if (table === 'adtypes')
|
||||
return state.adtypes
|
||||
else if (table === 'adtypegoods')
|
||||
return state.adtypegoods
|
||||
else if (table === 'skills')
|
||||
return state.skills
|
||||
else if (table === 'subskills')
|
||||
return state.subSkills
|
||||
else if (table === 'goods')
|
||||
return state.goods
|
||||
// else if (table === 'subskills')
|
||||
// return state.subSkills
|
||||
else if (table === 'statusSkills')
|
||||
return state.statusSkills
|
||||
else if (table === 'sectors')
|
||||
return state.sectors
|
||||
else if (table === 'sectorgoods')
|
||||
return state.sectorgoods
|
||||
else if (table === 'catgrps')
|
||||
return state.catgrps
|
||||
else {
|
||||
@@ -1240,12 +1249,15 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
this.departments = (res.data.departments) ? [...res.data.departments] : []
|
||||
this.levels = (res.data.levels) ? [...res.data.levels] : []
|
||||
this.skills = (res.data.skills) ? [...res.data.skills] : []
|
||||
this.subSkills = (res.data.subSkills) ? [...res.data.subSkills] : []
|
||||
this.goods = (res.data.goods) ? [...res.data.goods] : []
|
||||
// this.subSkills = (res.data.subSkills) ? [...res.data.subSkills] : []
|
||||
this.statusSkills = (res.data.statusSkills) ? [...res.data.statusSkills] : []
|
||||
this.sectors = (res.data.sectors) ? [...res.data.sectors] : []
|
||||
this.sectorgoods = (res.data.sectorgoods) ? [...res.data.sectorgoods] : []
|
||||
this.cities = (res.data.cities) ? [...res.data.cities] : []
|
||||
this.catgrps = (res.data.catgrps) ? [...res.data.catgrps] : []
|
||||
this.adtypes = (res.data.adtypes) ? [...res.data.adtypes] : []
|
||||
this.adtypegoods = (res.data.adtypegoods) ? [...res.data.adtypegoods] : []
|
||||
|
||||
// console.log('res.data.cart', res.data.cart)
|
||||
|
||||
@@ -1390,6 +1402,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
if (table === 'lang') return shared_consts.Lang
|
||||
if (table === 'regions') return shared_consts.Regions
|
||||
if (table === 'provinces') return shared_consts.Provinces
|
||||
if (table === 'shippings') return shared_consts.Shippings
|
||||
|
||||
let myarr = this.getListByTable(table)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user