- attivita

- gestione degli script sul server
 - creato websocket per interagire con gli script del server.
This commit is contained in:
Surya Paolo
2024-08-29 23:31:54 +02:00
parent 79e874e3e0
commit 8f4ff8ff9c
39 changed files with 1373 additions and 303 deletions

View File

@@ -20,6 +20,7 @@ import { useQuasar } from 'quasar'
export default defineComponent({
name: 'CFinder',
emits: ['clickButtBar'],
props: {
table: {
type: String,
@@ -88,6 +89,8 @@ export default defineComponent({
const col = ref(<IColGridTable>{})
const myGridRef = ref(<any>null)
/*
const idSectorServizi = computed(() => {
let myval: any = null
@@ -200,7 +203,7 @@ export default defineComponent({
else if (props.table === shared_consts.TABLES_MYHOSPS)
return 'digita delle parole da cercare nella descrizione dell\'Ospitalità'
else if (props.table === shared_consts.TABLES_ATTIVITAS)
return 'digita un\'attività da cercare nella descrizione dell\'Ospitalità'
return 'digita un\'attività da cercare'
return 'digita una parola da cercare'
})
@@ -1041,6 +1044,14 @@ export default defineComponent({
//
}
function clickButtBar(item: any) {
if (myGridRef.value) {
myGridRef.value.clickButtBar(item)
}
// emit('clickButtBar', item)
}
onMounted(mounted)
return {
@@ -1067,6 +1078,8 @@ export default defineComponent({
strextra,
myoptions,
mySortFieldsAvailable,
clickButtBar,
myGridRef,
}
},
})

View File

@@ -1,5 +1,5 @@
<template>
<CTitlePage :ind="ind" :table="table" :showBarSelection="showBarSelection">
<CTitlePage :ind="ind" :table="table" :showBarSelection="showBarSelection" @clickButtBar="clickButtBar">
<div class="bi-border-all">
<div class="q-ma-xs q-gutter-xs">
<div v-if="showFilterPersonal" class="text-center">
@@ -32,6 +32,7 @@
</div>
<CGridTableRec
ref="myGridRef"
v-if="searchList.length > 0"
:prop_mytable="table"
:options="tools.optionsTable(table)"
@@ -51,16 +52,18 @@
labelElemFind="trovati"
:choose_visutype="visuType"
:butt_modif_new="true && !noButtAdd"
noresultLabel="Il filtro selezionato non ha trovato nessun risultato"
:noresultLabel="t('grid.nosearchfound') + ' ' + (showMap ? t('grid.intheareamap') : '')"
:arrfilters="arrfilterand"
:filtercustom="filtercustom"
:prop_searchList="searchList"
:defaultnewrec="tools.getdefaultnewrec(table)"
labelBtnAddRow="NONE"
:prop_SortFieldsAvailable="mySortFieldsAvailable"
:labelBtnAddExtra="noButtAdd ? `` : (ind >= 0) ? `Aggiungi ` + costanti.MAINCARDS[ind].strsingolo : ''"
:labelBtnAddExtra_OFF="noButtAdd ? `` : (ind >= 0) ? `Aggiungi ` + costanti.MAINCARDS[ind].strsingolo : ''"
labelBtnAddExtra=""
:extraparams="tools.extraparams(table, {myrecfiltertoggle})"
:prop_showMap="showMap"
@clickButtBar="clickButtBar"
>
</CGridTableRec>
</div>