regresoAceptacion

This commit is contained in:
Andres2908
2021-01-04 17:31:37 -06:00
parent 55564b8e8b
commit e80eabb4ec
5 changed files with 29 additions and 43 deletions
+4 -33
View File
@@ -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);
},
};