2018-11-05 21:40:16 -06:00
|
|
|
<template lang="pug">
|
2019-03-19 19:39:46 +00:00
|
|
|
.navbar.is-u-blue
|
|
|
|
|
.navbar-brand
|
|
|
|
|
router-link.navbar-item(to="/")
|
|
|
|
|
b PC PUMA
|
|
|
|
|
.navbar-menu
|
|
|
|
|
.navbar-start
|
2019-02-20 17:08:47 +00:00
|
|
|
router-link.navbar-item(to="/equipo") Equipo
|
2018-11-16 06:15:49 -06:00
|
|
|
router-link.navbar-item(to="/carrito") Carrito
|
2018-11-12 18:43:21 -06:00
|
|
|
router-link.navbar-item(to="/usuario") Usuarios
|
2019-01-17 00:51:05 -06:00
|
|
|
router-link.navbar-item(to="/multa") Multas
|
2019-03-19 19:39:46 +00:00
|
|
|
.navbar-end
|
|
|
|
|
.navbar-item
|
2019-09-04 12:55:24 -05:00
|
|
|
p {{`Bienvenido : ${this.usuario}`}}
|
2019-03-19 19:39:46 +00:00
|
|
|
span.tag.is-danger.is-medium(v-if=" env === 'development' ") Localhost
|
|
|
|
|
span.tag.is-danger.is-medium(v-else-if=" env === 'TEST' ") Test
|
|
|
|
|
.navbar-item
|
2018-11-06 21:32:20 -06:00
|
|
|
a.button.is-u-golden(v-on:click='salir()')
|
2018-11-05 21:40:16 -06:00
|
|
|
strong Salir
|
2018-11-05 13:59:26 -06:00
|
|
|
</template>
|
2018-11-06 21:32:20 -06:00
|
|
|
<script>
|
|
|
|
|
export default {
|
2019-03-19 19:39:46 +00:00
|
|
|
data () {
|
|
|
|
|
return {
|
2019-09-04 12:55:24 -05:00
|
|
|
env: process.env.NODE_ENV,
|
|
|
|
|
usuario: this.$store.getters.operador
|
2019-03-19 19:39:46 +00:00
|
|
|
}
|
|
|
|
|
},
|
2018-11-06 21:32:20 -06:00
|
|
|
methods: {
|
|
|
|
|
salir: function () {
|
2019-07-19 22:40:38 -05:00
|
|
|
this.$store.commit('close')
|
2018-11-06 21:32:20 -06:00
|
|
|
this.$router.push('login')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
2019-03-19 19:39:46 +00:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.navbar{
|
2019-07-19 22:40:38 -05:00
|
|
|
width: 100%;
|
2019-03-19 19:39:46 +00:00
|
|
|
border-bottom: #B08100 solid 5px;
|
2019-07-19 22:40:38 -05:00
|
|
|
box-shadow: 0px 13px 21px 2px rgba(0,0,0,0.21);
|
|
|
|
|
position:fixed;
|
|
|
|
|
top:0;
|
|
|
|
|
|
2019-03-19 19:39:46 +00:00
|
|
|
}
|
|
|
|
|
</style>
|