git checkout tomy

This commit is contained in:
Andres2908
2020-11-23 15:35:03 -06:00
parent 398522eb46
commit 7b64ccd320
11 changed files with 916 additions and 231 deletions
+13 -15
View File
@@ -63,7 +63,7 @@
>
<b-table-column field="nombre" label="Nombre" v-slot="props" centered>
<span @click="verifica()">{{ props.row.nombre }}</span>
<span @click="cualquiera(props.row.nombre)">{{ props.row.nombre }}</span>
</b-table-column>
<b-table-column field="carrera" label="Carrera" v-slot="props" centered>
@@ -83,7 +83,7 @@
</b-table-column>
<b-table-column field="status" label="Status" v-slot="props" centered>
<span @click="cualquiera(props.row.status)" class="tag" :class="types(props.row.status)">{{ props.row.status }}</span>
<span @click="obtenerDatos()" 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">
@@ -133,6 +133,7 @@
<script>
// import validator from 'validator'
import BotonesCarga from './botonesCarga.vue'
import axios from 'axios'
export default {
components: {
@@ -254,7 +255,7 @@ export default {
idStatus: 1
}
],
newSearch: {}
datos: {}
}
},
props: {
@@ -319,22 +320,19 @@ export default {
console.log(this.numeroCuenta)
console.log(this.nombre)
console.log(this.status)
console.log(this.id)
console.log(this.datos)
},
addSearch (e) {
e.preventDefault()
console.log('Agregando busqueda')
}/*
esNumero (numero) {
const ultimaLetra = numero.length - 1
if (numero && !validator.isNumeric(numero[ultimaLetra])) { return numero.substr(0, ultimaLetra) }
return numero
}/*
maxLength (str, max) {
if (str.lenght > max) { return str.substr(0, max) }
return str
} */
},
obtenerDatos () {
axios.get('https://c91c3b1fd956.ngrok.io/servicio/servicios_responsable?idUsuario=28&pagina=1')
.then(res => {
console.log(res.data)
this.datos = res.data
})
}
}
}
</script>