-
-
-
- No hemos encontrado resultados para su búsqueda... pero puede buscar
- otro o consultar estos productos.
-
-
-
+
Resultados de búsqueda: {{ count }} resultados
+
+
+
+ No encontramos "{{ queryText }}" en Consumo Cuidado.
+
+
+ Prueba un término más general, revisa la ortografía o
+ limpia los filtros.
+
+
@@ -112,6 +138,7 @@ export default {
data() {
return {
searchText: '',
+ queryText: '',
currentPage: 1,
perPage: 10,
filterTags: {
@@ -146,12 +173,16 @@ export default {
watch: {
'$route.query'(newValue) {
- //console.log('New Value:', newValue)
+ console.log('New Value:', newValue)
//console.log('Route changed:', this.$route.fullPath)
//console.log('Current params:', this.$route.query)
- this.updateData(newValue)
+ this.queryText = newValue.q || ''
+ if (newValue.q) {
+ this.updateData(newValue)
+ } else {
+ window.location.reload()
+ }
Object.assign(this.$data, this.$options.data())
-
}
},
@@ -328,11 +359,27 @@ export default {
})
}
},
+
+ clearFilters() {
+ this.currentFilters = null
+ this.appliedFilters = null
+ this.queryText = ''
+ this.$router.push({
+ name: 'busqueda'
+ })
+
+ },
},
}
diff --git a/pages/editar/productos/index.vue b/pages/editar/productos/index.vue
index e42681e..1f59fe0 100644
--- a/pages/editar/productos/index.vue
+++ b/pages/editar/productos/index.vue
@@ -5,7 +5,7 @@
Productos