fix quitar huella , add borrar multa , fix actualizar equipo
This commit is contained in:
Generated
+4509
-3732
File diff suppressed because it is too large
Load Diff
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user