editar responsable
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
type="is-link"
|
||||
class="my-5"
|
||||
tag="router-link"
|
||||
to="/admin/responsables/responsable/modificar"
|
||||
to="/admin/responsables/responsable/editar"
|
||||
>
|
||||
Editar información
|
||||
</b-button>
|
||||
|
||||
+7
-10
@@ -7,8 +7,7 @@
|
||||
type="text"
|
||||
:placeholder="responsable.nombre"
|
||||
v-model="nuevo.nombre"
|
||||
>
|
||||
</b-input>
|
||||
/>
|
||||
</b-field>
|
||||
|
||||
<b-field label="Correo eletrónico">
|
||||
@@ -16,8 +15,7 @@
|
||||
type="email"
|
||||
:placeholder="responsable.usuario"
|
||||
v-model="nuevo.correo"
|
||||
>
|
||||
</b-input>
|
||||
/>
|
||||
</b-field>
|
||||
|
||||
<!-- <b-field label="Estado:">
|
||||
@@ -57,22 +55,22 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import validator from 'validator'
|
||||
import axios from 'axios'
|
||||
import validator from 'validator'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
responsable: {},
|
||||
idResponsable: null,
|
||||
nuevo: {},
|
||||
responsable: {},
|
||||
}
|
||||
},
|
||||
props: {
|
||||
admin: { type: Object, required: true },
|
||||
imprimirError: { type: Function, required: true },
|
||||
imprimirMensaje: { type: Function, required: true },
|
||||
imprimirWarning: { type: Function, required: true },
|
||||
imprimirError: { type: Function, required: true },
|
||||
updateIsLoading: { type: Function, required: true },
|
||||
},
|
||||
methods: {
|
||||
@@ -146,9 +144,8 @@ export default {
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.idResponsable = localStorage.getItem('idResponsable')
|
||||
if (this.admin.idTipoUsuario === 1 && this.idResponsable)
|
||||
this.obtenerResponsable()
|
||||
this.idResponsable = Number(localStorage.getItem('idResponsable'))
|
||||
if (this.admin.idTipoUsuario === 1) this.obtenerResponsable()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
+5
-5
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<section class="container px-2 pb-6">
|
||||
<BotonRegresar path="/admin/responsables/infoResponsable" />
|
||||
<BotonRegresar path="/admin/responsables/responsable" />
|
||||
|
||||
<UpdateResponsable
|
||||
<EditarResponsable
|
||||
:admin="admin"
|
||||
:imprimirError="imprimirError"
|
||||
:imprimirMensaje="imprimirMensaje"
|
||||
:imprimirWarning="imprimirWarning"
|
||||
:imprimirError="imprimirError"
|
||||
:updateIsLoading="updateIsLoading"
|
||||
/>
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
|
||||
<script>
|
||||
import BotonRegresar from '@/components/botonRegresar'
|
||||
import UpdateResponsable from '@/components/admin/responsables/responsable/modificar/updateResponsable'
|
||||
import EditarResponsable from '@/components/admin/responsables/responsable/editar/EditarResponsable'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
BotonRegresar,
|
||||
UpdateResponsable,
|
||||
EditarResponsable,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
Reference in New Issue
Block a user