peticion para la tabla del admin
This commit is contained in:
@@ -1,15 +1,26 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-table class="box">
|
||||
<b-table-column field="numeroCuenta" label="Número de cuenta" centered>
|
||||
<b-table class="box" :data="inscripciones">
|
||||
<b-table-column
|
||||
field="numeroCuenta"
|
||||
label="Número de cuenta"
|
||||
centered
|
||||
v-slot="props"
|
||||
>
|
||||
{{ props.row.Usuario.numeroCuenta }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="folio" label="Folio" centered> </b-table-column>
|
||||
|
||||
<b-table-column field="cantidad" label="Cantidad" centered>
|
||||
<b-table-column field="folio" label="Folio" centered v-slot="props"
|
||||
>{{ props.row.folio }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="fecha" label="Fecha" centered> </b-table-column>
|
||||
<b-table-column field="cantidad" label="Cantidad" centered v-slot="props">
|
||||
{{ props.row.monto }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="fecha" label="Fecha" centered v-slot="props">
|
||||
{{ props.row.fechaInscripcion }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="ticket" label="Ticket" centered>
|
||||
<b-button type="is-info">Ver ticket</b-button>
|
||||
@@ -18,6 +29,33 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script></script>
|
||||
<script>
|
||||
import axios from 'axios'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
inscripciones: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
todasInscripciones() {
|
||||
axios
|
||||
.get(`${process.env.api}/admin/todas_inscripciones`)
|
||||
.then((res) => {
|
||||
this.inscripciones = res.data
|
||||
console.log(res.data)
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
// this.imprimirError(err.response.data)
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.todasInscripciones()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user