tag del carrito

This commit is contained in:
Andres2908 2022-07-06 17:55:49 -05:00
parent b760af97af
commit 05ab0f4b19

View File

@ -59,7 +59,9 @@
</b-table-column>
<b-table-column field="tipo" label="Tipo" v-slot="props" centered>
<span>{{ props.row.activo }}</span>
<span class="is-size-6 tag" :class="choooseTag(props.row.activo)">{{
props.row.activo ? 'Activo' : 'Inactivo'
}}</span>
</b-table-column>
<template #detail="props">
@ -96,6 +98,13 @@ export default {
}
},
methods: {
choooseTag(activo) {
const style = {
false: 'is-danger',
true: 'is-success',
}
return style[activo]
},
obtenerCarritos() {
let id_tipo_carrito = ''
if (this.idTipoCarrito != 0)