elseStatistics.vue 957 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view>
  3. <mainStatistics :pname="pnameData" :equipmentId="equipmentIdData" :adminId="adminIdData"></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. pname: '',
  16. }
  17. },
  18. computed: {
  19. ...mapState(['loginUser']),
  20. equipmentIdData:{
  21. get(){
  22. return this.equipmentId;
  23. }
  24. },
  25. adminIdData:{
  26. get(){
  27. return this.adminId;
  28. }
  29. },
  30. pnameData:{
  31. get(){
  32. return this.pname;
  33. }
  34. },
  35. },
  36. onLoad(option){
  37. this.equipmentId = option['equipmentId'];
  38. this.adminId = option['adminId'];
  39. this.pname = option['pname'];
  40. console.log("option:",this.equipmentId,this.adminId)
  41. // this.mainStatistics.init();
  42. },
  43. mounted() {
  44. },
  45. methods: {
  46. }
  47. }
  48. </script>
  49. <style>
  50. </style>