debat sur carte taille maillages

This commit is contained in:
Henintsoa 2021-12-12 21:49:06 +03:00
parent 85c001950a
commit 6a41c25c57
3 changed files with 6 additions and 6 deletions

View file

@ -21,7 +21,7 @@
<div id="mapContainer"> <div id="mapContainer">
<img <img
id="mapImg" id="mapImg"
:src="debate.document.mapLink" :src="debate?.document?.mapLink"
alt="map image" alt="map image"
/> />
<table id="myTable" v-if="debate"> <table id="myTable" v-if="debate">
@ -116,11 +116,11 @@ table {
border-collapse: collapse; border-collapse: collapse;
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%;
height: 100%; height: 100%;
} }
#mapContainer { #mapContainer {
position: relative; position: relative;
height: 50%;
} }
#mapImg { #mapImg {
width: 100%; width: 100%;
@ -134,8 +134,6 @@ table {
module.exports = { module.exports = {
data() { data() {
return { return {
//nbOfLines: 5,
//nbOfColumns: 9,
arrayData: false, arrayData: false,
// ******************************** // ********************************

View file

@ -60,7 +60,9 @@
query: categoryId ? {category: categoryId, overview: true} : {overview: true}, query: categoryId ? {category: categoryId, overview: true} : {overview: true},
onSuccess: debates => debates.forEach(d => { onSuccess: debates => debates.forEach(d => {
if (!this.categories.includes(d.document.category)) { if (!this.categories.includes(d.document.category)) {
this.categories.push(d.document.category) if(!(d.document.category.is("CARTO"))){
this.categories.push(d.document.category);
}
} }
}) })
}); });

View file

@ -15,7 +15,7 @@
class="col" class="col"
> >
<router-link <router-link
v-bind:to="'/debates?category=' + category.id" v-bind:to="`${category.is('CARTO') ? '/debats-sur-cartes?category=' + category.id : '/debates?category=' + category.id }`"
class="card hoverable center-align" class="card hoverable center-align"
> >
<div class="card-image light-color valign-wrapper"> <div class="card-image light-color valign-wrapper">