- aggiornato l'Editor HTML

This commit is contained in:
Surya Paolo
2024-09-13 19:42:55 +02:00
parent 791e18f167
commit 0872afbb39
55 changed files with 1451 additions and 1137 deletions

View File

@@ -2469,14 +2469,14 @@ export default defineComponent({
const percrange_ne_lng = ne.lng - ((ne.lng - sw.lng) * percrange)
const percrange_sw_lat = sw.lat + ((ne.lat - sw.lat) * percrange)
const percrange_sw_lng = sw.lng + ((ne.lng - sw.lng) * percrange)
if (precboundariesMap.value) {
if (precboundariesMap.value.ne.lat > percrange_ne_lat && precboundariesMap.value.ne.lng > percrange_ne_lng &&
precboundariesMap.value.sw.lat < percrange_sw_lat && precboundariesMap.value.sw.lng < percrange_sw_lng) {
updatedata = false
// console.log('updateMapBoundaries', 'updatedata', updatedata)
} else {
updatedata = false
// console.log('updateMapBoundaries', 'updatedata', updatedata)
} else {
// updatedata = false
}
}
@@ -2488,12 +2488,12 @@ export default defineComponent({
if (autoaggiornaMappaSeMuovi.value) {
doSearch()
} else {
}
}
}
}
function updateMapZoomOut() {
@@ -2510,11 +2510,11 @@ export default defineComponent({
function getLabelAreaMap(conHtml: boolean = true) {
if (showMap.value) {
if (conHtml) {
return '<span class="hint_search">' + translate('grid.intheareamap') + '</span>'
return '<span class="hint_search">' + translate('grid.intheareamap') + '</span>'
} else {
return translate('grid.intheareamap')
}
}
return ''
@@ -2524,14 +2524,14 @@ export default defineComponent({
myMapComp.value.gotoCurrentLocation()
}
function showInMap(rec: any) {
visupagedialog.value = false
function showInMap(rec: any) {
visupagedialog.value = false
if (!showMap.value) {
showMapAtLeast1.value = true
showMap.value = true
showMap.value = true
}
if (myMapComp.value && mapInitialized.value) {
myMapComp.value.showInMap(rec)
}

View File

@@ -15,7 +15,6 @@
style="text-align: center"
>
<q-btn
v-if="mytable && visButtRow()"
rounded
dense
color="primary"
@@ -347,9 +346,7 @@
</div>
</div>
<div
v-if="showMapAtLeast1"
v-show="showMap">
<div v-if="showMapAtLeast1" v-show="showMap">
<CMapByTable
ref="myMapComp"
mytable=""
@@ -1152,16 +1149,16 @@
autofocus
type="search"
:hint="
(pagination.rowsNumber === 1 && prop_search)
pagination.rowsNumber === 1 && prop_search
? `${pagination.rowsNumber} ` +
t('grid.found') +
' ' +
getLabelAreaMap(false)
: ((pagination.rowsNumber > 1 && prop_search)
: pagination.rowsNumber > 1 && prop_search
? `${pagination.rowsNumber} ${labelElemFind}` +
' ' +
getLabelAreaMap(false)
: '')
: ''
"
debounce="500"
:error-message="noresultLabel"