- aggiornati gli argomenti in base a GM
This commit is contained in:
@@ -64,20 +64,24 @@ export default defineComponent({
|
||||
|
||||
// Funzione per disegnare il codice a barre
|
||||
const drawBarcode = () => {
|
||||
if (value.value) {
|
||||
JsBarcode("#C" + value.value, value.value, {
|
||||
format: format.value,
|
||||
width: widthlines.value,
|
||||
height: tools.convstrToNum(height.value),
|
||||
displayValue: true,
|
||||
lineColor: "#000",
|
||||
font: "monospace",
|
||||
margin: 0,
|
||||
textMargin: 0,
|
||||
marginTop: 0,
|
||||
fontSize: tools.convstrToNum(fontsize.value),
|
||||
textPosition: "bottom",
|
||||
});
|
||||
try {
|
||||
if (value.value && value.value.length > 2) {
|
||||
JsBarcode("#C" + value.value, value.value, {
|
||||
format: format.value,
|
||||
width: widthlines.value,
|
||||
height: tools.convstrToNum(height.value),
|
||||
displayValue: true,
|
||||
lineColor: "#000",
|
||||
font: "monospace",
|
||||
margin: 0,
|
||||
textMargin: 0,
|
||||
marginTop: 0,
|
||||
fontSize: tools.convstrToNum(fontsize.value),
|
||||
textPosition: "bottom",
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,13 +45,23 @@ export default defineComponent({
|
||||
heightcard: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '150px',
|
||||
default: '400px',
|
||||
},
|
||||
widthcard: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '300px',
|
||||
},
|
||||
heightimg: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '150px',
|
||||
},
|
||||
widthimg: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '300px',
|
||||
},
|
||||
},
|
||||
components: {
|
||||
CMyFieldDb, CGridTableRec, CTitlePage,
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
:prop_showMap="false"
|
||||
:heightcarousel="heightcarousel"
|
||||
@clickButtBar="clickButtBar"
|
||||
:opt="{rowclass: true, widthcard, heightcard}"
|
||||
:opt="{rowclass: true, widthcard, heightcard, widthimg, heightimg}"
|
||||
>
|
||||
</CGridTableRec>
|
||||
</div>
|
||||
|
||||
@@ -11,13 +11,15 @@ import { useUserStore } from '@store/UserStore'
|
||||
|
||||
import { CTitlePage } from '@/components/CTitlePage'
|
||||
import { CGridTableRec } from '@/components/CGridTableRec'
|
||||
import { IColGridTable, IMyBacheca, IMySkill, ISearchList, ISkill } from 'model'
|
||||
import { IColGridTable, IMyBacheca, IMySkill, ISearchList, ISkill, TipoVisu } from 'model'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
import { useQuasar } from 'quasar'
|
||||
|
||||
import { func } from '@src/store/Modules/fieldsTable'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CGridOriz',
|
||||
emits: ['clickButtBar'],
|
||||
@@ -46,6 +48,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: true,
|
||||
},
|
||||
prop_modif: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
finder: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
@@ -75,6 +82,7 @@ export default defineComponent({
|
||||
const searchList_Events = ref(<ISearchList[]>[])
|
||||
const searchList_Hosp = ref(<ISearchList[]>[])
|
||||
const searchList_Attivita = ref(<ISearchList[]>[])
|
||||
const searchList_Cataloghi = ref(<ISearchList[]>[])
|
||||
|
||||
const search = ref('')
|
||||
const myrecfiltertoggle = ref(tools.FILTER_ALL)
|
||||
@@ -84,6 +92,12 @@ export default defineComponent({
|
||||
const col_footer = ref('idCity')
|
||||
const col_tabfooter = ref('mycities')
|
||||
|
||||
|
||||
function gettablesList() {
|
||||
if (props.table === 'catalogs')
|
||||
return func.gettablesListByTable(props.table)
|
||||
}
|
||||
|
||||
const strextra = ref('')
|
||||
const myoptions = ref(<any>[])
|
||||
|
||||
@@ -181,8 +195,10 @@ export default defineComponent({
|
||||
return searchList_Hosp.value
|
||||
else if (props.table === shared_consts.TABLES_ATTIVITAS)
|
||||
return searchList_Attivita.value
|
||||
else if (props.table === shared_consts.TABLES_CATALOG)
|
||||
return searchList_Cataloghi.value
|
||||
|
||||
return searchList_Servizi.value
|
||||
return searchList_Cataloghi.value
|
||||
})
|
||||
|
||||
const showType = computed(() => {
|
||||
@@ -626,6 +642,24 @@ export default defineComponent({
|
||||
|
||||
]
|
||||
|
||||
searchList_Cataloghi.value = [
|
||||
{
|
||||
visible: true,
|
||||
label: 'Regione',
|
||||
table: 'regions',
|
||||
key: 'idReg',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
|
||||
keycookie: '_hosp',
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
filter: null,
|
||||
useinput: false,
|
||||
icon: 'fas fa-globe-europe'
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
searchList_Hosp.value = [
|
||||
{
|
||||
visible: true,
|
||||
@@ -1135,6 +1169,7 @@ export default defineComponent({
|
||||
mySortFieldsAvailable,
|
||||
clickButtBar,
|
||||
myGridRef,
|
||||
gettablesList,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
:finder="finder"
|
||||
labelElemFind="trovati"
|
||||
:choose_visutype="visuType"
|
||||
:butt_modif_new="false"
|
||||
:butt_modif_new="prop_modif"
|
||||
:noresultLabel="
|
||||
t('grid.nosearchfound') + ' ' + (showMap ? t('grid.intheareamap') : '')
|
||||
"
|
||||
@@ -35,6 +35,7 @@
|
||||
:prop_showMap="showMap"
|
||||
:heightcarousel="heightcarousel"
|
||||
@clickButtBar="clickButtBar"
|
||||
:tablesList="gettablesList()"
|
||||
>
|
||||
</CGridTableRec>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div v-if="tools.isDebugOn()"></div>
|
||||
<div :class="$q.screen.lt.sm ? `` : `q-pa-xs`" v-if="isfinishLoading">
|
||||
<q-toggle
|
||||
v-if="(tools.isManager() || tools.isEditor()) && !showMap && editOn"
|
||||
v-if="(tools.isManager() || tools.isEditor() || tools.isGrafico()) && !showMap && editOn"
|
||||
v-model="editOn"
|
||||
color="green"
|
||||
icon="fas fa-pencil-alt"
|
||||
@@ -678,7 +678,7 @@
|
||||
!(
|
||||
myvertical === costanti.VISUTABLE_SCHEDA_USER ||
|
||||
myvertical === 2 ||
|
||||
myvertical === costanti.VISUTABLE_SCHEDA_GROUP
|
||||
myvertical === costanti.VISUTABLE_SCHEDA_GROUP
|
||||
)
|
||||
"
|
||||
v-slot:header="props"
|
||||
|
||||
@@ -1283,6 +1283,7 @@
|
||||
:options="[
|
||||
{ label: 'Eventi', value: 'mybachecas' },
|
||||
{ label: 'Servizi', value: 'myskills' },
|
||||
{ label: 'Lista Cataloghi', value: 'catalogs' },
|
||||
]"
|
||||
label="Tabella"
|
||||
emit-value
|
||||
@@ -1299,6 +1300,7 @@
|
||||
{ label: 'Griglia', value: costanti.VISUTABLE_LISTA },
|
||||
{ label: 'Scheda User', value: costanti.VISUTABLE_SCHEDA_USER },
|
||||
{ label: 'User Info', value: costanti.SHOW_USERINFO },
|
||||
{ label: 'Lista Tabelle', value: costanti.VISUTABLE_TABLELIST },
|
||||
]"
|
||||
label="Visualizzazione"
|
||||
emit-value
|
||||
@@ -1325,6 +1327,12 @@
|
||||
label="Mostra Mappa"
|
||||
@update:model-value="modifElem"
|
||||
></q-toggle>
|
||||
<q-toggle
|
||||
v-model="myel.parambool4"
|
||||
color="positive"
|
||||
label="Bottone Modifica"
|
||||
@update:model-value="modifElem"
|
||||
></q-toggle>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="myel.type === shared_consts.ELEMTYPE.CATALOGLIST">
|
||||
|
||||
@@ -562,6 +562,7 @@
|
||||
:finder="myel.parambool2"
|
||||
:showMap="myel.parambool3"
|
||||
:heightcarousel="myel.heightcarousel"
|
||||
:prop_modif="myel.parambool4"
|
||||
></CGridOriz>
|
||||
</div>
|
||||
<div v-else-if="myel.type === shared_consts.ELEMTYPE.CATALOGLIST">
|
||||
@@ -570,8 +571,10 @@
|
||||
:prop_search="myel.parambool"
|
||||
:finder="myel.parambool2"
|
||||
:heightcarousel="myel.heightcarousel"
|
||||
:heightcard="myel.heightimg"
|
||||
:widthcard="myel.widthimg"
|
||||
:heightimg="myel.heightimg"
|
||||
:widthimg="myel.widthimg"
|
||||
:heightcard="myel.height"
|
||||
:widthcard="myel.width"
|
||||
></CCatalogList>
|
||||
</div>
|
||||
<div v-else-if="myel.type === shared_consts.ELEMTYPE.STATUSREG">
|
||||
|
||||
@@ -111,7 +111,8 @@ export default defineComponent({
|
||||
if (myrec.value.argomenti) {
|
||||
for (const arg of myrec.value.argomenti!) {
|
||||
const recargomento: ICatProd = products.catprods!.find((catprod: ICatProd) => catprod._id === arg)
|
||||
argomentistr.value += recargomento.name + ' '
|
||||
if (recargomento)
|
||||
argomentistr.value += recargomento.name + ' '
|
||||
}
|
||||
}
|
||||
editorestr.value = ''
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
<div class="q-pa-sm row items-start q-gutter-sm">
|
||||
<q-card
|
||||
v-if="myrec"
|
||||
flat
|
||||
bordered
|
||||
:style="`width: ` + opt.widthcard + `; `"
|
||||
:style="`width: ` + opt.widthcard + `; ` + (opt.heightcard ? `height: ` + opt.heightcard + `; ` : '')"
|
||||
>
|
||||
<!--<q-skeleton
|
||||
v-if="!myrec.foto_collana"
|
||||
@@ -13,9 +12,9 @@
|
||||
:height="opt.heightcard"
|
||||
/>-->
|
||||
<q-img
|
||||
:width="opt.widthcard"
|
||||
:width="opt.widthimg"
|
||||
@click="apriInfo = true"
|
||||
:height="opt.heightcard"
|
||||
:height="opt.heightimg"
|
||||
class="clickable-image"
|
||||
fit="cover"
|
||||
:src="
|
||||
@@ -189,7 +188,7 @@
|
||||
? myrec.referenti.join(', ')
|
||||
: '[Non Assegnato]'
|
||||
"
|
||||
:label="$t('cataloglist.argomenti') + `:`"
|
||||
:label="$t('cataloglist.referenti') + `:`"
|
||||
:color="
|
||||
myrec.referenti && myrec.referenti.length > 0
|
||||
? 'text-blue'
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<q-toggle :icon="'fas fa-moon'" v-model="dark"> </q-toggle>
|
||||
</div>
|
||||
<div
|
||||
v-if="tools.isLogged() && (isAdmin() || tools.isEditor())"
|
||||
v-if="tools.isLogged() && (isAdmin() || tools.isEditor()|| tools.isGrafico())"
|
||||
class="text-h7"
|
||||
>
|
||||
<q-toggle :icon="'fas fa-pencil-alt'" v-model="globalStore.editOn"> </q-toggle>
|
||||
|
||||
Reference in New Issue
Block a user