index.vue 826 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div id="index">
  3. <top topType="2"></top>
  4. <lineBar title="发表数"></lineBar>
  5. <gauge title="阅读数"></gauge>
  6. <pie title="点赞数"></pie>
  7. </div>
  8. </template>
  9. <script>
  10. import top from '@/layout/common/top.vue';
  11. import lineBar from './chart/lineBar.vue';
  12. import pie from './chart/pie.vue';
  13. import gauge from './chart/gauge.vue';
  14. import { mapState, createNamespacedHelpers } from 'vuex';
  15. export default {
  16. name: 'index',
  17. props: {},
  18. components: { lineBar, pie, gauge, top },
  19. data: function() {
  20. return {};
  21. },
  22. created() {},
  23. methods: {},
  24. computed: {
  25. ...mapState(['user', 'menuParams']),
  26. pageTitle() {
  27. return `${this.$route.meta.title}`;
  28. },
  29. },
  30. metaInfo() {
  31. return { title: this.$route.meta.title };
  32. },
  33. };
  34. </script>
  35. <style lang="less" scoped></style>