Compare commits

..

No commits in common. "ef62875a5750eae327ebb0fd5da1663341bb95c2" and "336a09f2595e2fe713d1784cb6358807d2ee9b09" have entirely different histories.

View File

@ -12,36 +12,21 @@
@typing="getAsyncData"
@select="(option) => (selected = option)"
>
<!-- <template slot-scope="props">-->
<!-- <div class="media">-->
<!-- <div class="media-left"></div>-->
<!-- <div class="media-content">-->
<!-- {{ props.name }}-->
<!-- <br />-->
<!-- <small>-->
<!-- Released at {{ props.option.release_date }}, rated-->
<!-- <b>{{ props.option.vote_average }}</b>-->
<!-- </small>-->
<!-- </div>-->
<!-- </div>-->
<!-- </template>-->
</b-autocomplete>
</b-field>
Résultats possibles: {{ data.length }}
<div v-if="data.length">
<ul>
<li v-for="item in data" :key="item.properties.id">
<div class="columns">
<div class="column">
{{ item.properties.name }}
</div>
<div class="column">
{{ item.properties.context }}
<template slot-scope="props">
<div class="media">
<div class="media-left"></div>
<div class="media-content">
{{ props.option.title }}
<br />
<small>
Released at {{ props.option.release_date }}, rated
<b>{{ props.option.vote_average }}</b>
</small>
</div>
</div>
</li>
</ul>
</div>
</template>
</b-autocomplete>
</b-field>
</section>
<section class="map">
<br />
@ -135,9 +120,9 @@
></b-input>
</b-field>
<b-field>
<b-switch v-model="xml.tags.takeaway"> Vente à emporter</b-switch>
<b-switch v-model="xml.tags['parking:velo']"> Parking vélo</b-switch>
<b-switch v-model="xml.tags['webaccess']"> Accès Internet</b-switch>
<b-switch v-model="xml.tags.takeaway"> Vente à emporter </b-switch>
<b-switch v-model="xml.tags['parking:velo']"> Parking vélo </b-switch>
<b-switch v-model="xml.tags['webaccess']"> Accès Internet </b-switch>
<b-switch v-model="xml.tags['elecborne']">
borne de recharge électrique sur parking
</b-switch>
@ -185,11 +170,11 @@ export default {
}
this.isFetching = true
this.$axios
.get(`https://demo.addok.xyz/search?&type=poi&q=${name}`)
.get(`https://demo.addok.xyz/search/?q=${name}`)
.then(({ data }) => {
console.log('data', data)
this.data = []
data.features.forEach((item) => this.data.push(item))
data.results.forEach((item) => this.data.push(item))
})
.catch((error) => {
this.data = []