added possibility to filter datas

This commit is contained in:
Matthis FAUVET 2024-06-21 19:33:23 +02:00
parent 19e6dbd052
commit 98d8cc7bfd

View File

@ -25,8 +25,6 @@
</div> </div>
<script> <script>
import "./model";
export default { export default {
async onBeforeMount(props){ async onBeforeMount(props){
let data = await props.items; let data = await props.items;
@ -67,7 +65,7 @@
this.update(); this.update();
}, },
async fetchData(){ async fetchData(){
let data = await this.execQuery(this.state.search, this.state.filter, this.state.id); let data = await execQuery(this.state.search, this.state.filter, this.state.id);
this.update({ this.update({
items: data.results items: data.results
}); });