47 lines
912 B
Vue
47 lines
912 B
Vue
<template>
|
|
<div>
|
|
<Title
|
|
:title="
|
|
admin.tipoUsuario.id_tipo_usuario === 3
|
|
? 'Buscar Institución'
|
|
: '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
|
|
},
|
|
getLocalhostInfo() {
|
|
const objeto = JSON.parse(localStorage.getItem('usuario'))
|
|
this.admin = objeto.operador
|
|
},
|
|
},
|
|
created() {
|
|
this.getLocalhostInfo()
|
|
},
|
|
}
|
|
</script>
|