regresoAceptacion
This commit is contained in:
@@ -63,13 +63,13 @@
|
||||
<b-table
|
||||
:data="data"
|
||||
:loading="loading"
|
||||
hoverable
|
||||
striped
|
||||
paginated
|
||||
backend-pagination
|
||||
:total="total"
|
||||
:per-page="perPage"
|
||||
@page-change="onPageChange"
|
||||
hoverable
|
||||
striped
|
||||
>
|
||||
<b-table-column field="nombre" label="Nombre" v-slot="props" centered>
|
||||
<span @click="servicios(props.row.idServicio)">{{
|
||||
@@ -156,7 +156,6 @@ export default {
|
||||
this.page = page;
|
||||
this.obtenerDatos();
|
||||
console.log(this.page);
|
||||
console.log(this.idStatus);
|
||||
},
|
||||
types(idStatus) {
|
||||
if (idStatus === 1) {
|
||||
@@ -182,34 +181,6 @@ export default {
|
||||
return "is-danger";
|
||||
}
|
||||
},
|
||||
botonCarta(cartaTermino) {
|
||||
if (cartaTermino === 1) {
|
||||
return "is-success";
|
||||
} else {
|
||||
return "is-danger";
|
||||
}
|
||||
},
|
||||
botonCuestionario(cuestionario) {
|
||||
if (cuestionario === 1) {
|
||||
return "is-success";
|
||||
} else {
|
||||
return "is-danger";
|
||||
}
|
||||
},
|
||||
iconoCarta(cartaTermino) {
|
||||
if (cartaTermino === 1) {
|
||||
return "check";
|
||||
} else {
|
||||
return "close";
|
||||
}
|
||||
},
|
||||
iconoCuestionario(cuestionario) {
|
||||
if (cuestionario === 1) {
|
||||
return "check";
|
||||
} else {
|
||||
return "close";
|
||||
}
|
||||
},
|
||||
fecha(date) {
|
||||
const fecha = moment(date.substr(0, 10));
|
||||
return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`;
|
||||
@@ -258,12 +229,12 @@ export default {
|
||||
window.localStorage.setItem("idServicio", idServicio);
|
||||
this.$router.push("/admin/servicio");
|
||||
},
|
||||
insertIdLocal() {
|
||||
getIdLocal() {
|
||||
this.idUsuario = localStorage.getItem("idUsuario");
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.insertIdLocal();
|
||||
this.getIdLocal();
|
||||
this.obtenerDatos(0);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
<template>
|
||||
<div v-if="idServicio != null && cartaAceptacion != null" class="container">
|
||||
<b-button
|
||||
class="border-info my-5"
|
||||
type="is-info is-light"
|
||||
icon-left="arrow-left-box"
|
||||
tag="router-link"
|
||||
to="/responsable"
|
||||
>Regresar</b-button
|
||||
>
|
||||
|
||||
<h3 class="title is-4 mt-6">
|
||||
Carta de aceptación (en formato .PDF. No se aceptan fotos).
|
||||
</h3>
|
||||
@@ -29,7 +38,11 @@
|
||||
</b-field>
|
||||
|
||||
<b-field class="centro">
|
||||
<b-button :disabled="file == ''" class="border-info my-5" type="is-info"
|
||||
<b-button
|
||||
:disabled="file == ''"
|
||||
class="border-info my-5"
|
||||
type="is-info"
|
||||
@click="Enviar()"
|
||||
>Enviar</b-button
|
||||
>
|
||||
</b-field>
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
<template>
|
||||
<div v-if="idServicio != null && cartaTermino != null" class="container">
|
||||
<b-button
|
||||
class="border-info my-5"
|
||||
type="is-info is-light"
|
||||
icon-left="arrow-left-box"
|
||||
tag="router-link"
|
||||
to="/responsable"
|
||||
>Regresar</b-button
|
||||
>
|
||||
|
||||
<h3 class="title is-4 mt-6">
|
||||
Carta de termino (en formato .PDF. No se aceptan fotos).
|
||||
</h3>
|
||||
|
||||
@@ -160,7 +160,8 @@
|
||||
|
||||
<b-button
|
||||
class="border-info my-5"
|
||||
type="is-info"
|
||||
type="is-info is-light"
|
||||
icon-left="arrow-left-box"
|
||||
tag="router-link"
|
||||
to="/responsable"
|
||||
>Regresar</b-button
|
||||
|
||||
@@ -247,7 +247,6 @@ export default {
|
||||
onPageChange(page) {
|
||||
this.page = page;
|
||||
this.obtenerDatos();
|
||||
console.log(this.page);
|
||||
},
|
||||
types(idStatus) {
|
||||
if (idStatus === 1) {
|
||||
@@ -293,15 +292,11 @@ export default {
|
||||
iconoCarta(cartaTermino) {
|
||||
if (cartaTermino != null) {
|
||||
return "check";
|
||||
} else {
|
||||
return "close";
|
||||
}
|
||||
},
|
||||
iconoCuestionario(cuestionario) {
|
||||
if (cuestionario != null) {
|
||||
return "check";
|
||||
} else {
|
||||
return "close";
|
||||
}
|
||||
},
|
||||
fecha(date) {
|
||||
@@ -354,9 +349,6 @@ export default {
|
||||
window.localStorage.setItem("cartaAceptacion", idStatus);
|
||||
this.$router.push("/responsable/carta_aceptacion");
|
||||
},
|
||||
insertIdLocal() {
|
||||
this.idUsuario = localStorage.getItem("idUsuario");
|
||||
},
|
||||
getIdLocal() {
|
||||
this.idTipoUsuario = localStorage.getItem("idTipoUsuario");
|
||||
this.idUsuario = localStorage.getItem("idUsuario");
|
||||
|
||||
Reference in New Issue
Block a user