ver 1.1.20:
- corretto campo foto che non compariva più. - sistemato i campi aggiuntivi e i richiesti. - migliorato la barra in alto di selezione. - aggiunto alcune icone.
This commit is contained in:
@@ -41,6 +41,7 @@ import { routesECommerce } from '@src/router/routesECommerce'
|
||||
import { routesAI } from '@src/router/routesAI'
|
||||
import LandingFooter from '@src/components/LandingFooter/LandingFooter'
|
||||
import { useProducts } from '@store/Products'
|
||||
import { useCatalogStore } from './CatalogStore'
|
||||
|
||||
const stateConnDefault = 'online'
|
||||
|
||||
@@ -359,6 +360,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
const Products = useProducts()
|
||||
const circuitStore = useCircuitStore()
|
||||
const userStore = useUserStore()
|
||||
const catalogStore = useCatalogStore()
|
||||
const messageStore = useMessageStore()
|
||||
const notifStore = useNotifStore()
|
||||
|
||||
@@ -383,6 +385,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
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.TABCATALOGS) ris = catalogStore.catalog!
|
||||
else if (table === toolsext.TABCALZOOM) ris = state.calzoom
|
||||
else if (table === 'producers') ris = state.producers
|
||||
else if (table === 'storehouses') ris = state.storehouses
|
||||
@@ -446,6 +449,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return state.sectorgoods
|
||||
else if (table === 'catgrps')
|
||||
return state.catgrps
|
||||
else if (table === 'collanas')
|
||||
return Products.collane
|
||||
else if (table === 'provinces')
|
||||
return state.provinces.filter((rec: IProvince) => (!rec.card) && (rec.prov !== 'ITA') && (rec.prov !== 'EST'))
|
||||
else if (table === 'cards') {
|
||||
@@ -1694,6 +1699,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
const calendarStore = useCalendarStore()
|
||||
const circuitStore = useCircuitStore()
|
||||
const Products = useProducts()
|
||||
const catalogStore = useCatalogStore()
|
||||
|
||||
// console.log('calendarStore: loadAfterLogin')
|
||||
// Load local data
|
||||
@@ -1719,6 +1725,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
circuitStore.listcircuits = (res.data.listcircuits) ? res.data.listcircuits : []
|
||||
circuitStore.listaccounts = (res.data.listaccounts) ? res.data.listaccounts : []
|
||||
|
||||
catalogStore.catalog = res.data.catalogs
|
||||
|
||||
this.settings = (res.data.settings) ? [...res.data.settings] : []
|
||||
this.disciplines = (res.data.disciplines) ? [...res.data.disciplines] : []
|
||||
this.paymenttypes = (res.data.paymenttypes) ? [...res.data.paymenttypes] : []
|
||||
@@ -2447,7 +2455,32 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
|
||||
},
|
||||
|
||||
SchedeOpt() {
|
||||
const arrschede: ISchedaSingola[] = this.getMySchede()
|
||||
|
||||
let arr: any = []
|
||||
|
||||
arr.push({ label: '[Nessuna]', value: '' })
|
||||
|
||||
if (arrschede) {
|
||||
arrschede.forEach((recscheda: ISchedaSingola) => {
|
||||
let pagename = ''
|
||||
if (recscheda.scheda) {
|
||||
if (recscheda.idPageOrig) {
|
||||
const page = this.getPageById(recscheda.idPageOrig)
|
||||
pagename = page ? page.title! : ''
|
||||
}
|
||||
if (pagename)
|
||||
pagename = '[Pag: ' + pagename + '] '
|
||||
|
||||
const mylabel = pagename + (recscheda.scheda ? recscheda.scheda!.name : '')
|
||||
arr.push({ label: mylabel, value: recscheda.scheda!._id })
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return arr
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user