123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <!-- 单一统计图表 -->
- <template>
- <view>
- <mainStatistics :pname="pnameData" :equipmentId="equipmentIdData" :adminId="adminIdData"></mainStatistics>
- </view>
- </template>
- <script>
- import { mapState, mapActions, mapMutations } from 'vuex';
- import {mainStatistics} from '@/pages/Charts/mainStatistics';
- export default {
- name: 'elseStatistics',
- data() {
- return {
- equipmentId: '',
- adminId: '',
- pname: '',
- }
- },
- computed: {
- ...mapState(['loginUser']),
- equipmentIdData:{
- get(){
- return this.equipmentId;
- }
- },
- adminIdData:{
- get(){
- return this.adminId;
- }
- },
- pnameData:{
- get(){
- return this.pname;
- }
- },
- },
- onLoad(option){
- this.equipmentId = option['equipmentId'];
- this.adminId = option['adminId'];
- this.pname = option['pname'];
- uni.setStorageSync('test',0);
- },
- mounted() {
- },
- methods: {
- }
- }
- </script>
- <style>
- </style>
|