Preguntamos si quiere hacer otra inscripcion
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-table class="box" :data="inscripciones">
|
||||
<b-table
|
||||
class="box"
|
||||
:data="inscripciones"
|
||||
:paginated="isPaginated"
|
||||
:per-page="perPage"
|
||||
:current-page.sync="currentPage"
|
||||
>
|
||||
<b-table-column
|
||||
field="numeroCuenta"
|
||||
label="Número de cuenta"
|
||||
@@ -38,10 +44,14 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
inscripciones: [],
|
||||
isPaginated: true,
|
||||
currentPage: 1,
|
||||
perPage: 5,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
todasInscripciones() {
|
||||
todasInscripciones(perPage) {
|
||||
console.log(this.currentPage)
|
||||
axios
|
||||
.get(`${process.env.api}/admin/todas_inscripciones`)
|
||||
.then((res) => {
|
||||
@@ -66,7 +76,7 @@ export default {
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.todasInscripciones()
|
||||
this.todasInscripciones(this.currentPage)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user