fix quitar huella , add borrar multa , fix actualizar equipo

This commit is contained in:
arturo Guerrero
2019-09-10 15:24:16 -05:00
parent 15a11e2f83
commit ecd542f485
3 changed files with 4534 additions and 3735 deletions
+4509 -3732
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -187,14 +187,14 @@ export default {
})
.then(response => {
swal('Exito', 'Se actualizo', 'success')
axios.get(api.url + '/equipo', {
axios.get(api.url + '/equipo?kiosko=' + this.$store.getters.kiosko, {
headers: {
'token': this.$store.getters.token
}
})
.then(response => {
// console.log(response)
this.data = response.data.data
this.data = response.data
swal('Exito', 'Se actualizarón los datos', 'success')
})
.catch(error => {
+23 -1
View File
@@ -30,6 +30,8 @@
label(for="switch") Baneado
.field
button.button.is-danger( v-if="permiso" v-on:click="huella()") Borrar Huella
.field
button.button.is-danger( v-if="permiso" v-on:click="quitarMulta()") Borrar Multa
.column.is-7
div(v-if="prest.length == 0")
prestamo(v-bind:usuario="buscar")
@@ -113,7 +115,27 @@ export default {
method: 'put',
url: api.url + '/usuario/' + this.data.idUsuario,
data: {
huella: 1
huella: null
},
headers: {
'token': this.$store.getters.token
}
})
.then(res => {
console.log(res)
this.data = res.data
swal('Exito','Huella borrada' , 'success')
})
.catch(error => {
console.log(error)
})
},
quitarMulta: function () {
axios({
method: 'put',
url: api.url + '/usuario/' + this.data.idUsuario,
data: {
multa: null
},
headers: {
'token': this.$store.getters.token