智慧农业后台管理页面
guoshilong
2022-11-08 082613d446e29e4ec1c16bfaa52345106a498b23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
  <div class="statistics-body">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <!-- 种植记录 -->
      <el-tab-pane label="农资出入库统计" name="tab1">
        <stock
        ></stock>
      </el-tab-pane>
      <!-- 农事记录 -->
      <el-tab-pane label="产量统计" name="tab2">
        <farmproductstockstatistics
        ></farmproductstockstatistics>
      </el-tab-pane>
      <!-- 采收记录 -->
      <el-tab-pane label="播种面积统计" name="tab3">
        <farmplantarea
        ></farmplantarea>
      </el-tab-pane>
    </el-tabs>
  </div>
    
</template>
 
<script>
import stock from "./stock.vue";
import farmproductstockstatistics from "./farmproductstockstatistics.vue";
import farmplantarea from "./farmplantarea.vue";
import { mapGetters } from "vuex";
 
export default {
  components: {
    stock,
    farmproductstockstatistics,
    farmplantarea
  },
  data() {
    return {
      farmId:"",
      activeName: "tab1",
    };
  },
  computed: {
    ...mapGetters(["userInfo", "permission"]),
  },
  created(){
    // this.activeName = this.$route.query.activeName;
  },
  methods: {
  },
  watch: {},
};
</script>
 
<style lang="scss" scoped>
</style>