improved mapitem opening scaling regarding surounding contents
ex: double cartouche for superpositions
This commit is contained in:
@@ -21,6 +21,7 @@ export default {
|
||||
data(){
|
||||
return {
|
||||
entite: null,
|
||||
superposition_id: null,
|
||||
opened_besoin_id: null,
|
||||
arrowup_path: mdiArrowUp
|
||||
}
|
||||
@@ -30,15 +31,15 @@ export default {
|
||||
'opened_concernement',
|
||||
'concernements_loaded',
|
||||
'allSuperpositions_byid']),
|
||||
// ...mapState(CommonStore,['hover_elmt']),
|
||||
superposition_id () {
|
||||
console.log('superposition_id computed');
|
||||
if(this.$route.query.superposition_id){
|
||||
return this.$route.query.superposition_id
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
...mapState(CommonStore,['cartouch_width']),
|
||||
// superposition_id () {
|
||||
// console.log('superposition_id computed');
|
||||
// if(this.$route.query.superposition_id){
|
||||
// return this.$route.query.superposition_id
|
||||
// } else {
|
||||
// return null;
|
||||
// }
|
||||
// },
|
||||
superposition () {
|
||||
console.log('superposition computed', this.superposition_id);
|
||||
if(this.superposition_id){
|
||||
@@ -80,6 +81,18 @@ export default {
|
||||
console.log(`Concernement view created, id: ${this.cid}, eid: ${this.eid}, opened_concernement:${this.opened_concernement}`);
|
||||
console.log('Concernement view created, allSuperpositions_byid', this.allSuperpositions_byid);
|
||||
console.log("superposition", this.superposition);
|
||||
|
||||
if(this.map_mode === "superposition" && this.$route.query.superposition_id){
|
||||
this.superposition_id = this.$route.query.superposition_id;
|
||||
// as we have two content to show multiply the cartouch with by 2
|
||||
// necessary for mapitem opening scale and position
|
||||
this.setCartoucheWidth(2)
|
||||
}else{
|
||||
// as we have one content to show multiply the cartouch with by 1
|
||||
// necessary for mapitem opening scale and position
|
||||
this.setCartoucheWidth(1)
|
||||
}
|
||||
|
||||
// when we arrived directly to the url, load the entite
|
||||
// this.eid provided by route params
|
||||
if (!this.entity && this.eid) {
|
||||
@@ -114,6 +127,7 @@ export default {
|
||||
'setOpenedEntityId',
|
||||
'setMapMode',
|
||||
'resetConcernementOpened']),
|
||||
...mapActions(CommonStore,['setCartoucheWidth']),
|
||||
openEntity(){
|
||||
this.setOpenedEntityId(parseInt(this.eid))
|
||||
this.loadEntite()
|
||||
|
Reference in New Issue
Block a user