- aggiornati gli argomenti in base a GM
This commit is contained in:
@@ -11,10 +11,15 @@ import { costanti } from '@costanti'
|
||||
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { CProductCard } from '@src/components/CProductCard'
|
||||
|
||||
import { CMySelect } from '@src/components/CMySelect'
|
||||
import { CContainerCatalogoCard } from '@src/components/CContainerCatalogoCard'
|
||||
import { CSelectUserActive } from '@src/components/CSelectUserActive'
|
||||
import { IOptCatalogo, IDimensioni, IFilterCatalogo, IMyScheda, IProdView, IProduct, ISchedaSingola, ISearchList, ICatalog, IImg, IMyPage } from 'model'
|
||||
import {
|
||||
IOptCatalogo, IDimensioni, IFilterCatalogo,
|
||||
IMyScheda, IProdView, IProduct, ISchedaSingola, ISearchList, ICatalog, IImg, IMyPage,
|
||||
|
||||
} from 'model'
|
||||
|
||||
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
@@ -145,6 +150,10 @@ export default defineComponent({
|
||||
return catalogStore.catalogs?.find((catalog: ICatalog) => catalog.idPageAssigned === props.idPage)
|
||||
})
|
||||
|
||||
const ispageCatalogata = computed(() => {
|
||||
return !!getCatalogoByMyPage.value
|
||||
})
|
||||
|
||||
// Register the scroll event on component mount
|
||||
const handleScroll = () => {
|
||||
const scrollTop = window.scrollY || document.documentElement.scrollTop;
|
||||
@@ -374,11 +383,12 @@ export default defineComponent({
|
||||
|
||||
let catstr = ''
|
||||
|
||||
if (optcatalogo.value.argomenti) {
|
||||
if (optcatalogo.value.argomenti && optcatalogo.value.argomenti.length > 0) {
|
||||
// ha la priorità questo scelto sul catalogo
|
||||
arrargomstr = getArgomentiDaFiltrare(optcatalogo.value.argomenti!)
|
||||
} else {
|
||||
catstr = cat.value || ''
|
||||
arrargomstr = getArgomentiDaFiltrare([cat.value || ''])
|
||||
// catstr = cat.value || ''
|
||||
}
|
||||
|
||||
|
||||
@@ -541,7 +551,7 @@ export default defineComponent({
|
||||
|
||||
let catstr = ''
|
||||
|
||||
if (optcatalogo.value.argomenti) {
|
||||
if (optcatalogo.value.argomenti && optcatalogo.value.argomenti.length > 0) {
|
||||
// ha la priorità questo scelto sul catalogo
|
||||
arrargomstr = getArgomentiDaFiltrare(optcatalogo.value.argomenti!)
|
||||
} else {
|
||||
@@ -1139,6 +1149,10 @@ export default defineComponent({
|
||||
return page && page.length > 0 && page[0] && page[0].length > 0
|
||||
}
|
||||
|
||||
function naviga(path: string) {
|
||||
router.push(path)
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -1191,6 +1205,8 @@ export default defineComponent({
|
||||
updateOptCatalogo,
|
||||
optcatalogo,
|
||||
getTestoIntroduttivo,
|
||||
ispageCatalogata,
|
||||
naviga,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user