37 lines
864 B
Vue
37 lines
864 B
Vue
<template>
|
|
<div>
|
|
<Title title="Préstamo/Devolución" :operador="operador" />
|
|
|
|
<Prestamo :operador="operador" :updateIsLoading="updateIsLoading" />
|
|
|
|
<b-loading :can-cancel="false" v-model="isLoading" is-full-page />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import jwt_decode from 'jwt-decode'
|
|
import Prestamo from '@/components/operador/Prestamo'
|
|
import Title from '@/components/layouts/Title'
|
|
|
|
export default {
|
|
components: { Prestamo, Title },
|
|
data() {
|
|
return { isLoading: false, operador: {} }
|
|
},
|
|
methods: {
|
|
updateIsLoading(valorBooleano) {
|
|
this.isLoading = valorBooleano
|
|
},
|
|
},
|
|
created() {
|
|
const token = jwt_decode(this.$getToken.tokenStr())
|
|
|
|
this.operador = token.Operador
|
|
if (this.operador.tipoUsuario.id_tipo_usuario === 4)
|
|
this.operador.id_modulo = token.Modulo.id_modulo
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style></style>
|