- aggiornato catalogo lista con filtri per editori e grafico

This commit is contained in:
Surya Paolo
2025-02-13 21:15:04 +01:00
parent cdefb91bef
commit f0098e57b2
58 changed files with 245 additions and 116 deletions

View File

@@ -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,
}
},
})