12345678910111213141516171819202122232425262728293031323334353637 |
- <template>
- <div id="index">
- <top topType="2"></top>
- <lineBar title="发表数"></lineBar>
- <gauge title="阅读数"></gauge>
- <pie title="点赞数"></pie>
- </div>
- </template>
- <script>
- import top from '@/layout/common/top.vue';
- import lineBar from './chart/lineBar.vue';
- import pie from './chart/pie.vue';
- import gauge from './chart/gauge.vue';
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'index',
- props: {},
- components: { lineBar, pie, gauge, top },
- data: function() {
- return {};
- },
- created() {},
- methods: {},
- computed: {
- ...mapState(['user', 'menuParams']),
- pageTitle() {
- return `${this.$route.meta.title}`;
- },
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- };
- </script>
- <style lang="less" scoped></style>
|