hot fixes

This commit is contained in:
Lemuel Marquez
2021-01-06 17:43:26 -06:00
parent a1ed14be09
commit 0377f36314
16 changed files with 36 additions and 46 deletions
+3 -3
View File
@@ -40,8 +40,8 @@
<optgroup>
<option value=""> Status </option>
<option value="1">Pre-registro</option>
<option value="2">Registro</option>
<option value="3">Registro Validado</option>
<option value="2">Pre-registro Validado</option>
<option value="3">Registro</option>
<option value="4">Pre-Término</option>
<option value="5">Término</option>
<option value="6">Liberación</option>
@@ -264,7 +264,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
+2 -3
View File
@@ -115,8 +115,7 @@ export default {
.catch((err) => {
this.isLoading = false;
this.error(err.response.data.message);
console.log(err.response.data.message);
this.errorDoc();
// this.errorDoc();
});
},
rechazarCartaTermino() {
@@ -171,7 +170,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
+11 -11
View File
@@ -193,8 +193,8 @@ export default {
this.isLoading = true;
return axios
.get(
`${process.env.api}/servicio/admin?idServicio=${this.idServicio}` //,
// this.token
`${process.env.api}/servicio/admin?idServicio=${this.idServicio}`,
this.token
)
.then((res) => {
this.isLoading = false;
@@ -263,24 +263,24 @@ export default {
},
actualizar() {
this.isLoading = true;
const data = {};
const data = { idServicio: this.idServicio };
if (this.nuevo.direccion) {
data.direccionUpdate = this.nuevo.direccion;
data.direccion = this.nuevo.direccion;
}
if (this.nuevo.correo) {
data.correoUpdate = this.nuevo.correo;
data.correo = this.nuevo.correo;
}
if (this.nuevo.telefono) {
data.telefonoUpdate = this.nuevo.telefono;
data.telefono = this.nuevo.telefono;
}
if (this.nuevo.fechaInicioFinal) {
data.fechaInicioUpdate = this.nuevo.fechaInicioFinal;
data.fechaInicio = this.nuevo.fechaInicioFinal;
}
if (this.nuevo.fechaFinFinal) {
data.fechaFinUpdate = this.nuevo.fechaFinFinal;
data.fechaFin = this.nuevo.fechaFinFinal;
}
if (this.nuevo.fechaNacimientoFinal) {
data.fechaNacimientoUpdate = this.nuevo.fechaNacimientoFinal;
data.fechaNacimiento = this.nuevo.fechaNacimientoFinal;
}
const formData = new FormData();
if (this.cartaAceptacion) {
@@ -305,7 +305,7 @@ export default {
.then((res) => {
this.isLoading = false;
this.toast();
this.$router.push("/admin/servicio/modificar");
this.$router.push("/admin/servicio");
})
.catch((err) => {
this.isLoading = false;
@@ -336,7 +336,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
@@ -115,7 +115,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
@@ -133,7 +133,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
+1 -1
View File
@@ -300,7 +300,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
+4 -6
View File
@@ -49,7 +49,7 @@
>Enviar</b-button
>
</b-field>
<b-loading :is-full-page="true" v-model="isLoading" :can-cancel="true">
<b-loading :is-full-page="true" v-model="isLoading" :can-cancel="false">
</b-loading>
</div>
</template>
@@ -88,11 +88,9 @@ export default {
});
},
Enviar() {
const loadingComponent = this.$buefy.loading.open({
container: this.isFullPage ? null : this.$refs.element.$el,
});
const data = { idServicio: this.idServicio };
const formData = new FormData();
formData.append("data", JSON.stringify(data));
formData.append("cartaAceptacion", this.file);
this.isLoading = true;
@@ -120,9 +118,9 @@ export default {
})
.finally(() => {
this.isLoading = false;
this.$router.push("/responsable");
localStorage.removeItem("idServicio");
localStorage.removeItem("cartaAceptacion");
this.$router.push("/responsable");
});
},
getIdLocal() {
@@ -145,7 +143,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
+3 -8
View File
@@ -89,11 +89,9 @@ export default {
});
},
Enviar() {
const loadingComponent = this.$buefy.loading.open({
container: this.isFullPage ? null : this.$refs.element.$el,
});
const data = { idServicio: this.idServicio };
const formData = new FormData();
formData.append("data", JSON.stringify(data));
formData.append("cartaTermino", this.file);
this.isLoading = true;
@@ -105,9 +103,6 @@ export default {
},
})
.then((res) => {
console.log(res.data);
loadingComponent.close();
this.$buefy.dialog.alert({
title: "Success",
message: "Se enviaron los datos correctamente",
@@ -124,9 +119,9 @@ export default {
})
.finally(() => {
this.isLoading = false;
this.$router.push("/responsable");
localStorage.removeItem("idServicio");
localStorage.removeItem("cartaTermino");
this.$router.push("/responsable");
});
},
getIdLocal() {
@@ -149,7 +144,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
+2 -4
View File
@@ -218,16 +218,14 @@ export default {
ariaModal: true,
});
})
.catch((error) => {
this.error(error.response.data.message);
})
.finally(() => {
this.isLoading = false;
this.$router.push("/responsable");
localStorage.removeItem("idServicio");
localStorage.removeItem("cuestionario");
this.$router.push("/responsable");
});
},
getIdLocal() {
@@ -250,7 +248,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
+1 -1
View File
@@ -381,7 +381,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
+2 -2
View File
@@ -46,8 +46,8 @@ export default {
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {},
env: {
// api: "http://localhost:3000",
api: "https://venus.acatlan.unam.mx/ss-pruebas",
api: "http://localhost:3000",
// api: "https://venus.acatlan.unam.mx/ss-pruebas",
// api: "https://890af9d598a4.ngrok.io"
// api: 'https//venus.acatlan.unam.mx/pruebas_pcpuma'
},
@@ -99,7 +99,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
@@ -111,7 +111,7 @@ export default {
salir = true;
break;
case "jwt malformed":
msj = "tu token esta mal formado, inicia sesión de nuevo";
msj = "No se encontro tu token, inicia sesión de nuevo.";
salir = true;
break;
case "No hay token":
+1 -1
View File
@@ -1034,7 +1034,7 @@ export default {
salir=true
break;
case 'jwt malformed':
msj= "tu token esta mal formado, inicia sesión de nuevo"
msj= "No se encontro tu token, inicia sesión de nuevo."
salir=true
break;
case 'No hay token':
+1 -1
View File
@@ -357,7 +357,7 @@ export default {
salir=true
break;
case 'jwt malformed':
msj= "tu token esta mal formado, inicia sesión de nuevo"
msj= "No se encontro tu token, inicia sesión de nuevo."
salir=true
break;
case 'No hay token':
+1 -1
View File
@@ -348,7 +348,7 @@ export default {
salir=true
break;
case 'jwt malformed':
msj= "tu token esta mal formado, inicia sesión de nuevo"
msj= "No se encontro tu token, inicia sesión de nuevo."
salir=true
break;
case 'No hay token':