elseStatistics.vue 929 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. uni.setStorageSync('test',0);
  42. },
  43. mounted() {
  44. },
  45. methods: {
  46. }
  47. }
  48. </script>
  49. <style>
  50. </style>