diff --git a/components/selects/SelectStatus.vue b/components/selects/SelectStatus.vue index 289c138..eec9ff7 100644 --- a/components/selects/SelectStatus.vue +++ b/components/selects/SelectStatus.vue @@ -3,15 +3,19 @@ - - @@ -25,15 +29,14 @@ export default { props: { deshabilitarOptVacia: { typeof: Boolean, required: false, default: true }, idInstitucion: { type: Number, required: true, default: 0 }, - statusPadre: { type: Object, required: true, default: () => ({}) }, + idStatusPadre: { type: Number, required: true, default: 0 }, columnSize: { typeof: String, required: false, default: '' }, }, data: () => { return { catalogoStatus: [], isLoadingSelect: false, - status: {}, - objVacio: {}, + idStatus: 0, } }, methods: { @@ -53,16 +56,14 @@ export default { }, }, watch: { - status(statusSeleccionado) { + idStatus(statusSeleccionado) { this.$emit('status-seleccionado', statusSeleccionado) }, - statusPadre(nuevoStatus) { - if (this.$funcionesGlobales.objIsEmpty(nuevoStatus)) - this.status = this.objVacio + idStatusPadre(nuevoStatus) { + this.idStatus = nuevoStatus }, }, created() { - this.status = this.objVacio this.obtenerCatalogoStatus() }, }