- lista cataloghi: stato "active" (Pubblicati OnLine)

This commit is contained in:
Surya Paolo
2025-05-07 00:13:51 +02:00
parent 57cfa5858b
commit 2cc8fcda03
21 changed files with 400 additions and 347 deletions

View File

@@ -1064,7 +1064,7 @@ export default defineComponent({
filtersearch.push(objitem)
}
} else if (item.value > 0) {
} else if (item.value > 0 || (item.type === costanti.FieldType.boolean && item.value === true)) {
objitem[item.key] = item.value
filtersearch.push(objitem)

View File

@@ -1,12 +1,11 @@
<template>
<div v-if="tools.isDebugOn()"></div>
<div :class="$q.screen.lt.sm ? `` : `q-pa-xs`" v-if="isfinishLoading">
<div
:class="$q.screen.lt.sm ? `` : `q-pa-xs`"
v-if="isfinishLoading"
>
<q-toggle
v-if="
(tools.isManager() || tools.isEditor() || tools.isGrafico()) &&
!showMap &&
editOn
"
v-if="(tools.isManager() || tools.isEditor() || tools.isGrafico()) && !showMap && editOn"
v-model="editOn"
color="green"
icon="fas fa-pencil-alt"
@@ -32,18 +31,20 @@
v-if="butt_modif_new || mytitle"
:class="$q.screen.lt.sm ? `` : `q-ma-xs` + ` `"
>
<q-toolbar v-if="mytitle" class="bg-primary text-white">
<q-toolbar
v-if="mytitle"
class="bg-primary text-white"
>
<q-toolbar-title>{{ mytitle }}</q-toolbar-title>
</q-toolbar>
<q-space></q-space>
<div v-if="butt_modif_new" class="row justify-center">
<div
v-if="butt_modif_new"
class="row justify-center"
>
<q-btn
v-if="
mytable &&
!shared_consts.TABLES_FINDER.includes(mytable) &&
!showMap
"
v-if="mytable && !shared_consts.TABLES_FINDER.includes(mytable) && !showMap"
rounded
dense
size="sm"
@@ -72,7 +73,10 @@
</div>
</div>
<q-inner-loading :showing="spinner_visible">
<q-spinner-tail size="2em" color="primary" />
<q-spinner-tail
size="2em"
color="primary"
/>
</q-inner-loading>
<CTitleBanner
@@ -84,7 +88,10 @@
</CTitleBanner>
<div v-if="shared_consts.VERTIC_SHOW_GRID.includes(myvertical)">
<div v-if="(prop_search || canEdit) && finder" class="q-my-xs text-right">
<div
v-if="(prop_search || canEdit) && finder"
class="q-my-xs text-right"
>
<!--<q-btn
size="sm"
dense
@@ -100,8 +107,10 @@
v-show="searchList"
:class="$q.screen.lt.sm ? `` : `row` + ` text-blue `"
>
<span v-for="(item, index) in searchList" :key="index">
<span
v-for="(item, index) in searchList"
:key="index"
>
<div
class="text-center q-my-xs"
v-if="item.type === costanti.FieldType.separator"
@@ -110,17 +119,10 @@
size="sm"
color="positive"
rounded
:icon="
!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'
"
:label="
!showfilteradv
? $t('grid.advanced_filters')
: $t('grid.hide_advanced_filters')
"
:icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'"
:label="!showfilteradv ? $t('grid.advanced_filters') : $t('grid.hide_advanced_filters')"
@click="showfilteradv = !showfilteradv"
></q-btn>
</div>
<div
@@ -130,8 +132,7 @@
<CMySelect
:col="fieldsTable.getColByColumns(mycolumns, item.key)"
v-if="
(item.type === costanti.FieldType.select ||
item.type === costanti.FieldType.select_by_server) &&
(item.type === costanti.FieldType.select || item.type === costanti.FieldType.select_by_server) &&
lengthopt(item, false, false) > 1
"
:label="labelcombo(item)"
@@ -139,11 +140,7 @@
@update:value="searchval(item.value, item.table)"
:addall="item.addall"
:addnone="item.addnone"
:tablesel="
item.type === costanti.FieldType.select_by_server
? item.tablesel
: ''
"
:tablesel="item.type === costanti.FieldType.select_by_server ? item.tablesel : ''"
:pickup="item.type === costanti.FieldType.select_by_server"
label-color="primary"
class="combowidth"
@@ -154,22 +151,12 @@
:options="valoriopt(item, item.addall, item.addnone)"
:filter="item && item.filter ? item.filter : ''"
:filter_extra="item.filter_extra"
:useinput="
item.useinput &&
item.type !== costanti.FieldType.select_by_server
"
:useinput="item.useinput && item.type !== costanti.FieldType.select_by_server"
>
</CMySelect>
<!--<div v-if="item.type === costanti.FieldType.multiselect_by_server">
item: {{ item}}
</div>-->
<CMySelect
v-if="
item.type === costanti.FieldType.multiselect_by_server &&
lengthopt(item, false) > 1
"
v-if="item.type === costanti.FieldType.multiselect_by_server && lengthopt(item, false) > 1"
:col="fieldsTable.getColByColumns(mycolumns, item.key)"
:multiselect_by_server="true"
:label="labelcombo(item)"
@@ -214,7 +201,10 @@
class="combowidth"
:option-value="fieldsTable.getKeyByTable(item.table)"
>
<template v-if="item.icon" v-slot:prepend>
<template
v-if="item.icon"
v-slot:prepend
>
<q-icon :name="item.icon" />
</template>
<template
@@ -223,8 +213,7 @@
>
<div
v-if="
scope.opt[fieldsTable.getLabelByTable(item.table)] ||
(scope.opt && checkIfShowRec(scope.opt))
scope.opt[fieldsTable.getLabelByTable(item.table)] || (scope.opt && checkIfShowRec(scope.opt))
"
>
<q-chip
@@ -242,21 +231,14 @@
:icon="item.icon"
size="12px"
/>
{{
scope.opt[fieldsTable.getLabelByTable(item.table)] ||
scope.opt
}}
{{ scope.opt[fieldsTable.getLabelByTable(item.table)] || scope.opt }}
</q-chip>
</div>
</template>
<template
v-slot:option="{ itemProps, opt, selected, toggleOption }"
>
<template v-slot:option="{ itemProps, opt, selected, toggleOption }">
<q-item v-bind="itemProps">
<q-item-section>
<q-item-label>{{
opt[fieldsTable.getLabelByTable(item.table)]
}}</q-item-label>
<q-item-label>{{ opt[fieldsTable.getLabelByTable(item.table)] }}</q-item-label>
</q-item-section>
<q-item-section side>
<q-toggle
@@ -267,14 +249,27 @@
</q-item>
</template>
</q-select>
<q-toggle
v-else-if="item.type === costanti.FieldType.boolean"
:label="item.label"
v-model="item.value"
@update:model-value="refresh"
color="green"
/>
</div>
</span>
</div>
</div>
</q-slide-transition>
<div v-if="prop_search || canEdit" class="q-gutter-sm">
<div v-if="searchList && finder" class="row items-start">
<div
v-if="prop_search || canEdit"
class="q-gutter-sm"
>
<div
v-if="searchList && finder"
class="row items-start"
>
<q-btn
v-if="searchList && searchList.length > 0"
class="q-mx-xs"
@@ -299,9 +294,7 @@
debounce="500"
:hint="!hintinbtnsearch ? hint : ''"
:error-message="noresultLabel"
:error="
getNumRecFromQuery() === 0 && !startsearch && myfilter !== ''
"
:error="getNumRecFromQuery() === 0 && !startsearch && myfilter !== ''"
:label="hintinbtnsearch ? hint : $t('grid.search')"
@keyup.enter="doSearch"
@clear="
@@ -313,7 +306,10 @@
class="col q-mx-xs"
style="max-width: 400px"
>
<template v-if="!search" v-slot:prepend>
<template
v-if="!search"
v-slot:prepend
>
<q-icon name="search" />
</template>
</q-input>
@@ -345,13 +341,7 @@
<q-space></q-space>
<q-select
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
v-if="
mytable &&
pagination.rowsNumber > 0 &&
(prop_search || canEdit) &&
showCol &&
myvertical === 0
"
v-if="mytable && pagination.rowsNumber > 0 && (prop_search || canEdit) && showCol && myvertical === 0"
v-model="colVisib"
rounded
outlined
@@ -368,7 +358,10 @@
</q-select>
</div>
<div v-if="true" class="">
<div
v-if="true"
class=""
>
<div v-if="pagination.rowsNumber === 1 && prop_search">
{{ pagination.rowsNumber }} elemento trovato
<span v-html="getLabelAreaMap()"></span>
@@ -379,8 +372,15 @@
</div>
</div>
<div v-if="choose_visutype && $q.screen.gt.xs" class="">
<q-radio v-model="myvertical" :val="2" label="Lista" />
<div
v-if="choose_visutype && $q.screen.gt.xs"
class=""
>
<q-radio
v-model="myvertical"
:val="2"
label="Lista"
/>
<!--<q-radio v-if="mytable === toolsext.TAB" v-model="myvertical" :val="costanti.VISUTABLE_SCHEDA_GROUP"
label="Scheda"
@update:model-value="tools.setCookie('myv_' + prop_mytable, myvertical) "/>
@@ -396,7 +396,10 @@
</div>
</div>
<div v-if="showMapAtLeast1" v-show="showMap">
<div
v-if="showMapAtLeast1"
v-show="showMap"
>
<CMapByTable
ref="myMapComp"
mytable=""
@@ -495,11 +498,7 @@
<q-infinite-scroll
ref="myinfscroll"
v-else-if="
shared_consts.VERTIC_SHOW_GRID.includes(myvertical) &&
!loading &&
alreadymounting
"
v-else-if="shared_consts.VERTIC_SHOW_GRID.includes(myvertical) && !loading && alreadymounting"
:initial-index="0"
@load="onLoadScroll"
:offset="350"
@@ -512,9 +511,7 @@
:key="col.name"
class="text-italic text-weight-bold"
>
<span
v-if="col && showColCheck(col, tools.TIPOVIS_SHOW_RECORD, true)"
>
<span v-if="col && showColCheck(col, tools.TIPOVIS_SHOW_RECORD, true)">
{{ col.label }}
</span>
</div>
@@ -528,7 +525,10 @@
'justify-evenly': opt.rowclass,
}"
>
<div v-for="(row, indexrow) in serverData" :key="indexrow">
<div
v-for="(row, indexrow) in serverData"
:key="indexrow"
>
<div
v-if="
showType === costanti.SHOW_MYCARD ||
@@ -542,9 +542,7 @@
<div v-if="setShowMonth(row, indexrow)">
<div>
<div v-if="row.dateTimeStart">
<strong>{{
tools.getstrMonth(row.dateTimeStart)
}}</strong>
<strong>{{ tools.getstrMonth(row.dateTimeStart) }}</strong>
</div>
<div>
<q-separator />
@@ -589,10 +587,8 @@
</div>
<div
v-else-if="
(showType === costanti.SHOW_USERINFO &&
myvertical !== costanti.VISUTABLE_SCHEDA_USER) ||
(myvertical === 2 &&
shared_consts.TABLES_VISU_LISTA_USER.includes(tablesel))
(showType === costanti.SHOW_USERINFO && myvertical !== costanti.VISUTABLE_SCHEDA_USER) ||
(myvertical === 2 && shared_consts.TABLES_VISU_LISTA_USER.includes(tablesel))
"
class="fill-all-width"
>
@@ -605,11 +601,7 @@
:circuitname="circuitname"
:actionType="actionType"
:labelextra="col_title ? row[col_title] : ''"
:labelFooter="
col_footer
? tools.getLabelFooterByRow(row, col_footer, tablesel)
: ''
"
:labelFooter="col_footer ? tools.getLabelFooterByRow(row, col_footer, tablesel) : ''"
@showInnerDialog="showInnerDialog"
>
</CMyUser>
@@ -619,8 +611,7 @@
</div>
<div
v-else-if="
(showType === costanti.SHOW_GROUPINFO &&
myvertical !== costanti.VISUTABLE_SCHEDA_GROUP) ||
(showType === costanti.SHOW_GROUPINFO && myvertical !== costanti.VISUTABLE_SCHEDA_GROUP) ||
(myvertical === 2 && tablesel === 'mygroups') ||
myvertical === costanti.VISUTABLE_GROUP_CIRCUIT
"
@@ -636,32 +627,25 @@
/>
</div>
</div>
<div
v-else-if="
showType === costanti.SHOW_MOVEMENTS && tablesel === 'movements'
"
>
<div v-else-if="showType === costanti.SHOW_MOVEMENTS && tablesel === 'movements'">
<CSingleMovement :mov="row" />
</div>
</div>
</div>
<template v-slot:loading>
<div class="row justify-center q-my-md">
<q-spinner-dots color="primary" size="40px" />
<q-spinner-dots
color="primary"
size="40px"
/>
</div>
</template>
</q-infinite-scroll>
<q-table
v-else-if="
!shared_consts.VERTIC_SHOW_GRID.includes(myvertical) &&
!loading &&
serverData &&
mycolumns
"
v-else-if="!shared_consts.VERTIC_SHOW_GRID.includes(myvertical) && !loading && serverData && mycolumns"
:grid="shared_consts.VERTIC_SHOW_GRID.includes(myvertical)"
:grid-header="
shared_consts.VERTIC_SHOW_GRID.includes(myvertical) &&
shared_consts.TABLES_WITH_SORTING.includes(mytable)
shared_consts.VERTIC_SHOW_GRID.includes(myvertical) && shared_consts.TABLES_WITH_SORTING.includes(mytable)
"
flat
bordered
@@ -701,19 +685,23 @@
:props="props"
class="text-italic text-weight-bold"
>
<span
v-if="col && showColCheck(col, tools.TIPOVIS_SHOW_RECORD, true)"
>
<span v-if="col && showColCheck(col, tools.TIPOVIS_SHOW_RECORD, true)">
{{ col.label }}
</span>
</q-th>
</q-tr>
</template>
<template v-else v-slot:header="props">
<template
v-else
v-slot:header="props"
>
<q-tr :props="props">
<q-th> </q-th>
<span v-for="col in props.cols" :key="col.name">
<span
v-for="col in props.cols"
:key="col.name"
>
<q-th
v-if="col.sortable"
:key="col.name"
@@ -732,7 +720,7 @@
v-slot:top-right
v-if="tablesList || arrfilters || enableExport"
>
<span style="display: none">{{ (actual = null) }}</span>
<span style="display: none">{{ actual = null }}</span>
<q-select
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
@@ -781,7 +769,10 @@
v-if="searchList"
:class="$q.screen.lt.sm ? `` : `row` + ` text-blue `"
>
<span v-for="(item, index) in searchList" :key="index">
<span
v-for="(item, index) in searchList"
:key="index"
>
<div
class="text-center q-my-xs"
v-if="item.type === costanti.FieldType.separator"
@@ -789,35 +780,22 @@
<q-btn
size="sm"
color="positive"
:icon="
!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'
"
:label="
!showfilteradv
? $t('grid.advanced_filters')
: $t('grid.hide_advanced_filters')
"
:icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'"
:label="!showfilteradv ? $t('grid.advanced_filters') : $t('grid.hide_advanced_filters')"
@click="showfilteradv = !showfilteradv"
></q-btn>
</div>
<CMySelect
:col="fieldsTable.getColByColumns(mycolumns, item.key)"
v-if="
item.type === costanti.FieldType.select ||
item.type === costanti.FieldType.select_by_server
"
v-if="item.type === costanti.FieldType.select || item.type === costanti.FieldType.select_by_server"
v-show="item.visible"
:label="labelcombo(item)"
v-model:value="item.value"
@update:value="searchval(item.value, item.table)"
:addall="item.addall"
:addnone="item.addnone"
:tablesel="
item.type === costanti.FieldType.select_by_server
? item.tablesel
: ''
"
:tablesel="item.type === costanti.FieldType.select_by_server ? item.tablesel : ''"
:pickup="item.type === costanti.FieldType.select_by_server"
label-color="primary"
class="combowidth"
@@ -828,10 +806,7 @@
:options="valoriopt(item, item.addall, item.addnone)"
:filter="item.filter"
:filter_extra="item.filter_extra"
:useinput="
item.useinput &&
item.type !== costanti.FieldType.select_by_server
"
:useinput="item.useinput && item.type !== costanti.FieldType.select_by_server"
>
</CMySelect>
@@ -887,7 +862,10 @@
class="combowidth"
:option-value="fieldsTable.getKeyByTable(item.table)"
>
<template v-if="item.icon" v-slot:prepend>
<template
v-if="item.icon"
v-slot:prepend
>
<q-icon :name="item.icon" />
</template>
<template
@@ -896,8 +874,7 @@
>
<div
v-if="
scope.opt[fieldsTable.getLabelByTable(item.table)] ||
(scope.opt && checkIfShowRec(scope.opt))
scope.opt[fieldsTable.getLabelByTable(item.table)] || (scope.opt && checkIfShowRec(scope.opt))
"
>
<q-chip
@@ -915,21 +892,14 @@
:icon="item.icon"
size="12px"
/>
{{
scope.opt[fieldsTable.getLabelByTable(item.table)] ||
scope.opt
}}
{{ scope.opt[fieldsTable.getLabelByTable(item.table)] || scope.opt }}
</q-chip>
</div>
</template>
<template
v-slot:option="{ itemProps, opt, selected, toggleOption }"
>
<template v-slot:option="{ itemProps, opt, selected, toggleOption }">
<q-item v-bind="itemProps">
<q-item-section>
<q-item-label>{{
opt[fieldsTable.getLabelByTable(item.table)]
}}</q-item-label>
<q-item-label>{{ opt[fieldsTable.getLabelByTable(item.table)] }}</q-item-label>
</q-item-section>
<q-item-section side>
<q-toggle
@@ -978,13 +948,7 @@
<q-space></q-space>
<q-select
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
v-if="
mytable &&
pagination.rowsNumber > 0 &&
(prop_search || canEdit) &&
showCol &&
myvertical === 0
"
v-if="mytable && pagination.rowsNumber > 0 && (prop_search || canEdit) && showCol && myvertical === 0"
v-model="colVisib"
rounded
outlined
@@ -1001,15 +965,18 @@
</q-select>
</div>
<div v-if="pagination.rowsNumber === 1 && prop_search">
{{ pagination.rowsNumber }} elemento trovato
</div>
<div v-if="pagination.rowsNumber > 1 && prop_search">
{{ pagination.rowsNumber }} elementi trovati
</div>
<div v-if="pagination.rowsNumber === 1 && prop_search">{{ pagination.rowsNumber }} elemento trovato</div>
<div v-if="pagination.rowsNumber > 1 && prop_search">{{ pagination.rowsNumber }} elementi trovati</div>
<div v-if="choose_visutype && $q.screen.gt.xs" class="">
<q-radio v-model="myvertical" :val="2" label="Lista" />
<div
v-if="choose_visutype && $q.screen.gt.xs"
class=""
>
<q-radio
v-model="myvertical"
:val="2"
label="Lista"
/>
<!--<q-radio v-if="mytable === toolsext.TAB" v-model="myvertical" :val="costanti.VISUTABLE_SCHEDA_GROUP"
label="Scheda"
@update:model-value="tools.setCookie('myv_' + prop_mytable, myvertical) "/>
@@ -1026,30 +993,33 @@
</template>
<template v-slot:body="props">
<q-tr :props="props" class="trclass">
<q-td auto-width class="tdclass">
<q-checkbox dense v-model="props.selected"></q-checkbox>
<q-tr
:props="props"
class="trclass"
>
<q-td
auto-width
class="tdclass"
>
<q-checkbox
dense
v-model="props.selected"
></q-checkbox>
</q-td>
<q-td v-for="col in mycolumns" :key="col.name" :props="props">
<q-td
v-for="col in mycolumns"
:key="col.name"
:props="props"
>
<div
v-if="
showColCheck(
col,
tools.TIPOVIS_SHOW_RECORD,
true,
1,
props.row
)
"
v-if="showColCheck(col, tools.TIPOVIS_SHOW_RECORD, true, 1, props.row)"
class="tdclass"
>
<div :class="getclrow(props.row)">
<CMyPopupEdit
:table="mytable"
:canEdit="canEdit"
:canModify="
tools.canModifyThisRec(props.row, tablesel) || editOn
"
:canModify="tools.canModifyThisRec(props.row, tablesel) || editOn"
:disable="disabilita()"
:mycol="col"
v-model:row="props.row"
@@ -1065,8 +1035,15 @@
</div>
</div>
</q-td>
<q-td v-for="col in mycolumns" :key="col.name" :props="props">
<div v-if="colExtra.includes(col.name)" class="tdclass">
<q-td
v-for="col in mycolumns"
:key="col.name"
:props="props"
>
<div
v-if="colExtra.includes(col.name)"
class="tdclass"
>
<div v-if="col.action && visCol(col)">
<q-btn
flat
@@ -1089,20 +1066,11 @@
:style="props.selected ? 'transform: scale(0.95);' : ''"
>
<q-card
:class="
props.selected
? 'bg-grey-2 my-card-withshadow no-padding'
: 'my-card-withshadow no-padding'
"
style="
background: radial-gradient(circle, #ffffff 0%, #bbddff 100%);
"
:class="props.selected ? 'bg-grey-2 my-card-withshadow no-padding' : 'my-card-withshadow no-padding'"
style="background: radial-gradient(circle, #ffffff 0%, #bbddff 100%)"
>
<q-bar
v-if="
!visuinpage &&
(tools.canModifyThisRec(props.row, tablesel) || editOn)
"
v-if="!visuinpage && (tools.canModifyThisRec(props.row, tablesel) || editOn)"
dense
class="bg-primary text-white full-height"
>
@@ -1110,13 +1078,7 @@
v-if="props.row['adType']"
:color="fieldsTable.getColByAdType(props.row['adType'])"
>
{{
fieldsTable.getValByTabAndId(
tablesel,
"adType",
props.row["adType"]
)
}}
{{ fieldsTable.getValByTabAndId(tablesel, 'adType', props.row['adType']) }}
<!--<q-icon
:name="fieldsTable.getIconByAdType(props.row['adType'])"
color="white"
@@ -1136,9 +1098,7 @@
@click="
clickFunz(
props.row,
prop_mycolumns.find(
(rec) => rec.action === lists.MenuAction.CAN_EDIT_TABLE
)
prop_mycolumns.find((rec) => rec.action === lists.MenuAction.CAN_EDIT_TABLE)
)
"
></q-btn>
@@ -1152,9 +1112,7 @@
@click="
clickFunz(
props.row,
prop_mycolumns.find(
(rec) => rec.action === lists.MenuAction.DELETE_RECTABLE
)
prop_mycolumns.find((rec) => rec.action === lists.MenuAction.DELETE_RECTABLE)
)
"
></q-btn>
@@ -1167,7 +1125,10 @@
<q-card-section class="">
<q-list dense>
<div v-for="col in mycolumns" :key="col.name">
<div
v-for="col in mycolumns"
:key="col.name"
>
<q-item
v-if="
showColCheck(
@@ -1180,16 +1141,20 @@
:class="clByCol(col)"
class="riduci_pad"
>
<q-item-section avatar v-if="col.icon">
<q-item-section
avatar
v-if="col.icon"
>
<q-item-label class="q-table__col">
<q-icon :name="col.icon"></q-icon>
</q-item-label>
</q-item-section>
<q-item-section avatar v-if="visuIntestazCol(col)">
<q-item-label class="q-table__col">{{
col.label
}}</q-item-label>
<q-item-section
avatar
v-if="visuIntestazCol(col)"
>
<q-item-label class="q-table__col">{{ col.label }}</q-item-label>
</q-item-section>
<q-item-section>
<div class="tdclass">
@@ -1197,10 +1162,7 @@
<CMyPopupEdit
:table="mytable"
:canEdit="canEdit"
:canModify="
tools.canModifyThisRec(props.row, tablesel) ||
editOn
"
:canModify="tools.canModifyThisRec(props.row, tablesel) || editOn"
:disable="disabilita()"
:mycol="col"
v-model:row="props.row"
@@ -1257,15 +1219,10 @@
type="search"
:hint="
pagination.rowsNumber === 1 && prop_search
? `${pagination.rowsNumber} ` +
t('grid.found') +
' ' +
getLabelAreaMap(false)
? `${pagination.rowsNumber} ` + t('grid.found') + ' ' + getLabelAreaMap(false)
: pagination.rowsNumber > 1 && prop_search
? `${pagination.rowsNumber} ${labelElemFind}` +
' ' +
getLabelAreaMap(false)
: ''
? `${pagination.rowsNumber} ${labelElemFind}` + ' ' + getLabelAreaMap(false)
: ''
"
debounce="500"
:error-message="noresultLabel"
@@ -1274,8 +1231,15 @@
v-on:keyup.enter="doSearch"
>
<template v-slot:prepend>
<q-spinner-oval v-if="startsearch" color="primary" size="1em" />
<q-icon v-else name="search" />
<q-spinner-oval
v-if="startsearch"
color="primary"
size="1em"
/>
<q-icon
v-else
name="search"
/>
</template>
<template v-slot:append>
<q-btn
@@ -1322,10 +1286,7 @@
@hide="hidewindow"
:maximized="$q.screen.lt.sm"
:persistent="false"
:class="
'dialog_annunci ' +
($q.screen.lt.sm ? 'bottom-dialog' : ' right-align-dialog')
"
:class="'dialog_annunci ' + ($q.screen.lt.sm ? 'bottom-dialog' : ' right-align-dialog')"
>
<CMyCardGrpPopup
v-if="mytable === shared_consts.TABLES_MYGROUPS"
@@ -1354,7 +1315,11 @@
@showInMap="showInMap"
>
</CMyCardService>
<CMyCardPopup v-else :table="mytable" :prop_myrec="myrecdialog">
<CMyCardPopup
v-else
:table="mytable"
:prop_myrec="myrecdialog"
>
</CMyCardPopup>
</q-dialog>
@@ -1376,7 +1341,10 @@
dense
>
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">
<div
class="self-center full-width no-outline"
tabindex="0"
>
{{ mycol.label }}
</div>
</template>
@@ -1389,9 +1357,7 @@
<CMyPopupEdit
:table="mytable"
:canEdit="true"
:canModify="
tools.canModifyThisRec(rowclicksel, tablesel) || editOn
"
:canModify="tools.canModifyThisRec(rowclicksel, tablesel) || editOn"
:disable="disabilita()"
:isInModif="mycol.isInModif"
view="field"
@@ -1422,10 +1388,19 @@
:maximized="$q.screen.lt.sm"
>
<q-card class="dialog_card">
<q-bar dense class="bg-primary text-white">
{{ t("dialog.insert") }} {{ mytitlenew }}:
<q-bar
dense
class="bg-primary text-white"
>
{{ t('dialog.insert') }} {{ mytitlenew }}:
<q-space />
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
<q-btn
flat
round
color="white"
icon="close"
v-close-popup
></q-btn>
</q-bar>
<q-card-section class="inset-shadow">
<div
@@ -1443,27 +1418,13 @@
dense
rounded
:icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'"
:label="
showfilteradv
? $t('grid.hide_campi_avanzati')
: $t('grid.show_campi_avanzati')
"
:label="showfilteradv ? $t('grid.hide_campi_avanzati') : $t('grid.show_campi_avanzati')"
:class="{ 'q-btn--active': showfilteradv }"
:aria-expanded="showfilteradv.toString()"
@click="showfilteradv = !showfilteradv"
></q-btn>
</div>
<div
v-if="
showColCheck(
col,
tools.TIPOVIS_NEW_RECORD,
true,
0,
newRecord
) && col.foredit
"
>
<div v-if="showColCheck(col, tools.TIPOVIS_NEW_RECORD, true, 0, newRecord) && col.foredit">
<div class="">
<CMyPopupEdit
:table="mytable"
@@ -1512,13 +1473,25 @@
:maximized="$q.screen.lt.sm"
>
<q-card class="dialog_card">
<q-bar dense class="bg-primary text-white">
<q-bar
dense
class="bg-primary text-white"
>
<span class="ellipsis">{{ recModif[col_title] }}</span>
<q-space />
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
<q-btn
flat
round
color="white"
icon="close"
v-close-popup
></q-btn>
</q-bar>
<q-card-section class="inset-shadow">
<div v-for="col in mycolumns" :key="col.name">
<div
v-for="col in mycolumns"
:key="col.name"
>
<div
class="text-center q-my-xs"
v-if="col.fieldtype === costanti.FieldType.separator"
@@ -1528,28 +1501,19 @@
size="md"
dense
:icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'"
:label="
!showfilteradv
? $t('grid.show_campi_avanzati')
: $t('grid.hide_campi_avanzati')
"
:label="!showfilteradv ? $t('grid.show_campi_avanzati') : $t('grid.hide_campi_avanzati')"
@click="showfilteradv = !showfilteradv"
></q-btn>
</div>
<div
v-else-if="
showColCheck(col, tools.TIPOVIS_EDIT_RECORD, false) &&
col.foredit
"
v-else-if="showColCheck(col, tools.TIPOVIS_EDIT_RECORD, false) && col.foredit"
class="tdclass"
>
<div>
<CMyPopupEdit
:table="mytable"
:canEdit="true"
:canModify="
tools.canModifyThisRec(recModif, tablesel) || editOn
"
:canModify="tools.canModifyThisRec(recModif, tablesel) || editOn"
:tablesel="col.tablesel"
:mycol="col"
:isInModif="true"
@@ -1586,11 +1550,20 @@
</q-dialog>
<span v-if="!hidetitleIfEmpty"> <br /></span>
</div>
<q-dialog v-model="showNotification" :maximized="$q.screen.lt.sm">
<q-dialog
v-model="showNotification"
:maximized="$q.screen.lt.sm"
>
<q-card class="dialog_card">
<q-toolbar class="bg-primary text-white">
<q-toolbar-title> Notifiche </q-toolbar-title>
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
<q-btn
flat
round
color="white"
icon="close"
v-close-popup
></q-btn>
</q-toolbar>
<q-card-section class="inset-shadow">
@@ -1600,9 +1573,8 @@
</q-dialog>
</template>
<script lang="ts" src="./CGridTableRec.ts">
</script>
<script lang="ts" src="./CGridTableRec.ts"></script>
<style lang="scss">
@import "./CGridTableRec.scss";
@import './CGridTableRec.scss';
</style>