aboutsummaryrefslogblamecommitdiff
path: root/resources/js/components/activities.vue
blob: 928bae6290ffe92ec27f12c0b6355dc11372a27b (plain) (tree)
1
2
          
                                      















                                                                                      
                                                                       







                                                    



                    


           

                                                    
                













                                         

         
<template>
  <div @signChanged="filterChanged()">
    <call-sign-filter></call-sign-filter>

    <div class="table-responsive mt-2">
        <table class="table table-striped table-bordered" style="white-space:nowrap;">
            <thead class="thead-dark">
                <tr>
                  <th>Operator</th>
                  <th>From</th>
                  <th>To</th>
                  <th>Special Callsign</th>
                  <th>Frequencies</th>
                  <th>Modes</th>
                  <th>QSO</th>
                </tr>
            </thead>
            <tbody>
              <tr v-for="(activity, index) in activities" :key="index">
                <td>{{ activity.operatorCall }}</td>
                <td>{{ activity.fromTime }}</td>
                <td>{{ activity.toTime }}</td>
                <td>{{ activity.specialCall }}</td>
                <td>{{ activity.frequencies }}</td>
                <td>{{ activity.modes }}</td>
                <td>{{ activity.qso }}</td>
              </tr>
            </tbody>
        </table>
    </div>
  </div>
</template>

<script>
import callSignFilter from './call-sign-filter.vue';

export default {
  components: { callSignFilter },
  mounted() {
    this.$store.dispatch('fillData');
  },
  computed: {
    activities() {
      return this.$store.getters.getData;
    }
  },
  methods: {
    filterChanged() {
      this.$store.dispatch('fillData');
    }
  }
}
</script>