diff --git a/front/vue-project/src/components/Favors.vue b/front/vue-project/src/components/Favors.vue index 9a997e6..d77b440 100644 --- a/front/vue-project/src/components/Favors.vue +++ b/front/vue-project/src/components/Favors.vue @@ -43,17 +43,17 @@ export default { methods: { filter() { let urlParams = "" - if (document.getElementById('modelNameFilterInput').value != "") { + if (document.getElementById('favorNameFilterInput').value != "") { if (urlParams != "") { urlParams += "&"; } - urlParams += "modelName=" + this.modelName; + urlParams += "favorName=" + this.favorName; } - if (document.getElementById('serialNumberFilterInput').value != "") { + if (document.getElementById('priceFilterInput').value != "") { if (urlParams != "") { urlParams += "&"; } - urlParams += "serialNum=" + this.serialNumber; + urlParams += "price=" + this.price; } if (document.getElementById('componentFilterSelect').value != "") { if (urlParams != "") { @@ -75,8 +75,8 @@ export default { clearFilters() { this.loadItems(); this.id = null; - this.modelName = null; - this.serialNumber = null; + this.favorName = null; + this.price = null; this.componentId = null; this.orderId = null; }, @@ -106,17 +106,17 @@ export default {