diff --git a/components/responsable/inputTable.vue b/components/responsable/inputTable.vue
index 6a3bca3..c5be269 100644
--- a/components/responsable/inputTable.vue
+++ b/components/responsable/inputTable.vue
@@ -64,71 +64,148 @@
:per-page="perPage"
@page-change="onPageChange"
>
-
- {{ props.row.nombre}}
- {{ props.row.nombre}}
-
-
- {{ props.row.numeroCuenta}}
- {{ props.row.numeroCuenta}}
-
-
- {{ props.row.carrera}}
- {{ props.row.carrera}}
-
-
- {{props.row.fechaInicio}}
- {{ fecha(props.row.fechaInicio) }}
-
-
- {{props.row.fechaFin}}
- {{ fecha(props.row.fechaFin) }}
-
-
- {{ props.row.status }}
- {{ props.row.status}}
-
+
+ {{ props.row.nombre }}
+ {{ props.row.nombre }}
+
+
+ {{ props.row.numeroCuenta }}
+ {{ props.row.numeroCuenta }}
+
+
+ {{ props.row.carrera }}
+ {{ props.row.carrera }}
+
+
+ {{ props.row.fechaInicio }}
+ {{ fecha(props.row.fechaInicio) }}
+
+
+ {{ props.row.fechaFin }}
+ {{ fecha(props.row.fechaFin) }}
+
+
+ {{ props.row.status }}
+ {{
+ props.row.status
+ }}
+
-
-
-
-
-
-
-
- Carta Término
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
- Cuestionario
-
-
-
+
+ Carta Término
+
+
+
+
+
+
+
+
+
+
+
+ Cuestionario
+
+
+
@@ -142,7 +219,7 @@ import moment from "moment";
export default {
data() {
return {
- idTipoUsuario: '',
+ idTipoUsuario: "",
data: [],
total: "",
loading: true,
@@ -217,12 +294,15 @@ export default {
const fecha = moment(date.substr(0, 10));
return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`;
},
- obtenerDatos (idStatus) {
- this.loading = true
- this.data = []
- axios.get(`${process.env.api}/servicio/servicios_responsable?idUsuario=${this.idTipoUsuario}&pagina=${this.page}&idStatus=${idStatus}&nombre=${this.nombre}&numeroCuenta=${this.numeroCuenta}`)
- .then(res => {
- const servicios = res.data.servicios
+ obtenerDatos(idStatus) {
+ this.loading = true;
+ this.data = [];
+ axios
+ .get(
+ `${process.env.api}/servicio/servicios_responsable?idUsuario=${this.idTipoUsuario}&pagina=${this.page}&idStatus=${idStatus}&nombre=${this.nombre}&numeroCuenta=${this.numeroCuenta}`
+ )
+ .then((res) => {
+ const servicios = res.data.servicios;
if (servicios.length !== 0) {
for (let i = 0; i < servicios.length; i++) {
@@ -261,15 +341,15 @@ export default {
insertIdLocal() {
this.idUsuario = localStorage.getItem("idUsuario");
},
- getIdLocal () {
- this.idTipoUsuario = localStorage.getItem('idTipoUsuario')
- }
+ getIdLocal() {
+ this.idTipoUsuario = localStorage.getItem("idTipoUsuario");
+ },
},
- created () {
- this.getIdLocal()
- this.obtenerDatos(0)
- }
-}
+ created() {
+ this.getIdLocal();
+ this.obtenerDatos(0);
+ },
+};
-