This commit is contained in:
Arturo
2020-03-12 17:10:50 -06:00
parent 69342e397c
commit 95e8190954
6 changed files with 26 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>PC Puma</title><link href=/css/app.8ceb5ff7.css rel=preload as=style><link href=/css/chunk-vendors.186c47a3.css rel=preload as=style><link href=/js/app.8ac00b11.js rel=preload as=script><link href=/js/chunk-vendors.f2010bb3.js rel=preload as=script><link href=/css/chunk-vendors.186c47a3.css rel=stylesheet><link href=/css/app.8ceb5ff7.css rel=stylesheet></head><body><noscript><strong>We're sorry but pcpuma-front doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.f2010bb3.js></script><script src=/js/app.8ac00b11.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>PC Puma</title><link href=/css/app.8ceb5ff7.css rel=preload as=style><link href=/css/chunk-vendors.186c47a3.css rel=preload as=style><link href=/js/app.d37a0421.js rel=preload as=script><link href=/js/chunk-vendors.f2010bb3.js rel=preload as=script><link href=/css/chunk-vendors.186c47a3.css rel=stylesheet><link href=/css/app.8ceb5ff7.css rel=stylesheet></head><body><noscript><strong>We're sorry but pcpuma-front doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.f2010bb3.js></script><script src=/js/app.d37a0421.js></script></body></html>
-2
View File
File diff suppressed because one or more lines are too long
-1
View File
File diff suppressed because one or more lines are too long
+2
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+22 -1
View File
@@ -47,12 +47,15 @@
input.input(type="text" placeholder="Folio" v-model="i.folio")
td
button.button.is-info( v-on:click="update(i.idBlacklist,i.folio)") Guardar
td
button.button.is-danger( v-on:click="destroy(i.idBlacklist)") Borrar
</template>
<script>
import axios from "axios";
import api from "../api";
import swal from 'sweetalert';
export default {
data() {
return {
@@ -65,6 +68,23 @@ export default {
};
},
methods: {
destroy(id){
axios({
method: 'delete',
url: `${api.url}/blacklist`,
data:{
idBlacklist:id
}
})
.then(res=>{
console.log(res,api.url)
swal('Exito', 'Usuario borrado' , 'success')
this.trae();
})
.catch(err=>{
console.log(err)
})
},
update: function(id, folio) {
console.log(id, folio);
let body = {
@@ -94,6 +114,7 @@ export default {
.post(api.url + "/blacklist", body)
.then(res => {
console.log(res.data);
swal('Exito', 'Usuario agregado' , 'success')
this.trae();
})
.catch(err => {
@@ -119,4 +140,4 @@ export default {
</script>
<style>
</style>
</style>