started search router view
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<script>
|
||||
|
||||
import { mapActions, mapState } from 'pinia'
|
||||
import { SearchStore } from '@/stores/search'
|
||||
|
||||
export default {
|
||||
props: [],
|
||||
// data(){
|
||||
// return {
|
||||
// block: null
|
||||
// }
|
||||
// },
|
||||
computed: {
|
||||
// ...mapState(SearchStore,['loaded', 'statics_byid'])
|
||||
},
|
||||
created () {
|
||||
console.log("search created");
|
||||
},
|
||||
methods: {
|
||||
...mapActions(SearchStore,['loadResults']),
|
||||
onSubmitSearch (event) {
|
||||
console.log("onSubmitSearch", event);
|
||||
}
|
||||
},
|
||||
components: {
|
||||
// MapConcernements
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="search">
|
||||
<h2>Recherche</h2>
|
||||
<form action="" @submit.prevent="onSubmitSearch">
|
||||
<input type="text">
|
||||
<select name="content_type" id="content-type-select">
|
||||
<option value="all">type de contenu</option>
|
||||
<option value="concernement">Concernement</option>
|
||||
<option value="entite">Entite</option>
|
||||
</select>
|
||||
<select name="bourgeons" id="content-type-select">
|
||||
<option value="all">Bourgeon</option>
|
||||
<option value="bourgeon1">Bourgeon1</option>
|
||||
<option value="bourgeon2">Bourgeon2</option>
|
||||
</select>
|
||||
|
||||
<input type="submit" value="rechercher">
|
||||
</form>
|
||||
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user