elseStatistics.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. onShow() {
  38. uni.setNavigationBarTitle({
  39. title: this.$t('mainStatistics.title')
  40. });
  41. },
  42. onLoad(option){
  43. this.equipmentId = option['equipmentId'];
  44. this.adminId = option['adminId'];
  45. this.pname = option['pname'];
  46. uni.setStorageSync('test',0);
  47. },
  48. mounted() {
  49. },
  50. methods: {
  51. }
  52. }
  53. </script>
  54. <style>
  55. </style>