Pagina con i link dei Canali territoriali di RISO
Lista Tabelle "Aggiungi" da errore userId... Aggiunto "Servizi" e alcune sue sottocategorie Aggiunto anche la conversione della foto piccola alla Foto Profilo
This commit is contained in:
@@ -414,6 +414,17 @@ export const colCitys = [
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
|
||||
export const colProvinces = [
|
||||
AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'reg', label_trans: 'city.reg' }),
|
||||
AddCol({ name: 'prov', label_trans: 'city.prov' }),
|
||||
AddCol({ name: 'descr', label_trans: 'store.description' }),
|
||||
AddCol({ name: 'link_grp', label_trans: 'city.link_grp' }),
|
||||
AddCol(DeleteRec),
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
|
||||
/*
|
||||
export const colProvinces = [
|
||||
// AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'label', label_trans: 'store.description' }),
|
||||
@@ -422,6 +433,7 @@ export const colProvinces = [
|
||||
AddCol(DeleteRec),
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
*/
|
||||
|
||||
export const colTableCountry = [
|
||||
AddCol({ name: 'id', label_trans: 'index', fieldtype: costanti.FieldType.string }),
|
||||
@@ -2006,6 +2018,12 @@ export const colTableUsersISP = [
|
||||
AddCol({
|
||||
name: 'profile.teleg_id', field: 'profile', subfield: 'teleg_id', label_trans: 'reg.teleg_id',
|
||||
}),
|
||||
AddCol({
|
||||
name: 'profile.teleg_id_old',
|
||||
field: 'profile',
|
||||
subfield: 'teleg_id_old',
|
||||
label_trans: 'reg.teleg_id_old',
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'profile.teleg_checkcode',
|
||||
@@ -2643,8 +2661,8 @@ export const fieldsTable = {
|
||||
value: 'provinces',
|
||||
label: 'Provincia',
|
||||
columns: colProvinces,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
colkey: '_id',
|
||||
collabel: 'descr',
|
||||
remote: true,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -2024,6 +2024,7 @@ export const tools = {
|
||||
mylang = 'si'
|
||||
}
|
||||
|
||||
|
||||
if (!(static_data.arrLangUsed.includes(mylang))) {
|
||||
// console.log('non incluso ', mylang)
|
||||
// mylang = static_data.arrLangUsed[0]
|
||||
@@ -4133,6 +4134,18 @@ export const tools = {
|
||||
return false
|
||||
},
|
||||
|
||||
getUsername() {
|
||||
const userStore = useUserStore()
|
||||
try {
|
||||
if (!!userStore)
|
||||
return userStore.my.username
|
||||
else
|
||||
return false
|
||||
}catch (e) {
|
||||
return ''
|
||||
}
|
||||
},
|
||||
|
||||
isUserOk() {
|
||||
const userStore = useUserStore()
|
||||
if (!!userStore)
|
||||
@@ -5015,6 +5028,11 @@ export const tools = {
|
||||
return userStore.isTelegOk()
|
||||
},
|
||||
|
||||
isUsernameTelegOk() {
|
||||
const userStore = useUserStore()
|
||||
return userStore.isUsernameTelegOk()
|
||||
},
|
||||
|
||||
getParamsByTable(table: string) {
|
||||
|
||||
let obj = {
|
||||
|
||||
@@ -236,6 +236,7 @@ export const toolsext = {
|
||||
mylang = 'si'
|
||||
}
|
||||
|
||||
|
||||
if (!(static_data.arrLangUsed.includes(mylang))) {
|
||||
// console.log('non incluso ', mylang)
|
||||
// mylang = static_data.arrLangUsed[0]
|
||||
|
||||
@@ -272,6 +272,11 @@ export const useUserStore = defineStore('UserStore', {
|
||||
// return this.my.verified_email! && this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador!
|
||||
},
|
||||
|
||||
isUsernameTelegOk(): boolean {
|
||||
return !!this.my.profile.username_telegram
|
||||
// return this.my.verified_email! && this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador!
|
||||
},
|
||||
|
||||
getNameSurnameByUserId(userId: string): string {
|
||||
|
||||
const user = this.getUserByUserId(userId)
|
||||
|
||||
@@ -128,7 +128,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
sectors: [],
|
||||
sectorgoods: [],
|
||||
catgrps: [],
|
||||
cities: [],
|
||||
provinces: [],
|
||||
}),
|
||||
|
||||
getters: {
|
||||
@@ -256,6 +256,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return state.sectorgoods
|
||||
else if (table === 'catgrps')
|
||||
return state.catgrps
|
||||
else if (table === 'provinces')
|
||||
return state.provinces
|
||||
else {
|
||||
return ris
|
||||
}
|
||||
@@ -1304,7 +1306,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
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.provinces = (res.data.provinces) ? [...res.data.provinces] : []
|
||||
this.catgrps = (res.data.catgrps) ? [...res.data.catgrps] : []
|
||||
this.adtypes = (res.data.adtypes) ? [...res.data.adtypes] : []
|
||||
this.adtypegoods = (res.data.adtypegoods) ? [...res.data.adtypegoods] : []
|
||||
@@ -1531,7 +1533,6 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
else if (table === 'visibilGroup') myarr = shared_consts.VisibilGroup
|
||||
else if (table === 'lang') myarr = shared_consts.Lang
|
||||
else if (table === 'regions') myarr = shared_consts.Regions
|
||||
else if (table === 'provinces') myarr = shared_consts.Provinces
|
||||
else if (table === 'shippings') myarr = shared_consts.Shippings
|
||||
else if (table === 'otherfilters') myarr = shared_consts.OtherFilters
|
||||
else if (table === toolsext.TABCALDATE) myarr = this.getArrDateEvent()
|
||||
|
||||
Reference in New Issue
Block a user