1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <template>
- <div id="index">
- <admin-frame :useTop="false" :usePage="false" :useNav="false">
- <template v-slot:info>
- <van-col span="24" class="menu" v-for="(i, index) in menu" :key="index" @click.native="$router.push(i.router)">
- {{ i.label }}
- </van-col>
- </template>
- </admin-frame>
- </div>
- </template>
- <script>
- import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'index',
- props: {},
- components: {
- adminFrame,
- },
- data: function () {
- return {
- menu: [
- // 信息展示
- {
- label: '信息展示-重点实验室信息展示',
- router: '/infoview-laboratory/index',
- },
- {
- label: '信息展示-研究方向信息展示',
- router: '/infoview-research/index',
- },
- {
- label: '信息展示-设备信息展示',
- router: '/infoview-equipment/index',
- },
- {
- label: '信息展示-重要成果信息展示',
- router: '/infoview-achievement/index',
- },
- // 科研信息
- {
- label: '科研信息',
- router: '/scientific/index',
- },
- // 学术交流
- {
- label: '学术交流',
- router: '/learning/index',
- },
- // 队伍建设与人才培养
- {
- label: '队伍建设与人才培养',
- router: '/ranks/index',
- },
- // 平台活动时间段公式
- {
- label: '平台活动时间段公示',
- router: '/activity-time/index',
- },
- ],
- };
- },
- async created() {},
- methods: {},
- computed: {
- ...mapState(['user']),
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- watch: {
- test: {
- deep: true,
- immediate: true,
- handler(val) {},
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .menu {
- border: 1px dashed #ccc;
- margin: 0 0 10px 0;
- padding: 10px;
- }
- </style>
|