cambio de nombre de evento
This commit is contained in:
		
							parent
							
								
									c2ce43d295
								
							
						
					
					
						commit
						daa998c89e
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -29,12 +29,12 @@
 | 
				
			||||||
		      this.categorias = response.data;
 | 
							      this.categorias = response.data;
 | 
				
			||||||
		    });
 | 
							    });
 | 
				
			||||||
		    Event.$emit("migas-setear-como-inicio", this.$rootMiga);
 | 
							    Event.$emit("migas-setear-como-inicio", this.$rootMiga);
 | 
				
			||||||
			Event.$on("categoria-seleccionada", (_) => this.visible = false)
 | 
								Event.$on("filtrar-productos", (_) => this.visible = false)
 | 
				
			||||||
		  },
 | 
							  },
 | 
				
			||||||
		  methods: {
 | 
							  methods: {
 | 
				
			||||||
		    seleccionarCategoria(categoria) {
 | 
							    seleccionarCategoria(categoria) {
 | 
				
			||||||
		      this.visible = false;
 | 
							      this.visible = false;
 | 
				
			||||||
		      Event.$emit("categoria-seleccionada",'categoria',categoria);
 | 
							      Event.$emit("filtrar-productos",'categoria',categoria);
 | 
				
			||||||
		    }
 | 
							    }
 | 
				
			||||||
		  }
 | 
							  }
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -75,7 +75,7 @@
 | 
				
			||||||
          buscar() {
 | 
					          buscar() {
 | 
				
			||||||
            if (this.isActive) this.toggleState()
 | 
					            if (this.isActive) this.toggleState()
 | 
				
			||||||
            Event.$emit("migas-setear-como-inicio", this.$rootMiga)
 | 
					            Event.$emit("migas-setear-como-inicio", this.$rootMiga)
 | 
				
			||||||
            Event.$emit("categoria-seleccionada",'nombre',this.searchString)
 | 
					            Event.$emit("filtrar-productos",'nombre',this.searchString)
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }, 
 | 
					        }, 
 | 
				
			||||||
        mounted() {
 | 
					        mounted() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,7 +49,7 @@ export default {
 | 
				
			||||||
	    }
 | 
						    }
 | 
				
			||||||
	  },
 | 
						  },
 | 
				
			||||||
	  mounted() {
 | 
						  mounted() {
 | 
				
			||||||
	    Event.$on('categoria-seleccionada', (filtro,valor) =>  {
 | 
						    Event.$on('filtrar-productos', (filtro,valor) =>  {
 | 
				
			||||||
		  this.filtro = filtro
 | 
							  this.filtro = filtro
 | 
				
			||||||
		  this.valor = valor
 | 
							  this.valor = valor
 | 
				
			||||||
	      axios.get("/api/productos", {
 | 
						      axios.get("/api/productos", {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue