|
@@ -7,7 +7,7 @@
|
|
|
<el-col>
|
|
|
<el-menu default-active="1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" text-color="#215299" active-text-color="#215299">
|
|
|
<el-menu-item index="1" v-for="(item, index) in liebiaoList" :key="index"
|
|
|
- ><span slot="title" @click="clickUrl()">{{ item.title }}</span></el-menu-item
|
|
|
+ ><span slot="title" @click="clickUrl(item.title)">{{ item.title }}</span></el-menu-item
|
|
|
>
|
|
|
</el-menu>
|
|
|
</el-col>
|
|
@@ -21,13 +21,23 @@ export default {
|
|
|
components: {},
|
|
|
data: () => ({
|
|
|
src: require('@/assets/achieveCenter.png'),
|
|
|
- liebiaoList: [{ title: '超算联盟' }, { title: '国家网格' }, { title: '教学中心' }, { title: '创业基地' }, { title: '软件中心' }, { title: '交流互动' }],
|
|
|
+ liebiaoList: [{ title: '超算联盟' }, { title: '国家网格' }, { title: '教学中心' }, { title: '创业基地' }, { title: '软件中心' }],
|
|
|
}),
|
|
|
created() {},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
- clickUrl() {
|
|
|
- this.$router.push({ path: '/shuju/shujulist' });
|
|
|
+ clickUrl(title) {
|
|
|
+ if (title == '超算联盟') {
|
|
|
+ this.$router.push({ path: '/achievement/index' });
|
|
|
+ } else if (title == '国家网格') {
|
|
|
+ this.$router.push({ path: '/achievement/achievement' });
|
|
|
+ } else if (title == '教学中心') {
|
|
|
+ this.$router.push({ path: '/achievement/knowledge' });
|
|
|
+ } else if (title == '创业基地') {
|
|
|
+ this.$router.push({ path: '/achievement/technology' });
|
|
|
+ } else if (title == '软件中心') {
|
|
|
+ this.$router.push({ path: '/achievement/technology' });
|
|
|
+ }
|
|
|
},
|
|
|
handleOpen(key, keyPath) {
|
|
|
console.log(key, keyPath);
|