elseStatistics.vue 896 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!-- 单一统计图表 -->
  2. <template>
  3. <view>
  4. <mainStatistics :pname="pnameData" :equipmentId="equipmentIdData" :adminId="adminIdData"></mainStatistics>
  5. </view>
  6. </template>
  7. <script>
  8. import { mapState, mapActions, mapMutations } from 'vuex';
  9. import {mainStatistics} from '@/pages/Charts/mainStatistics';
  10. export default {
  11. name: 'elseStatistics',
  12. data() {
  13. return {
  14. equipmentId: '',
  15. adminId: '',
  16. pname: '',
  17. }
  18. },
  19. computed: {
  20. ...mapState(['loginUser']),
  21. equipmentIdData:{
  22. get(){
  23. return this.equipmentId;
  24. }
  25. },
  26. adminIdData:{
  27. get(){
  28. return this.adminId;
  29. }
  30. },
  31. pnameData:{
  32. get(){
  33. return this.pname;
  34. }
  35. },
  36. },
  37. onLoad(option){
  38. this.equipmentId = option['equipmentId'];
  39. this.adminId = option['adminId'];
  40. this.pname = option['pname'];
  41. },
  42. mounted() {
  43. },
  44. methods: {
  45. }
  46. }
  47. </script>
  48. <style>
  49. </style>