empieza pcpuma
This commit is contained in:
Vendored
+1
-1
@@ -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.82b8604b.css rel=preload as=style><link href=/css/chunk-vendors.3c3429cd.css rel=preload as=style><link href=/js/app.fad981b0.js rel=preload as=script><link href=/js/chunk-vendors.e50360cf.js rel=preload as=script><link href=/css/chunk-vendors.3c3429cd.css rel=stylesheet><link href=/css/app.82b8604b.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.e50360cf.js></script><script src=/js/app.fad981b0.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.0b375ed6.css rel=preload as=style><link href=/css/chunk-vendors.3c3429cd.css rel=preload as=style><link href=/js/app.a7245cd8.js rel=preload as=script><link href=/js/chunk-vendors.e50360cf.js rel=preload as=script><link href=/css/chunk-vendors.3c3429cd.css rel=stylesheet><link href=/css/app.0b375ed6.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.e50360cf.js></script><script src=/js/app.a7245cd8.js></script></body></html>
|
||||
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
@@ -8,9 +8,7 @@
|
||||
.control
|
||||
.select
|
||||
select(v-model="tipo")
|
||||
option(value="laptop") Laptop
|
||||
option(value="chromebook") Choromebook
|
||||
option(value="ipad") Tablet
|
||||
option(v-for="t in tipos" v-bind:value="t.idTipo") {{t.nombre}}
|
||||
.control
|
||||
a.button.is-link(v-on:click="prestamo()") Aceptar
|
||||
|
||||
@@ -40,7 +38,8 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
tipo: '',
|
||||
prestamoData: []
|
||||
prestamoData: [],
|
||||
tipos: {}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -48,6 +47,22 @@ export default {
|
||||
this.prestamoData = []
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
axios({
|
||||
method: 'get',
|
||||
url: api.url + '/tipo',
|
||||
headers: {
|
||||
token: this.$store.getters.token
|
||||
}
|
||||
})
|
||||
.then(data => {
|
||||
console.log(data)
|
||||
this.tipos = data.data
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err.message)
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
prestamo: function () {
|
||||
axios({
|
||||
@@ -55,8 +70,8 @@ export default {
|
||||
url: api.url + '/prestamo',
|
||||
data: {
|
||||
idUsuario: this.usuario,
|
||||
idTipo: 1,
|
||||
idOperadorPrestamo: 1,
|
||||
idTipo: this.tipo,
|
||||
idOperadorPrestamo: this.$store.getters.kiosko,
|
||||
kiosko: 1
|
||||
},
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user