mouse over mapPopUp on besoin & reponse

This commit is contained in:
2023-05-22 18:15:04 +02:00
parent 8806507ecb
commit 302252a1c1
3 changed files with 79 additions and 50 deletions

View File

@@ -20,8 +20,12 @@ export default {
// console.log(`popup created type: ${this.infos.type}`);
if (this.infos.type === 'concernement') {
this.concernement = this.concernementsByID[this.infos.id];
} else {
} else if(this.infos.type === 'entite') {
this.entite = this.allEntitesById[this.infos.id];
} else if (this.infos.type === 'besoin') {
} else if (this.infos.type === 'reponse') {
}
},
mounted () {
@@ -39,9 +43,13 @@ export default {
handler (n, o){
if (n.type === 'concernement') {
this.concernement = this.concernementsByID[n.id];
} else {
this.entite = this.allEntitesById[n.id];
}
} else if(n.type === 'entite') {
this.entite = this.allEntitesById[this.infos.id];
} else if (n.type === 'besoin') {
} else if (n.type === 'reponse') {
}
},
deep: true
},
@@ -67,6 +75,12 @@ export default {
<section v-if="infos.type === 'entite'" class="entite-map-popup">
<h1>{{ entite.entite.title }}</h1>
</section>
<section v-if="infos.type === 'besoin'" class="besoin-map-popup">
<h1>Besoin</h1>
</section>
<section v-if="infos.type === 'reponse'" class="reponse-map-popup">
<h1>Réponse</h1>
</section>
</div>
</template>