- Aggiunta della funzione Cron
- Flag: Pubblicati OnLine + Solo CagalogoGenerale + Dettagli
This commit is contained in:
@@ -38,6 +38,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: true,
|
||||
},
|
||||
isCatalogoGenerale: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
heightcarousel: {
|
||||
type: String,
|
||||
required: false,
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
:noresultLabel="t('grid.nosearchfound')"
|
||||
:arrfilters="arrfilterand"
|
||||
:filtercustom="filtercustom"
|
||||
:prop_searchList="tools.getsearchList_Cataloghi()"
|
||||
:prop_searchList="tools.getsearchList_Cataloghi(isCatalogoGenerale)"
|
||||
:defaultnewrec="tools.getdefaultnewrec(table)"
|
||||
labelBtnAddRow="NONE"
|
||||
:prop_SortFieldsAvailable="mySortFieldsAvailable()"
|
||||
|
||||
@@ -49,6 +49,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: true,
|
||||
},
|
||||
isCatalogoGenerale: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
prop_modif: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
@@ -645,7 +650,7 @@ export default defineComponent({
|
||||
|
||||
]
|
||||
|
||||
searchList_Cataloghi.value = tools.getsearchList_Cataloghi()
|
||||
searchList_Cataloghi.value = tools.getsearchList_Cataloghi(isCatalogoGenerale)
|
||||
|
||||
searchList_Hosp.value = [
|
||||
{
|
||||
|
||||
@@ -2837,6 +2837,15 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function getisDettagliByCatalog() {
|
||||
const rec = searchList.value.find((myrec) => myrec.table === shared_consts.TABLES_CATALOG && myrec.key === 'dettagli')
|
||||
if (rec) {
|
||||
return rec.value
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
created()
|
||||
|
||||
@@ -2973,6 +2982,7 @@ export default defineComponent({
|
||||
loadMore,
|
||||
onIntersection,
|
||||
showfilteradv,
|
||||
getisDettagliByCatalog,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -569,6 +569,7 @@
|
||||
v-else-if="tablesel === shared_consts.TABLES_CATALOG"
|
||||
:table="tablesel"
|
||||
:prop_myrec="row"
|
||||
:dettagli="getisDettagliByCatalog()"
|
||||
:opt="opt"
|
||||
@cmdext="cmdExt"
|
||||
:editOn="editOn"
|
||||
@@ -910,6 +911,13 @@
|
||||
</q-item>
|
||||
</template>
|
||||
</q-select>
|
||||
<q-toggle
|
||||
v-else-if="item.type === costanti.FieldType.boolean"
|
||||
:label="item.label"
|
||||
v-model="item.value"
|
||||
@update:model-value="refresh"
|
||||
color="green"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -210,7 +210,8 @@
|
||||
addstr="px"
|
||||
@update:model-value="modifElem"
|
||||
></CMySlider>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<CMySlider
|
||||
label="Altezza:"
|
||||
v-model="myel.heightimg"
|
||||
@@ -220,6 +221,8 @@
|
||||
addstr="px"
|
||||
@update:model-value="modifElem"
|
||||
></CMySlider>
|
||||
</div>
|
||||
<div class="row">
|
||||
<CMySlider
|
||||
v-if="
|
||||
myel.type === shared_consts.ELEMTYPE.CARD ||
|
||||
@@ -234,7 +237,8 @@
|
||||
addstr="px"
|
||||
@update:model-value="modifElem"
|
||||
></CMySlider>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<CMySlider
|
||||
v-if="myel.type === shared_consts.ELEMTYPE.CATALOGLIST"
|
||||
label="Lunghezza Card:"
|
||||
@@ -245,9 +249,10 @@
|
||||
addstr="px"
|
||||
@update:model-value="modifElem"
|
||||
></CMySlider>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<CMySlider
|
||||
v-if="myel.heightcard !== undefined"
|
||||
v-if="myel.type === shared_consts.ELEMTYPE.CATALOGLIST"
|
||||
label="Altezza Card:"
|
||||
v-model="myel.heightcard"
|
||||
:min="10"
|
||||
@@ -1418,6 +1423,12 @@
|
||||
label="Finder"
|
||||
@update:model-value="modifElem"
|
||||
></q-toggle>
|
||||
<q-toggle
|
||||
v-model="myel.parambool3"
|
||||
color="positive"
|
||||
label="Solo il Catalogo Generale"
|
||||
@update:model-value="modifElem"
|
||||
></q-toggle>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="myel.type === shared_consts.ELEMTYPE.CALENDAR">
|
||||
|
||||
@@ -356,13 +356,15 @@
|
||||
<q-tab-panels v-model="tabcatalogo" animated keep-alive>
|
||||
<q-tab-panel name="lista">
|
||||
<CGridOriz table="catalogs" :tipovisu="costanti.VISUTABLE_TABLELIST" :prop_search="true" :finder="true"
|
||||
:isCatalogoGenerale="myel.parambool3"
|
||||
:showMap="false" :prop_modif="tools.isAdmin()"></CGridOriz>
|
||||
</q-tab-panel>
|
||||
|
||||
<q-tab-panel name="griglia">
|
||||
<CCatalogList :prop_search="myel.parambool" :finder="myel.parambool2"
|
||||
:heightcarousel="myel.heightcarousel" :heightimg="myel.heightimg" :widthimg="myel.widthimg"
|
||||
:heightcard="myel.heightcard" :widthcard="myel.widthcard">
|
||||
:heightcard="myel.heightcard" :widthcard="myel.widthcard"
|
||||
:isCatalogoGenerale="myel.parambool3">
|
||||
</CCatalogList>
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="tutorial">
|
||||
|
||||
@@ -38,6 +38,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
dettagli: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
margin_right: {
|
||||
type: Number,
|
||||
required: false,
|
||||
|
||||
@@ -3,14 +3,9 @@
|
||||
<q-card
|
||||
v-if="myrec"
|
||||
bordered
|
||||
:style="`width: ` + opt.widthcard + `; ` + (opt.heightcard ? `height: ` + opt.heightcard + `; ` : '')"
|
||||
:style="`width: ` + opt.widthcard + `; ` + (opt.heightcard ? `height: ` + opt.heightcard + `;`: '')"
|
||||
|
||||
>
|
||||
<!--<q-skeleton
|
||||
v-if="!myrec.foto_collana"
|
||||
type="QAvatar"
|
||||
:width="opt.widthcard"
|
||||
:height="opt.heightcard"
|
||||
/>-->
|
||||
<q-img
|
||||
:width="opt.widthimg"
|
||||
@click="naviga(pagina_collegata)"
|
||||
@@ -27,9 +22,9 @@
|
||||
</div>-->
|
||||
</q-img>
|
||||
|
||||
<q-card-section>
|
||||
<q-card-section class="q-px-sm">
|
||||
<div
|
||||
class="q-mb-sm text-center text-bold"
|
||||
class="q-mb-md text-center text-bold"
|
||||
style="font-size: 1.15rem"
|
||||
>
|
||||
<a
|
||||
@@ -38,13 +33,13 @@
|
||||
>{{ myrec.title }}</a
|
||||
>
|
||||
</div>
|
||||
<div class="">
|
||||
<div class="q-px-md">
|
||||
<div class="text-caption text-h7 text-grey q-pb-xs">
|
||||
<q-icon name="fas fa-list-ol" /> {{ $t('cataloglist.numprodotti') }}:
|
||||
<span :class="`text-` + (numprodottistr === 0 ? 'red' : 'blue')">{{ numprodottistr }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="!tools.isUtente()"
|
||||
v-if="!tools.isUtente() && dettagli"
|
||||
class="text-caption text-h7 text-grey q-pb-xs"
|
||||
>
|
||||
<q-icon name="fas fa-user" /> {{ $t('cataloglist.referenti') }}:
|
||||
@@ -59,28 +54,28 @@
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="collanestr"
|
||||
v-if="!tools.isUtente() && collanestr && dettagli"
|
||||
class="text-caption text-h7 text-grey q-pb-xs"
|
||||
>
|
||||
<q-icon name="fas fa-book" /> {{ t('cataloglist.collane') }}:
|
||||
<span class="text-blue">{{ collanestr }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="!tools.isUtente() && argomentistr"
|
||||
v-if="!tools.isUtente() && argomentistr && dettagli"
|
||||
class="text-caption text-h7 text-grey q-pb-xs"
|
||||
>
|
||||
<q-icon name="fas fa-book" /> {{ $t('cataloglist.argomenti') }}:
|
||||
<span class="text-blue">{{ argomentistr + ` (${numprodtot})` }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="!tools.isUtente() && editorestr"
|
||||
v-if="!tools.isUtente() && editorestr && dettagli"
|
||||
class="text-caption text-h7 text-grey q-pb-xs"
|
||||
>
|
||||
<q-icon name="fas fa-book-open" /> {{ $t('cataloglist.casaeditrice') }}:
|
||||
<span class="text-blue">{{ editorestr }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="!tools.isUtente() && !esiste_descrintro"
|
||||
v-if="!tools.isUtente() && !esiste_descrintro && dettagli"
|
||||
class="text-caption text-h7 text-grey q-pb-xs"
|
||||
>
|
||||
<q-icon name="fas fa-pencil-alt" /> Testo descrittivo:
|
||||
@@ -89,7 +84,7 @@
|
||||
}}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="!tools.isUtente() && !myrec.img_bordata?.imagefile"
|
||||
v-if="!tools.isUtente() && !myrec.img_bordata?.imagefile && dettagli"
|
||||
class="text-caption text-h7 text-grey q-pb-xs"
|
||||
>
|
||||
<q-icon name="fas fa-image" /> Sfondo:
|
||||
@@ -98,7 +93,7 @@
|
||||
}}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="!tools.isUtente() && !myrec.img_intro?.imagefile"
|
||||
v-if="!tools.isUtente() && !myrec.img_intro?.imagefile && dettagli"
|
||||
class="text-caption text-h7 text-grey q-pb-xs"
|
||||
>
|
||||
<q-icon name="fas fa-image" /> Copertina:
|
||||
@@ -119,7 +114,7 @@
|
||||
(Data: {{ tools.getstrDate(myrec.data_generato) }})
|
||||
</div>
|
||||
<div
|
||||
v-if="!tools.isUtente()"
|
||||
v-if="!tools.isUtente() && dettagli"
|
||||
class="text-caption text-h7 text-grey q-pb-xs"
|
||||
>
|
||||
<q-icon name="fas fa-list" /> Lista generata il:
|
||||
@@ -145,9 +140,9 @@
|
||||
</q-card-section>
|
||||
|
||||
<q-card-actions
|
||||
v-if="!tools.isUtente() && dettagli"
|
||||
align="center"
|
||||
class="q-pa-none"
|
||||
style="position: absolute; bottom: 0; width: 100%"
|
||||
>
|
||||
<div class="row justify-center">
|
||||
<q-fab
|
||||
|
||||
Reference in New Issue
Block a user