45 lines
1.0 KiB
Vue
45 lines
1.0 KiB
Vue
<template>
|
|
<div>
|
|
<Title title="Historial de préstamos" :operador="operador" />
|
|
|
|
<TablaBuscadorPrestamo
|
|
:operador="operador"
|
|
columnaHoraRegreso
|
|
mostrarSelectModulo
|
|
mostrarInputFecha
|
|
mostrarInputSwitch
|
|
filaActivo
|
|
/>
|
|
|
|
<b-loading :can-cancel="false" v-model="isLoading" is-full-page />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import TablaBuscadorPrestamo from '@/components/tablaBuscador/TablaBuscadorPrestamo'
|
|
import jwt_decode from 'jwt-decode'
|
|
import Title from '@/components/layouts/Title'
|
|
|
|
export default {
|
|
components: { TablaBuscadorPrestamo, Title },
|
|
data() {
|
|
return { isLoading: false, operador: {} }
|
|
},
|
|
methods: {
|
|
updateIsLoading(valorBooleano) {
|
|
this.isLoading = valorBooleano
|
|
},
|
|
},
|
|
created() {
|
|
this.operador = jwt_decode(this.$getToken.tokenStr()).Operador
|
|
if (
|
|
this.operador.tipoUsuario.id_tipo_usuario != 2 &&
|
|
this.operador.tipoUsuario.id_tipo_usuario != 3
|
|
)
|
|
this.$router.push('/prestamo_devolucion')
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style></style>
|