index.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 :span="24" class="foot">
  12. <footInfo></footInfo>
  13. </el-col>
  14. </el-col>
  15. </el-row>
  16. </div>
  17. </template>
  18. <script>
  19. import NavBar from '@/layout/common/topInfo.vue';
  20. import footInfo from '@/layout/common/footInfo.vue';
  21. import { mapState, createNamespacedHelpers } from 'vuex';
  22. export default {
  23. name: 'index',
  24. props: {},
  25. components: {
  26. NavBar,
  27. footInfo,
  28. },
  29. data: function() {
  30. return {
  31. title: '',
  32. isleftarrow: '',
  33. navShow: true,
  34. };
  35. },
  36. created() {},
  37. methods: {},
  38. computed: {
  39. ...mapState(['user']),
  40. },
  41. mounted() {
  42. this.title = this.$route.meta.title;
  43. this.isleftarrow = this.$route.meta.isleftarrow;
  44. },
  45. watch: {
  46. $route(to, from) {
  47. this.title = to.meta.title;
  48. this.isleftarrow = to.meta.isleftarrow;
  49. },
  50. },
  51. };
  52. </script>
  53. <style lang="less" scoped>
  54. .style {
  55. width: 100%;
  56. min-height: 667px;
  57. position: relative;
  58. background-color: #f9fafc;
  59. }
  60. .top {
  61. height: 46px;
  62. overflow: hidden;
  63. }
  64. .main {
  65. min-height: 570px;
  66. }
  67. .foot {
  68. height: 90px;
  69. overflow: hidden;
  70. }
  71. </style>