pcpuma_unam_operador/pages/historial_prestamos/index.vue
2022-08-11 16:39:12 -05:00

36 lines
761 B
Vue

<template>
<div>
<Title title="Historial de préstamos" :operador="operador" />
<Historial :operador="operador" :updateIsLoading="updateIsLoading" />
<b-loading :is-full-page="true" v-model="isLoading" :can-cancel="false" />
</div>
</template>
<script>
import jwt_decode from 'jwt-decode'
import Historial from '@/components/operador/Historial'
import Title from '@/components/layouts/Title'
export default {
components: { Historial, Title },
data() {
return {
isLoading: false,
operador: {},
}
},
methods: {
updateIsLoading(valorBooleano) {
this.isLoading = valorBooleano
},
},
created() {
this.operador = JSON.parse(jwt_decode(this.$getToken.tokenStr()))
},
}
</script>
<style></style>