62 lines
1.3 KiB
Vue
62 lines
1.3 KiB
Vue
<template>
|
|
<b-table
|
|
class="pb-6"
|
|
:data="infracciones"
|
|
:loading="isLoadingTable"
|
|
hoverable
|
|
striped
|
|
>
|
|
<b-table-column
|
|
field="infraccion"
|
|
label="Infracción"
|
|
v-slot="props"
|
|
centered
|
|
>
|
|
<p>{{ props.row.infraccion.infraccion }}</p>
|
|
</b-table-column>
|
|
|
|
<b-table-column
|
|
field="diasMulta"
|
|
label="Días de multa"
|
|
v-slot="props"
|
|
centered
|
|
>
|
|
<p>{{ props.row.dias_multa }}</p>
|
|
</b-table-column>
|
|
|
|
<b-table-column
|
|
field="editar"
|
|
label="Editar"
|
|
width="300"
|
|
v-slot="props"
|
|
centered
|
|
>
|
|
<EditarInfraccion
|
|
:institucionInfraccion="props.row"
|
|
:obtenerInfracciones="obtenerInfracciones"
|
|
:updateIsLoading="updateIsLoading"
|
|
/>
|
|
</b-table-column>
|
|
</b-table>
|
|
</template>
|
|
|
|
<script>
|
|
import EditarInfraccion from '@/components/tablas/EditarInfraccion'
|
|
|
|
export default {
|
|
components: { EditarInfraccion },
|
|
props: {
|
|
infracciones: { type: Array, required: true, default: () => [] },
|
|
isLoadingTable: { type: Boolean, required: true, default: false },
|
|
obtenerInfracciones: { type: Function, required: true, default: () => {} },
|
|
updateIsLoading: { type: Function, required: true, default: () => {} },
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
methods: {},
|
|
watch: {},
|
|
created() {},
|
|
}
|
|
</script>
|