index.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div id="index">
  3. <admin-frame :useTop="false" :usePage="false" :useNav="false">
  4. <template v-slot:info>
  5. <van-col span="24" class="menu" v-for="(i, index) in menu" :key="index" @click.native="$router.push(i.router)">
  6. {{ i.label }}
  7. </van-col>
  8. </template>
  9. </admin-frame>
  10. </div>
  11. </template>
  12. <script>
  13. import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
  14. import { mapState, createNamespacedHelpers } from 'vuex';
  15. export default {
  16. name: 'index',
  17. props: {},
  18. components: {
  19. adminFrame,
  20. },
  21. data: function () {
  22. return {
  23. menu: [
  24. // 信息展示
  25. {
  26. label: '信息展示-重点实验室信息展示',
  27. router: '/infoview-laboratory/index',
  28. },
  29. {
  30. label: '信息展示-研究方向信息展示',
  31. router: '/infoview-research/index',
  32. },
  33. {
  34. label: '信息展示-设备信息展示',
  35. router: '/infoview-equipment/index',
  36. },
  37. {
  38. label: '信息展示-重要成果信息展示',
  39. router: '/infoview-achievement/index',
  40. },
  41. // 科研信息
  42. {
  43. label: '科研信息',
  44. router: '/scientific/index',
  45. },
  46. // 学术交流
  47. {
  48. label: '学术交流',
  49. router: '/learning/index',
  50. },
  51. // 队伍建设与人才培养
  52. {
  53. label: '队伍建设与人才培养',
  54. router: '/ranks/index',
  55. },
  56. // 平台活动时间段公式
  57. {
  58. label: '平台活动时间段公示',
  59. router: '/activity-time/index',
  60. },
  61. ],
  62. };
  63. },
  64. async created() {},
  65. methods: {},
  66. computed: {
  67. ...mapState(['user']),
  68. },
  69. metaInfo() {
  70. return { title: this.$route.meta.title };
  71. },
  72. watch: {
  73. test: {
  74. deep: true,
  75. immediate: true,
  76. handler(val) {},
  77. },
  78. },
  79. };
  80. </script>
  81. <style lang="less" scoped>
  82. .menu {
  83. border: 1px dashed #ccc;
  84. margin: 0 0 10px 0;
  85. padding: 10px;
  86. }
  87. </style>