66 lines
1.5 KiB
Vue
66 lines
1.5 KiB
Vue
<template>
|
|
<b-table
|
|
class="mb-6"
|
|
:data="data"
|
|
:loading="isLoadingTable"
|
|
hoverable
|
|
striped
|
|
>
|
|
<b-table-column field="dia" label="Día" centered v-slot="props">
|
|
<p>{{ props.row.dia.dia }}</p>
|
|
</b-table-column>
|
|
|
|
<b-table-column
|
|
field="hora_inicio"
|
|
label="Hora inicio del servicio"
|
|
centered
|
|
v-slot="props"
|
|
>
|
|
<p>{{ props.row.hora_inicio }}</p>
|
|
</b-table-column>
|
|
|
|
<b-table-column
|
|
field="hora_fin"
|
|
label="Hora fin del servicio"
|
|
centered
|
|
v-slot="props"
|
|
>
|
|
<p>{{ props.row.hora_fin }}</p>
|
|
</b-table-column>
|
|
|
|
<b-table-column field="editar" label="Editar horas" v-slot="props">
|
|
<b-button type="is-primary" @click="editarHora(props.row)">
|
|
<b-icon icon="pencil" size="is-small" />
|
|
</b-button>
|
|
</b-table-column>
|
|
|
|
<b-table-column field="activo" label="Status" v-slot="props" centered>
|
|
<BotonDesactivar
|
|
:activarDesactivar="activarDesactivar"
|
|
:data="props.row"
|
|
:msjWarning="`¿Estás segur@ de querer ${
|
|
row.activo || row.mostrar ? 'desactivar' : 'activar'
|
|
} este tipo de carrito?`"
|
|
/>
|
|
</b-table-column>
|
|
</b-table>
|
|
</template>
|
|
|
|
<script>
|
|
import BotonDesactivar from '@/components/botones/BotonDesactivar'
|
|
|
|
export default {
|
|
components: { BotonDesactivar },
|
|
props: {
|
|
data: { type: Array, required: true, default: () => [] },
|
|
isLoadingTable: { type: Boolean, required: true, default: false },
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
methods: {},
|
|
watch: {},
|
|
created() {},
|
|
}
|
|
</script>
|