elseStatistics.vue 852 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view>
  3. <mainStatistics :equipmentId="equipmentIdData" :adminId="adminIdData" style="padding: 20upx;"></mainStatistics>
  4. </view>
  5. </template>
  6. <script>
  7. import { mapState, mapActions, mapMutations } from 'vuex';
  8. import {mainStatistics} from '@/pages/Charts/mainStatistics';
  9. export default {
  10. name: 'elseStatistics',
  11. data() {
  12. return {
  13. equipmentId: '',
  14. adminId: '',
  15. }
  16. },
  17. computed: {
  18. ...mapState(['loginUser']),
  19. equipmentIdData:{
  20. get(){
  21. return this.equipmentId;
  22. }
  23. },
  24. adminIdData:{
  25. get(){
  26. return this.adminId;
  27. }
  28. },
  29. },
  30. onLoad(option){
  31. this.equipmentId = option['equipmentId'];
  32. this.adminId = option['adminId'];
  33. console.log("option:",this.equipmentId,this.adminId)
  34. // this.mainStatistics.init();
  35. },
  36. mounted() {
  37. },
  38. methods: {
  39. }
  40. }
  41. </script>
  42. <style>
  43. </style>