- aggiornato catalogo lista con filtri per editori e grafico
This commit is contained in:
@@ -63,6 +63,7 @@ export default defineComponent({
|
||||
const apriInfo = ref(false)
|
||||
const collanestr = ref('')
|
||||
const argomentistr = ref('')
|
||||
const numprodtot = ref(0)
|
||||
const editorestr = ref('')
|
||||
|
||||
const products = useProducts()
|
||||
@@ -86,7 +87,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
return linkpage
|
||||
|
||||
|
||||
})
|
||||
|
||||
watch(() => props.prop_myrec, (newval, oldval) => {
|
||||
@@ -109,12 +110,16 @@ export default defineComponent({
|
||||
}
|
||||
argomentistr.value = ''
|
||||
if (myrec.value.argomenti) {
|
||||
numprodtot.value = 0
|
||||
for (const arg of myrec.value.argomenti!) {
|
||||
const recargomento: ICatProd = products.catprods!.find((catprod: ICatProd) => catprod._id === arg)
|
||||
if (recargomento)
|
||||
argomentistr.value += recargomento.name + ' '
|
||||
numprodtot.value += products.getTotaliProdottiByIdCatProd(arg)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
editorestr.value = ''
|
||||
if (myrec.value.editore) {
|
||||
for (const receditore of myrec.value.editore!) {
|
||||
@@ -122,7 +127,7 @@ export default defineComponent({
|
||||
editorestr.value += rectrovato!.name + ' '
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
statecolor.value = 'negative'
|
||||
|
||||
if (myrec.value.descr_introduttiva && myrec.value.img_bordata?.imagefile && myrec.value.img_intro?.imagefile) {
|
||||
@@ -149,7 +154,7 @@ export default defineComponent({
|
||||
$router.push(path)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function setCmd($q: any, cmd: number, myusername: string, value: any, groupname: string) {
|
||||
emit('setCmd', $q, cmd, myusername, value, groupname)
|
||||
@@ -208,6 +213,7 @@ export default defineComponent({
|
||||
pagina_collegata,
|
||||
esiste_descrintro,
|
||||
argomentistr,
|
||||
numprodtot,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
</div>
|
||||
<div v-if="argomentistr" class="text-caption text-h7 text-grey">
|
||||
<q-icon name="fas fa-book" /> {{$t('cataloglist.argomenti')}}:
|
||||
<span class="text-blue">{{ argomentistr }}</span>
|
||||
<span class="text-blue">{{ argomentistr + ` (${numprodtot})` }}</span>
|
||||
</div>
|
||||
<div v-if="editorestr" class="text-caption text-h7 text-grey">
|
||||
<q-icon name="fas fa-book-open" /> {{$t('cataloglist.referenti')}}:
|
||||
@@ -86,7 +86,7 @@
|
||||
:style="
|
||||
`color: ` + (myrec.img_bordata?.imagefile ? 'green' : 'red')
|
||||
"
|
||||
>{{ esiste_descrintro ? 'Presente' : 'Mancante' }}</span
|
||||
>{{ myrec.img_bordata?.imagefile ? 'Presente' : 'Mancante' }}</span
|
||||
>
|
||||
</div>
|
||||
<div
|
||||
@@ -96,7 +96,7 @@
|
||||
<q-icon name="fas fa-image" /> Copertina:
|
||||
<span
|
||||
:style="`color: ` + (myrec.img_intro?.imagefile ? 'green' : 'red')"
|
||||
>{{ esiste_descrintro ? 'Presente' : 'Mancante' }}</span
|
||||
>{{ myrec.img_intro?.imagefile ? 'Presente' : 'Mancante' }}</span
|
||||
>
|
||||
</div>
|
||||
<div v-if="myrec.pdf_generato" class="text-caption text-h7 text-blue">
|
||||
@@ -112,7 +112,7 @@
|
||||
<!--<div class="text-overline text-orange-9">{{collanestr}}</div>-->
|
||||
</q-card-section>
|
||||
|
||||
<q-card-actions align="center">
|
||||
<q-card-actions align="center" class="q-pa-none" style="position: absolute; bottom: 0; width: 100%;">
|
||||
<div class="row justify-center">
|
||||
<q-fab
|
||||
color="primary"
|
||||
@@ -200,7 +200,7 @@
|
||||
<CLabel :value="collanestr" :label="$t('cataloglist.collane') + `:`" />
|
||||
</div>
|
||||
<div v-if="argomentistr" style="width: 300px" class="q-ma-sm">
|
||||
<CLabel :value="argomentistr" :label="$t('cataloglist.argomenti') + `:`" />
|
||||
<CLabel :value="argomentistr + ` (${numprodtot})`" :label="$t('cataloglist.argomenti') + `:`" />
|
||||
</div>
|
||||
<div style="width: 300px" class="q-ma-sm">
|
||||
<CLabel
|
||||
|
||||
Reference in New Issue
Block a user