diff --git a/components/admin/tableTickets.vue b/components/admin/tableTickets.vue
index dfb2a8b..19e0947 100644
--- a/components/admin/tableTickets.vue
+++ b/components/admin/tableTickets.vue
@@ -47,23 +47,11 @@
{{ props.row.monto }}
-
-
- {{ props.row.confirmacion }}
-
-
-
-
- {{ props.row.monto }}
-
-
- Ver ticket
@@ -75,6 +63,9 @@
import axios from 'axios'
export default {
+ props: {
+ updateIsLoading: { type: Function, require: true },
+ },
data() {
return {
token: '',
@@ -89,21 +80,19 @@ export default {
}
},
methods: {
- types(value) {
- return value === true ? 'is-success' : 'is-danger'
- },
todasInscripciones() {
+ this.updateIsLoading(true)
axios
.get(
`${process.env.api}/admin/todas_inscripciones?validacion=${this.validacion}&numeroCuenta=${this.numeroCuenta}`,
this.token
)
.then((res) => {
+ this.updateIsLoading(false)
this.inscripciones = res.data
})
.catch((err) => {
- console.log(err)
- // this.imprimirError(err.response.data)
+ this.updateIsLoading(false)
})
},
verTicket(value) {
diff --git a/components/registro/CapturaDatos.vue b/components/registro/CapturaDatos.vue
index 577b251..b3cde6a 100644
--- a/components/registro/CapturaDatos.vue
+++ b/components/registro/CapturaDatos.vue
@@ -32,8 +32,8 @@
-
-
+
+
@@ -163,6 +163,7 @@ export default {
if (this.error === false) {
formData.append('idUsuario', this.datosUsuario.idUsuario)
formData.append('folio', this.folio)
+ if (this.monto === '') this.monto = 0
formData.append('monto', this.monto)
formData.append('idArea', this.idArea)
formData.append('fechaTicket', this.fechaTicket)
diff --git a/pages/admin/index.vue b/pages/admin/index.vue
index b7169c0..ac97def 100644
--- a/pages/admin/index.vue
+++ b/pages/admin/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -11,14 +11,6 @@
-
-
-
- Selecciona el periodo para generar un archivo CSV y alimnetar la base
- del AT.
-
-
-
@@ -26,14 +18,12 @@