V-2.0-Servicios
This commit is contained in:
@@ -72,26 +72,26 @@
|
||||
@page-change="onPageChange"
|
||||
>
|
||||
<b-table-column field="nombre" label="Nombre" v-slot="props" centered>
|
||||
{{ props.row.nombre}}
|
||||
<span @click="servicios(props.row.idServicio)">{{ props.row.nombre}}</span>
|
||||
</b-table-column>
|
||||
<b-table-column field="numeroCuenta" label="Número de Cuenta" v-slot="props" centered>
|
||||
{{ props.row.numeroCuenta}}
|
||||
<span @click="servicios(props.row.idServicio)">{{ props.row.numeroCuenta}}</span>
|
||||
</b-table-column>
|
||||
<b-table-column field="carrera" label="Carrera" v-slot="props" centered>
|
||||
{{ props.row.carrera}}
|
||||
<span @click="servicios(props.row.idServicio)">{{ props.row.carrera}}</span>
|
||||
</b-table-column>
|
||||
<b-table-column field="fechaInicio" truncate=10 label="Fecha Inicio" v-slot="props" centered>
|
||||
{{ props.row.fechaInicio}}
|
||||
<span @click="servicios(props.row.idServicio)">{{ props.row.fechaInicio}}</span>
|
||||
</b-table-column>
|
||||
<b-table-column field="fechaFin" label="Fecha Fin" v-slot="props" centered>
|
||||
{{ props.row.fechaFin}}
|
||||
<span @click="servicios(props.row.idServicio)">{{ props.row.fechaFin}}</span>
|
||||
</b-table-column>
|
||||
<b-table-column field="status" label="Status" v-slot="props" centered>
|
||||
<span class="tag" :class="types(props.row.status)">{{ props.row.status}}</span>
|
||||
<span @click="servicios(props.row.idServicio)" class="tag" :class="types(props.row.status)">{{ props.row.status}}</span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="cartaTermino" label="Carta Término" v-slot="props" centered v-if="id == 2">
|
||||
<div v-if="props.row.status === 'Pre-Termino'">
|
||||
<div v-if="props.row.idStatus >= 4">
|
||||
<span
|
||||
v-if="props.row.cartaTermino === 1"
|
||||
>
|
||||
@@ -236,8 +236,10 @@ export default {
|
||||
fechaInicio: servicios[i].fechaInicio,
|
||||
fechaFin: servicios[i].fechaFin,
|
||||
status: servicios[i].Status.status,
|
||||
idStatus: servicios[i].Status.idStatus,
|
||||
cuestionario: servicios[i].idCuestionarioPrograma,
|
||||
cartaTermino: servicios[i].cartaTermino
|
||||
cartaTermino: servicios[i].cartaTermino,
|
||||
idServicio: servicios[i].idServicio
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -254,6 +256,10 @@ export default {
|
||||
.catch((err) => {
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
},
|
||||
servicios (idServicio) {
|
||||
window.localStorage.setItem('idServicio', idServicio)
|
||||
this.$router.push('/admin/servicio')
|
||||
}
|
||||
},
|
||||
created () {
|
||||
@@ -278,4 +284,7 @@ export default {
|
||||
background-color: #1b3d70;
|
||||
border-color: #1b3d70;
|
||||
}
|
||||
.b-table{
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ export default {
|
||||
},
|
||||
env: {
|
||||
// api: 'http://localhost:3000'
|
||||
api: 'https://676239f84128.ngrok.io'
|
||||
api: 'https://3a654113271d.ngrok.io'
|
||||
// api: 'https//venus.acatlan.unam.mx/pruebas_pcpuma'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user