From d57b6e0314e1bf4e890bf1fa848e63d1e8f0b82f Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Wed, 3 Aug 2022 15:56:45 -0500 Subject: [PATCH] listo select marca --- components/crear/CrearCarrito.vue | 16 +++++++--------- components/selects/SelectMarca.vue | 16 ++++++++-------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/components/crear/CrearCarrito.vue b/components/crear/CrearCarrito.vue index 93d16a6..01e0be2 100644 --- a/components/crear/CrearCarrito.vue +++ b/components/crear/CrearCarrito.vue @@ -21,8 +21,8 @@ - - @@ -24,7 +24,7 @@ import axios from 'axios' export default { props: { deshabilitarOptVacia: { typeof: Boolean, required: false, default: true }, - marcaPadre: { type: Object, required: true, default: () => ({}) }, + idMarcaPadre: { type: Number, required: true, default: 0 }, columnSize: { typeof: String, required: false, default: '' }, tipo: { typeof: String, required: true, default: '' }, }, @@ -32,7 +32,7 @@ export default { return { marcas: [], isLoadingSelect: false, - marca: null, + idMarca: 0, } }, methods: { @@ -55,11 +55,11 @@ export default { }, }, watch: { - marca(marcaSeleccionada) { + idMarca(marcaSeleccionada) { if (marcaSeleccionada) this.$emit('marca-seleccionada', marcaSeleccionada) }, - marcaPadre(nuevaMarca) { - if (this.$funcionesGlobales.objIsEmpty(nuevaMarca)) this.marca = null + idMarcaPadre(nuevaMarca) { + this.idMarca = nuevaMarca }, }, created() {