SHARE
TWEET

Untitled

a guest Oct 8th, 2019 13 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <template>
  2.   <div>
  3.     <div>
  4.       <h3>RFID</h3>
  5.       <q-btn @click="logData"
  6.              label="Save"
  7.              class="q-mt-md"
  8.              color="teal"
  9.       ></q-btn>
  10.       <q-table
  11.         title="Logbook"
  12.         :data="data"
  13.         :columns="columns"
  14.         row-key="uid"
  15.       />
  16.     </div>
  17.   </div>
  18. </template>
  19.  
  20. <script>
  21. import { mapState, mapGetters, mapActions } from 'vuex';
  22.  
  23. export default {
  24.   name: 'RFID',
  25.   mounted() {
  26.     this.getLogbookData();
  27.   },
  28.   methods: {
  29.     ...mapActions('logbook', ['getLogbookData']),
  30.     ...mapGetters('logbook', ['loadedLogbook']),
  31.     ...mapState('logbook', ['logbookData']),
  32.     logData: () => {
  33.       console.log(this.loadedLogbook);
  34.     },
  35.   },
  36.   data() {
  37.     return {
  38.  
  39.     };
  40.   },
  41. };
  42. </script>
  43.  
  44. <style scoped>
  45.  
  46. </style>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top