Home Page With Element ! (Modular)
Arcadei Project... Inscription
This commit is contained in:
@@ -123,6 +123,40 @@ export const colgallery = [
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
|
||||
export const colmyelems = [
|
||||
AddCol({ name: 'active', label_trans: 'myelems.active', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'title', label_trans: 'myelems.title' }),
|
||||
AddCol({ name: 'order', label_trans: 'myelems.order', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'type', label_trans: 'myelems.type', fieldtype: costanti.FieldType.select, jointable: 'elemtypes' }),
|
||||
AddCol({ name: 'container', label_trans: 'myelems.container' }),
|
||||
AddCol({ name: 'container2', label_trans: 'myelems.container2' }),
|
||||
AddCol({ name: 'container3', label_trans: 'myelems.container3' }),
|
||||
AddCol({ name: 'number', label_trans: 'myelems.number', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'imgback', label_trans: 'myelems.imgback' }),
|
||||
AddCol({ name: 'size', label_trans: 'myelems.size' }),
|
||||
AddCol({ name: 'ratio', label_trans: 'myelems.ratio' }),
|
||||
AddCol({ name: 'containerHtml', label_trans: 'myelems.containerHtml', fieldtype: costanti.FieldType.html }),
|
||||
AddCol({ name: 'height', label_trans: 'myelems.height', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'heightimg', label_trans: 'myelems.heightimg', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'widthimg', label_trans: 'pages.widthimg', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'link', label_trans: 'pages.link', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'width', label_trans: 'myelems.width', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'onlyif_logged', label_trans: 'myelems.onlyif_logged', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'color', label_trans: 'myelems.color' }),
|
||||
AddCol({ name: 'class', label_trans: 'myelems.class' }),
|
||||
AddCol({ name: 'styleadd', label_trans: 'myelems.styleadd' }),
|
||||
AddCol({
|
||||
name: 'list',
|
||||
label_trans: 'gallery.list',
|
||||
fieldtype: costanti.FieldType.listimages,
|
||||
jointable: '',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
isInModif: true,
|
||||
}),
|
||||
AddCol(DeleteRec),
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
|
||||
export const colmsg_templates = [
|
||||
AddCol({ name: 'title', label_trans: 'pages.title' }),
|
||||
AddCol({ name: 'typemsg', label_trans: 'TypeMsg', fieldtype: costanti.FieldType.number }),
|
||||
@@ -273,7 +307,7 @@ export const getcolorderscart = [
|
||||
AddCol({ name: 'created_at', label_trans: 'order.created_at', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({ name: 'status', label_trans: 'order.status' }),
|
||||
AddCol({ name: 'items', label_trans: 'order.items' }),
|
||||
AddCol({ name: 'userId', label_trans: 'order.users', fieldtype: costanti.FieldType.select, jointable: 'users', }),
|
||||
AddCol({ name: 'userId', label_trans: 'order.users', fieldtype: costanti.FieldType.select, jointable: 'users' }),
|
||||
AddCol({ name: 'note', label_trans: 'order.note' }),
|
||||
AddCol(DeleteRec),
|
||||
AddCol(DuplicateRec),
|
||||
@@ -795,7 +829,7 @@ export const colmyGoods = [
|
||||
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',
|
||||
// icon: 'fas fa-hands-helping',
|
||||
// isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
@@ -806,7 +840,7 @@ export const colmyGoods = [
|
||||
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',
|
||||
// icon: 'fas fa-hands-helping',
|
||||
// isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
@@ -817,7 +851,7 @@ export const colmyGoods = [
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'fas fa-filter',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
// icon: 'fas fa-hands-helping',
|
||||
// isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
@@ -860,7 +894,7 @@ export const colmyGoods = [
|
||||
|
||||
*/
|
||||
|
||||
//**ADDFIELD_MYSKILL
|
||||
// **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
|
||||
@@ -973,7 +1007,7 @@ export const colmySkills = [
|
||||
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',
|
||||
// icon: 'fas fa-hands-helping',
|
||||
// isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
@@ -1029,7 +1063,7 @@ export const colmySkills = [
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
//**ADDFIELD_MYSKILL
|
||||
// **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
|
||||
@@ -1097,7 +1131,7 @@ export const colmyHosp = [
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'fas fa-asterisk',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
// icon: 'fas fa-hands-helping',
|
||||
isadvanced_field: false,
|
||||
sortable: false,
|
||||
}),
|
||||
@@ -1133,7 +1167,7 @@ export const colmyHosp = [
|
||||
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',
|
||||
// icon: 'fas fa-hands-helping',
|
||||
isadvanced_field: false,
|
||||
sortable: false,
|
||||
}),
|
||||
@@ -1165,7 +1199,7 @@ export const colmyHosp = [
|
||||
isadvanced_field: true,
|
||||
sortable: false,
|
||||
}),
|
||||
//**ADDFIELD_MYBACHECAS
|
||||
// **ADDFIELD_MYBACHECAS
|
||||
AddCol({
|
||||
name: 'link_maplocation', label_trans: 'reg.link_maplocation', isadvanced_field: true, fieldtype: costanti.FieldType.link,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
@@ -1308,7 +1342,7 @@ export const colmyBachecas = [
|
||||
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',
|
||||
// icon: 'fas fa-hands-helping',
|
||||
isadvanced_field: false,
|
||||
sortable: false,
|
||||
}),
|
||||
@@ -1337,7 +1371,7 @@ export const colmyBachecas = [
|
||||
isadvanced_field: true,
|
||||
sortable: false,
|
||||
}),
|
||||
//**ADDFIELD_MYBACHECAS
|
||||
// **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,
|
||||
@@ -1459,6 +1493,54 @@ export const colTableIscrittiConacreis = [
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
|
||||
export const colTableIscrittiArcadei = [
|
||||
AddCol({ name: 'annoTesseramento', label_trans: 'reg.annoTesseramento', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'numTesseraInterna', label_trans: 'reg.numTesseraInterna', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({
|
||||
name: 'metodo_pagamento',
|
||||
label_trans: 'reg.metodo_pagamento',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
jointable: 'metodo_pagamento',
|
||||
}),
|
||||
AddCol({ name: 'ha_pagato', label_trans: 'reg.ha_pagato', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'name', label_trans: 'reg.name', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'surname', label_trans: 'reg.surname', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'dateofreg', label_trans: 'reg.dateofreg', fieldtype: costanti.FieldType.onlydate }),
|
||||
AddCol({ name: 'dateofapproved', label_trans: 'reg.dateofapproved', fieldtype: costanti.FieldType.onlydate }),
|
||||
AddCol({ name: 'email', label_trans: 'reg.email', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'email2', label_trans: 'reg.email2', fieldtype: costanti.FieldType.string }),
|
||||
// AddCol({ name: 'fiscalcode', label_trans: 'reg.fiscalcode', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'residency_address', label_trans: 'reg.residency_address', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'residency_city', label_trans: 'reg.residency_city', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'residency_province', label_trans: 'reg.residency_province', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'residency_country', label_trans: 'reg.residency_country', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'residency_zipcode', label_trans: 'reg.residency_zipcode', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'dateofbirth', label_trans: 'reg.dateofbirth', fieldtype: costanti.FieldType.onlydate }),
|
||||
AddCol({ name: 'born_city', label_trans: 'reg.born_city', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'born_province', label_trans: 'reg.born_province', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'born_country', label_trans: 'reg.born_country', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'cell_phone', label_trans: 'reg.cell_phone', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'cell_phone2', label_trans: 'reg.cell_phone2', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'doctype', label_trans: 'reg.doctype', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'documentnumber', label_trans: 'reg.documentnumber', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'quota_versata', label_trans: 'reg.quota_versata', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'categorie_interesse', label_trans: 'reg.categorie_interesse', fieldtype: costanti.FieldType.multiselect, jointable: 'cat_interesse_arcadei', }),
|
||||
AddCol({ name: 'altre_comunicazioni', label_trans: 'reg.altre_comunicazioni', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({
|
||||
name: 'come_ci_hai_conosciuto',
|
||||
label_trans: 'reg.come_ci_hai_conosciuto',
|
||||
fieldtype: costanti.FieldType.string,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'iscrizione_compilata',
|
||||
label_trans: 'reg.iscrizione_compilata',
|
||||
fieldtype: costanti.FieldType.boolean
|
||||
}),
|
||||
AddCol({ name: 'note', label_trans: 'reg.note', fieldtype: costanti.FieldType.string }),
|
||||
AddCol(DeleteRec),
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
|
||||
export const colTableProducts = [
|
||||
AddCol({ name: 'active', label_trans: 'products.active', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'code', label_trans: 'products.code' }),
|
||||
@@ -2131,8 +2213,8 @@ export const colTableUsersCNM = [
|
||||
label_trans: 'reg.consiglio',
|
||||
fieldtype: costanti.FieldType.boolean,
|
||||
}),
|
||||
AddCol({ name: 'profile.motivazioni', field: 'profile', subfield: 'motivazioni', label_trans: 'reg.motivazioni', }),
|
||||
AddCol({ name: 'profile.biografia', field: 'profile', subfield: 'biografia', label_trans: 'reg.biografia', }),
|
||||
AddCol({ name: 'profile.motivazioni', field: 'profile', subfield: 'motivazioni', label_trans: 'reg.motivazioni' }),
|
||||
AddCol({ name: 'profile.biografia', field: 'profile', subfield: 'biografia', label_trans: 'reg.biografia' }),
|
||||
AddCol({
|
||||
name: 'profile.competenze_professionalita',
|
||||
field: 'profile',
|
||||
@@ -2355,8 +2437,8 @@ export const colTableUsersISP = [
|
||||
fieldtype: costanti.FieldType.boolean,
|
||||
}),
|
||||
// AddCol({ name: 'profile.motivazioni', field: 'profile', subfield: 'motivazioni', label_trans: 'reg.motivazioni', }),
|
||||
AddCol({ name: 'profile.biografia', field: 'profile', subfield: 'biografia', label_trans: 'reg.biografia', }),
|
||||
AddCol({ name: 'profile.qualifica', field: 'profile', subfield: 'qualifica', label_trans: 'reg.qualifica', }),
|
||||
AddCol({ name: 'profile.biografia', field: 'profile', subfield: 'biografia', label_trans: 'reg.biografia' }),
|
||||
AddCol({ name: 'profile.qualifica', field: 'profile', subfield: 'qualifica', label_trans: 'reg.qualifica' }),
|
||||
AddCol({
|
||||
name: 'profile.paymenttypes',
|
||||
field: 'profile',
|
||||
@@ -2476,7 +2558,7 @@ export const colTableCircuitComplete = [
|
||||
}),
|
||||
AddCol({ name: 'regulation', label_trans: 'circuit.regulation', fieldtype: costanti.FieldType.html }),
|
||||
AddCol({ name: 'systemUserDescr', label_trans: 'circuit.systemUserDescr' }),
|
||||
AddCol({ name: 'systemUserId', label_trans: 'circuit.systemUserId', fieldtype: costanti.FieldType.select, jointable: 'users', }),
|
||||
AddCol({ name: 'systemUserId', label_trans: 'circuit.systemUserId', fieldtype: costanti.FieldType.select, jointable: 'users' }),
|
||||
AddCol({ name: 'createdBy', label_trans: 'circuit.founder', fieldtype: costanti.FieldType.select, jointable: 'users',
|
||||
showWhen: costanti.showWhen.InPage + costanti.showWhen.InView,
|
||||
}),
|
||||
@@ -2629,7 +2711,7 @@ export const colTableCircuit = [
|
||||
|
||||
export const colmyUserCircuit = [
|
||||
AddCol({ name: 'circuitId', label_trans: 'account.circuitId', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'userId', label_trans: 'account.users', fieldtype: costanti.FieldType.select, jointable: 'users', }),
|
||||
AddCol({ name: 'userId', label_trans: 'account.users', fieldtype: costanti.FieldType.select, jointable: 'users' }),
|
||||
AddCol({ name: 'name', label_trans: 'circuit.name' }),
|
||||
AddCol({ name: 'deperibile', label_trans: 'account.deperibile', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'fidoConcesso', label_trans: 'account.fidoConcesso', fieldtype: costanti.FieldType.number }),
|
||||
@@ -2932,6 +3014,13 @@ export const fieldsTable = {
|
||||
colkey: '_id',
|
||||
collabel: 'title',
|
||||
},
|
||||
{
|
||||
value: 'myelems',
|
||||
label: 'Elementi',
|
||||
columns: colmyelems,
|
||||
colkey: '_id',
|
||||
collabel: 'title',
|
||||
},
|
||||
{
|
||||
value: 'templemail',
|
||||
label: 'Template Email',
|
||||
@@ -3000,6 +3089,15 @@ export const fieldsTable = {
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'elemtypes',
|
||||
label: 'Tipi di Elementi',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'confsite_opt',
|
||||
label: 'Configura Opzioni Sito',
|
||||
@@ -3052,6 +3150,14 @@ export const fieldsTable = {
|
||||
collabel: 'label',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'cat_interesse_arcadei',
|
||||
label: 'Categorie d\'Interesse Arcadei',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'lang',
|
||||
label: 'Lingua',
|
||||
|
||||
@@ -84,6 +84,7 @@ export const toolsext = {
|
||||
TABMAILINGLIST: 'mailinglist',
|
||||
TABGROUPS: 'groups',
|
||||
TABMYPAGE: 'mypage',
|
||||
TABMYELEMS: 'myelems',
|
||||
TABMYBOT: 'bots',
|
||||
TABCALZOOM: 'calzoom',
|
||||
TABTEMPLEMAIL: 'templemail',
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
ICircuit, IMyCircuit,
|
||||
IFriends, IMsgGlobParam,
|
||||
ISigninOptions,
|
||||
ISignupOptions, IUserFields, IUserNotifType, IUserProfile, IUserState, IAccount, IColGridTable,
|
||||
ISignupOptions, IUserFields, IUserNotifType, IUserProfile, IUserState, IAccount, IColGridTable, ISignupIscrizioneConacreisOptions,
|
||||
} from '@src/model'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import translate from '@src/globalroutines/util'
|
||||
@@ -777,6 +777,50 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return arrtokens.filter((token: IToken) => token.access !== 'auth')
|
||||
},
|
||||
|
||||
async iscrivitiConacreis(authData: ISignupIscrizioneConacreisOptions) {
|
||||
console.log('iscrivitiConacreis')
|
||||
|
||||
this.setServerCode(tools.CALLING)
|
||||
|
||||
authData.userId = this.my._id
|
||||
|
||||
return Api.SendReq('/iscritti_conacreis', 'POST', authData)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
return { code: serv_constants.RIS_ISCRIZIONE_OK, msg: '' }
|
||||
} else {
|
||||
return { code: toolsext.ERR_GENERICO, msg: '' }
|
||||
}
|
||||
}).catch((error) => {
|
||||
console.log('Err', error)
|
||||
this.setErrorCatch(error)
|
||||
return { code: this.getServerCode, msg: this.getMsg }
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
async iscrivitiArcadei(authData: ISignupIscrizioneArcadeiOptions) {
|
||||
console.log('iscrivitiArcadei')
|
||||
|
||||
this.setServerCode(tools.CALLING)
|
||||
|
||||
authData.userId = this.my._id
|
||||
|
||||
return Api.SendReq('/iscritti_arcadei', 'POST', authData)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
return { code: serv_constants.RIS_ISCRIZIONE_OK, msg: '' }
|
||||
} else {
|
||||
return { code: toolsext.ERR_GENERICO, msg: '' }
|
||||
}
|
||||
}).catch((error) => {
|
||||
console.log('Err', error)
|
||||
this.setErrorCatch(error)
|
||||
return { code: this.getServerCode, msg: this.getMsg }
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
async signin($router: Router, authData: ISigninOptions) {
|
||||
console.log('LOGIN signin')
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
@@ -108,6 +108,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
gallery: [],
|
||||
mailinglist: [],
|
||||
mypage: [],
|
||||
myelems: [],
|
||||
calzoom: [],
|
||||
producers: [],
|
||||
groups: [],
|
||||
@@ -191,7 +192,6 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
|
||||
return mystate.menulinks
|
||||
|
||||
//return cfgrouter.getmenu()
|
||||
},
|
||||
|
||||
getRespByUsername: (state: IGlobalState) => (username: string) => {
|
||||
@@ -224,6 +224,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
else if (table === toolsext.TABOPZEMAIL) ris = state.opzemail
|
||||
else if (table === toolsext.TABMAILINGLIST) ris = state.mailinglist
|
||||
else if (table === toolsext.TABMYPAGE) ris = state.mypage
|
||||
else if (table === toolsext.TABMYELEMS) ris = state.myelems
|
||||
else if (table === toolsext.TABCALZOOM) ris = state.calzoom
|
||||
else if (table === 'producers') ris = state.producers
|
||||
else if (table === 'storehouses') ris = state.storehouses
|
||||
@@ -424,7 +425,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
if ($router) {
|
||||
if (tools.sito_online(false)) {
|
||||
// console.log('SITO ONLINE', arrpagesroute)
|
||||
arrpagesroute.forEach(function (route: any) {
|
||||
arrpagesroute.forEach((route: any) => {
|
||||
$router.addRoute(route)
|
||||
})
|
||||
|
||||
@@ -444,7 +445,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
|
||||
const trovato = this.mypage.filter((rec: IMyPage) => (rec.path === mypathsel) && (rec.active))
|
||||
|
||||
//if ($router.currentRoute.value.fullPath in ) {
|
||||
// if ($router.currentRoute.value.fullPath in ) {
|
||||
if (trovato) {
|
||||
$router.replace(mypathsel)
|
||||
}
|
||||
@@ -643,7 +644,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
// console.log('saveSubscriptionToServer: ', newSub)
|
||||
// console.log('context', context)
|
||||
|
||||
let options = null
|
||||
const options = null
|
||||
let notreg = false
|
||||
|
||||
if (userStore.isTokenInvalid) {
|
||||
@@ -870,7 +871,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
|
||||
async caricaTabella(table: string, extrapar: string) {
|
||||
|
||||
let myarr = []
|
||||
const myarr = []
|
||||
const sortBy = 'descr'
|
||||
const descending = 1
|
||||
const myobj: any = {}
|
||||
@@ -940,7 +941,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
|
||||
console.log('loadPageTest')
|
||||
|
||||
let obj = { test: 'OK! Versione Client: ' + tools.getvers() }
|
||||
const obj = { test: 'OK! Versione Client: ' + tools.getvers() }
|
||||
|
||||
return Api.SendReq('/testServer', 'POST', obj)
|
||||
.then((res) => {
|
||||
@@ -963,7 +964,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
if (res.data.rec) {
|
||||
return res.data.rec
|
||||
} else {
|
||||
res.data
|
||||
return res.data
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1405,7 +1406,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
this.mailinglist = (res.data.mailinglist) ? [...res.data.mailinglist] : []
|
||||
}
|
||||
this.mypage = (res.data.mypage) ? [...res.data.mypage] : []
|
||||
console.log('this.mypage', this.mypage)
|
||||
this.myelems = (res.data.myelems) ? [...res.data.myelems] : []
|
||||
// console.log('this.mypage', this.mypage)
|
||||
|
||||
let isLogged = false
|
||||
|
||||
@@ -1578,8 +1580,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
let mydateend = tools.addDays(mydate, numdays)
|
||||
mydate = tools.getstrYYMMDDDate(mydate)
|
||||
mydateend = tools.getstrYYMMDDDate(mydateend)
|
||||
let filter = { dateTimeStart: { $gte: mydate, $lte: mydateend } }
|
||||
let obj = { _id: num, datestr: mystr, filter }
|
||||
const filter = { dateTimeStart: { $gte: mydate, $lte: mydateend } }
|
||||
const obj = { _id: num, datestr: mystr, filter }
|
||||
|
||||
return obj
|
||||
},
|
||||
@@ -1587,7 +1589,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
getArrDateEvent() {
|
||||
const arr = []
|
||||
|
||||
let obj = {}
|
||||
const obj = {}
|
||||
|
||||
arr.push(this.getItemDate(1, -30, 30, 'Eventi Passati'))
|
||||
arr.push(this.getItemDate(2, 0, 14, 'Da Oggi a 2 sett.'))
|
||||
@@ -1604,7 +1606,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
let obj = {}
|
||||
|
||||
for (let i = 0; i < 120; i++) {
|
||||
let mydate = tools.addDays(tools.getDateNow(), i - 30)
|
||||
const mydate = tools.addDays(tools.getDateNow(), i - 30)
|
||||
obj = { _id: mydate, datestr: tools.getstrVeryShortDate(mydate) }
|
||||
arr.push(obj)
|
||||
}
|
||||
@@ -1624,9 +1626,11 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
else if (table === 'confsite_opt') myarr = tools.ConfSiteOpt
|
||||
else if (table === 'bottype') myarr = shared_consts.BotType
|
||||
else if (table === 'visibility') myarr = shared_consts.Visibility
|
||||
else if (table === 'cat_interesse_arcadei') myarr = shared_consts.Cat_Interesse_Arcadei
|
||||
else if (table === 'pub_to_share') myarr = shared_consts.Pub_to_Share
|
||||
else if (table === 'visibilGroup') myarr = shared_consts.VisibilGroup
|
||||
else if (table === 'statuscircuit') myarr = shared_consts.StatusCircuit
|
||||
else if (table === 'elemtypes') myarr = shared_consts.TypesElem
|
||||
else if (table === 'lang') myarr = shared_consts.Lang
|
||||
else if (table === 'regions') myarr = shared_consts.Regions
|
||||
else if (table === 'shippings') myarr = shared_consts.Shippings
|
||||
@@ -1658,14 +1662,14 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
if (addnone) {
|
||||
const mykey = fieldsTable.getKeyByTable(table)
|
||||
const collab = fieldsTable.getLabelByTable(table)
|
||||
let obj: any = {}
|
||||
const obj: any = {}
|
||||
obj[mykey] = costanti.FILTER_NESSUNO
|
||||
obj[collab] = '[Nessuno]'
|
||||
|
||||
if (table === toolsext.TABMYGOODS) {
|
||||
obj['idSectorGood'] = []
|
||||
obj.idSectorGood = []
|
||||
} else if ((table === toolsext.TABMYSKILLS)) {
|
||||
obj['idSector'] = []
|
||||
obj.idSector = []
|
||||
}
|
||||
|
||||
myarr = [obj, ...myarr]
|
||||
|
||||
Reference in New Issue
Block a user