index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="style">
  5. <el-col :span="24" class="top">
  6. <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
  7. </el-col>
  8. <el-col :span="24" class="main">
  9. 统计报表
  10. </el-col>
  11. </el-col>
  12. </el-row>
  13. </div>
  14. </template>
  15. <script>
  16. import { mapState, createNamespacedHelpers } from 'vuex';
  17. import NavBar from '@/layout/common/topInfo.vue';
  18. export default {
  19. name: 'index',
  20. props: {},
  21. components: { NavBar },
  22. data: function() {
  23. return {
  24. // 头部标题
  25. title: '',
  26. // meta为true
  27. isleftarrow: '',
  28. // 返回
  29. navShow: true,
  30. };
  31. },
  32. created() {},
  33. methods: {},
  34. computed: { ...mapState(['user']) },
  35. mounted() {
  36. this.title = this.$route.meta.title;
  37. this.isleftarrow = this.$route.meta.isleftarrow;
  38. },
  39. };
  40. </script>
  41. <style lang="less" scoped>
  42. .style {
  43. width: 100%;
  44. min-height: 667px;
  45. position: relative;
  46. background-color: #f9fafc;
  47. }
  48. .top {
  49. height: 46px;
  50. overflow: hidden;
  51. position: relative;
  52. z-index: 999;
  53. }
  54. .main {
  55. min-height: 570px;
  56. }
  57. </style>