Advertisement
dadang9

Untitled

Nov 6th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <template>
  2. <div class="box">
  3. <div class="box-header with-border">
  4. <h3 class="box-title">Monthly Recap Report</h3>
  5.  
  6. <p> {{ $store.state.province_id }} {{ $store.state.month_id }} {{ $store.state.year_chart }} </p>
  7.  
  8. <div class="box-tools pull-right">
  9. <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
  10. </button>
  11. </div>
  12. </div>
  13. <!-- /.box-header -->
  14.  
  15. <div class="box-body">
  16. <selectperbinda />
  17.  
  18. <div class="row">
  19. <linechartperbinda :key="$store.state.province_id" />
  20. </div>
  21. <!-- /.row-box-body -->
  22. </div>
  23. <!-- ./box-body -->
  24.  
  25. </div>
  26. <!-- /.box -->
  27.  
  28. </template>
  29.  
  30. <script>
  31. import LineChartPerBindaComponent from '@components/Line/LineChartPerBindaComponent.vue'
  32. import SelectPerbindaComponent from '@components/SelectPerbindaComponent.vue'
  33.  
  34. import { mapActions } from 'vuex'
  35.  
  36. export default {
  37.  
  38. name: 'ChartPerBindaComponent',
  39. components: {
  40. 'linechartperbinda': LineChartPerBindaComponent,
  41. 'selectperbinda': SelectPerbindaComponent,
  42. },
  43. mounted () {
  44. this.$store.dispatch('fetchProvince')
  45. },
  46. methods: {
  47. ...mapActions([
  48. 'fetchProvince'
  49. ])
  50. }
  51. }
  52. </script>
  53.  
  54. <style lang="css" scoped>
  55. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement