pcpuma_unam_operador/pages/historial_prestamos/index.vue

36 lines
741 B
Vue
Raw Normal View History

2022-06-02 22:47:09 +00:00
<template>
<div>
2022-07-27 21:41:02 +00:00
<Title title="Historial de préstamos" :operador="operador" />
2022-07-11 18:09:00 +00:00
<Historial :operador="operador" :updateIsLoading="updateIsLoading" />
2022-08-29 02:56:55 +00:00
<b-loading :can-cancel="false" v-model="isLoading" is-full-page />
2022-06-02 22:47:09 +00:00
</div>
</template>
<script>
2022-08-11 21:39:12 +00:00
import jwt_decode from 'jwt-decode'
2022-07-11 18:09:00 +00:00
import Historial from '@/components/operador/Historial'
2022-06-02 22:47:09 +00:00
import Title from '@/components/layouts/Title'
export default {
2022-07-29 20:10:51 +00:00
components: { Historial, Title },
2022-06-02 22:47:09 +00:00
data() {
return {
2022-07-11 18:09:00 +00:00
isLoading: false,
2022-07-29 20:10:51 +00:00
operador: {},
2022-06-02 22:47:09 +00:00
}
},
methods: {
2022-07-11 18:09:00 +00:00
updateIsLoading(valorBooleano) {
this.isLoading = valorBooleano
},
2022-06-02 22:47:09 +00:00
},
created() {
2022-08-11 23:42:35 +00:00
this.operador = jwt_decode(this.$getToken.tokenStr())
2022-06-02 22:47:09 +00:00
},
}
</script>
2022-07-11 18:09:00 +00:00
<style></style>