BIG UPDATE: can now change the entites position in front

This commit is contained in:
2024-04-09 15:56:23 +02:00
parent 052a37d714
commit 9aecfc62e9
8 changed files with 336 additions and 92 deletions

View File

@@ -55,7 +55,14 @@ export default {
this.parseMapitems();
},
deep: true
}
},
// concernementsByID:{
// handler (n, o) {
// console.log('App watch concernementsByID o, n', o, n);
// this.parseMapitems();
// },
// deep: true
// }
},
methods: {
...mapActions(ConcernementsStore,['loadConcernements']),
@@ -71,7 +78,9 @@ export default {
// create the main mapitem object
let mapitem = {
id: concernement.id,
concernement: concernement,
cid: concernement.id,
visible: concernement.visible,
// concernement: concernement,
// superposition_ids: [],
superposition_cluster_index: -1,
clone: false,
@@ -95,7 +104,8 @@ export default {
}else{
let mapitem_superposition = {
id: `${concernement.id}___${cluster_index}`,
concernement: concernement,
cid: concernement.id,
// concernement: concernement,
superposition_cluster_index: cluster_index,
clone: true
};
@@ -145,7 +155,7 @@ export default {
<template v-for="(mapitem,index) in mapitems">
<!-- && ((map_mode === 'superposition' && mapitem.clone) || !mapitem.clone) -->
<ConcernementMapItem
v-if="mapitem.concernement.visible"
v-if="mapitem.visible"
:key="mapitem.id"
:mapitem="mapitem"
/>