- aggiornamento lista catalogo, ordinamento tabelle

This commit is contained in:
Surya Paolo
2025-05-08 11:06:01 +02:00
parent 82e10ef6cf
commit ef36cd5e11
5 changed files with 165 additions and 80 deletions

View File

@@ -787,7 +787,7 @@ export default defineComponent({
if (generalista) {
const catalog = getCatalogoByMyPage.value
if (catalog) {
if (catalog && !optcatalogo.value.showListaArgomenti) {
catalog.data_lista_generata = tools.getDateNow()
catalog.username_lista_generata = userStore.my.username
await saveCatalog()
@@ -1213,9 +1213,9 @@ export default defineComponent({
cat.value = tools.getCookie(getKeyCatAtLoad(), '')
if (getCatalogoByMyPage.value) {
tabcatalogo.value = tools.getCookie('TAB_CAT', 'visu')
tabcatalogo.value = tools.getCookie('TAB_CAT', 'lista')
} else {
tabcatalogo.value = 'visu'
tabcatalogo.value = 'lista'
}
optrigenera.value.visibilitaDisp = tools.getCookie((showListaArgomenti.value ? 'INC_ES_' : '') + 'VIS_DISP', costanti.DISP.DISPONIBILI)
@@ -1273,7 +1273,7 @@ export default defineComponent({
});
function getCatProds() {
return [{ label: 'Tutti', value: '', icon: undefined, color: undefined }].concat(
return [{ label: '[Seleziona un Argomento]', value: '', icon: undefined, color: undefined }].concat(
productStore.getCatProds(cosa.value).map(rec => ({
label: `${rec.name} (${productStore.getTotaliProdottiByIdCatProd(rec._id)})`,
value: rec._id,