47 lines
928 B
Vue
47 lines
928 B
Vue
<template>
|
|
<div>
|
|
<Title
|
|
:title="
|
|
admin.tipoUsuario.id_tipo_usuario === 2
|
|
? 'Configurar Instituciones'
|
|
: 'Configurar Institución'
|
|
"
|
|
:operador="admin"
|
|
/>
|
|
|
|
<Institucion :admin="admin" :updateIsLoading="updateIsLoading" />
|
|
|
|
<b-loading :is-full-page="true" v-model="isLoading" :can-cancel="false" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Title from '@/components/layouts/Title'
|
|
import Institucion from '@/components/admin/Institucion'
|
|
|
|
export default {
|
|
components: {
|
|
Title,
|
|
Institucion,
|
|
},
|
|
data() {
|
|
return {
|
|
admin: {},
|
|
isLoading: false,
|
|
}
|
|
},
|
|
methods: {
|
|
updateIsLoading(valorBooleano) {
|
|
this.isLoading = valorBooleano
|
|
},
|
|
localStorageData() {
|
|
const objeto = JSON.parse(localStorage.getItem('usuario'))
|
|
this.admin = objeto.operador
|
|
},
|
|
},
|
|
created() {
|
|
this.localStorageData()
|
|
},
|
|
}
|
|
</script>
|