1
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<el-submenu :index="item.index" :key="item.index">
|
||||
<template slot="title">
|
||||
<i :class="item.icon"></i>
|
||||
<span slot="title">{{ item.title }}</span>
|
||||
<span slot="title"> {{ item.title }}</span>
|
||||
</template>
|
||||
<template v-for="subItem in item.subs">
|
||||
<el-submenu v-if="subItem.subs" :index="subItem.index" :key="subItem.index">
|
||||
@@ -21,40 +21,72 @@
|
||||
<template v-else>
|
||||
<el-menu-item :index="item.index" :key="item.index">
|
||||
<i :class="item.icon"></i>
|
||||
<span slot="title">{{ item.title }}</span>
|
||||
<span slot="title"> {{ item.title }}</span>
|
||||
</el-menu-item>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<!-- <template v-if="this.user_cap.includes('chief')">
|
||||
<router-link :to="{path:'/managing'}">
|
||||
<el-menu-item>
|
||||
<i class="el-icon-user"></i> Editor-in-Chief
|
||||
<!-- 审稿人 -->
|
||||
<template v-if="this.user_cap.includes('reviewer')">
|
||||
<el-submenu index="8">
|
||||
<template slot="title">
|
||||
<i class="el-icon-collection"></i> {{$t('sidebar.rev_ewer')}}
|
||||
</template>
|
||||
<el-menu-item index="peerewer">
|
||||
{{$t('sidebar.rev_ewer1')}}
|
||||
</el-menu-item>
|
||||
</router-link>
|
||||
</template> -->
|
||||
<el-menu-item index="perhistory">
|
||||
{{$t('sidebar.rev_ewer2')}}
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
</template>
|
||||
<!-- 编委 -->
|
||||
<template v-if="this.user_cap.includes(',board')">
|
||||
<router-link :to="{path:'/editorial'}">
|
||||
<el-menu-item>
|
||||
<i class="el-icon-user"></i> Editorial board member
|
||||
<el-submenu index="7">
|
||||
<template slot="title">
|
||||
<i class="el-icon-notebook-1"></i> {{$t('sidebar.edit_oria')}}
|
||||
</template>
|
||||
<el-menu-item index="editorial">
|
||||
{{$t('sidebar.edit_oria1')}}
|
||||
</el-menu-item>
|
||||
</router-link>
|
||||
<el-menu-item index="edithistory">
|
||||
{{$t('sidebar.edit_oria2')}}
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
</template>
|
||||
<!-- <template v-if="this.user_cap.includes('reviewer')">
|
||||
<router-link :to="{path:'/peerewer'}">
|
||||
<el-menu-item>
|
||||
<i class="el-icon-user"></i> Reviewer
|
||||
<!-- 主编 -->
|
||||
<template v-if="this.user_cap.includes('chief')">
|
||||
<el-submenu index="6">
|
||||
<template slot="title">
|
||||
<i class="el-icon-document-copy"></i> {{$t('sidebar.man_ing')}}
|
||||
</template>
|
||||
<el-menu-item index="managing">
|
||||
{{$t('sidebar.man_ing1')}}
|
||||
</el-menu-item>
|
||||
</router-link>
|
||||
</template> -->
|
||||
<el-menu-item index="manhistory">
|
||||
{{$t('sidebar.man_ing2')}}
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
<el-submenu index="10">
|
||||
<template slot="title">
|
||||
<i class="el-icon-data-analysis"></i> {{$t('sidebar.analyp')}}
|
||||
</template>
|
||||
<el-menu-item index="citationanalysis">
|
||||
{{$t('sidebar.analysis')}}
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
</template>
|
||||
<!-- 青年编委 -->
|
||||
<template v-if="this.user_cap.includes('yboard')">
|
||||
<router-link :to="{path:'/youthed'}">
|
||||
<el-menu-item>
|
||||
<i class="el-icon-user"></i> Young scientist member
|
||||
<el-submenu index="9">
|
||||
<template slot="title">
|
||||
<i class="el-icon-copy-document"></i> {{$t('sidebar.you_thed')}}
|
||||
</template>
|
||||
<el-menu-item index="youthed">
|
||||
{{$t('sidebar.you_thed1')}}
|
||||
</el-menu-item>
|
||||
</router-link>
|
||||
</el-submenu>
|
||||
</template>
|
||||
|
||||
<!-- 主编/总监统计图 -->
|
||||
<template v-if="this.userrole == 0">
|
||||
<el-submenu index="8">
|
||||
@@ -85,6 +117,11 @@
|
||||
<i class="el-icon-d-arrow-right"></i> Official mailbox
|
||||
</a>
|
||||
</el-menu-item>
|
||||
<el-menu-item>
|
||||
<a href="https://www.grammarly.com" target="_blank" style="color: #bfcbd9;">
|
||||
<i class="el-icon-d-arrow-right"></i> www.grammarly.com
|
||||
</a>
|
||||
</el-menu-item>
|
||||
</template>
|
||||
|
||||
</el-menu>
|
||||
@@ -161,18 +198,22 @@
|
||||
index: 'reviewerApplyList',
|
||||
title: this.$t('sidebar.reviewer1')
|
||||
},
|
||||
{
|
||||
index: 'reviewerAuthorList',
|
||||
title: this.$t('sidebar.reviewer6')
|
||||
},
|
||||
{
|
||||
index: 'reviewerList',
|
||||
title: this.$t('sidebar.reviewer2')
|
||||
},
|
||||
{
|
||||
index: 'reviewerImport',
|
||||
title: this.$t('sidebar.reviewer3')
|
||||
},
|
||||
{
|
||||
index: 'reviewerAdd',
|
||||
title: this.$t('sidebar.reviewer5')
|
||||
}
|
||||
// {
|
||||
// index: 'reviewerImport',
|
||||
// title: this.$t('sidebar.reviewer3')
|
||||
// },
|
||||
// {
|
||||
// index: 'reviewerAdd',
|
||||
// title: this.$t('sidebar.reviewer5')
|
||||
// }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -185,83 +226,6 @@
|
||||
}]
|
||||
}
|
||||
],
|
||||
// 主编
|
||||
chief_items: [{
|
||||
icon: 'el-icon-lx-home',
|
||||
index: 'dashboard',
|
||||
title: this.$t('sidebar.main')
|
||||
},
|
||||
{
|
||||
icon: 'el-icon-lx-cascades',
|
||||
index: '1',
|
||||
title: this.$t('sidebar.author'),
|
||||
subs: [{
|
||||
index: 'articleList',
|
||||
title: this.$t('sidebar.author1')
|
||||
},
|
||||
{
|
||||
index: 'articleAdd',
|
||||
title: this.$t('sidebar.author2')
|
||||
}
|
||||
]
|
||||
}, {
|
||||
icon: 'el-icon-document-copy',
|
||||
index: '2',
|
||||
title: this.$t('sidebar.man_ing'),
|
||||
subs: [{
|
||||
index: 'managing',
|
||||
title: this.$t('sidebar.man_ing1')
|
||||
},
|
||||
{
|
||||
index: 'manhistory',
|
||||
title: this.$t('sidebar.man_ing2')
|
||||
}
|
||||
]
|
||||
}, {
|
||||
icon: 'el-icon-data-analysis',
|
||||
index: '3',
|
||||
title: this.$t('sidebar.analyp'),
|
||||
subs: [{
|
||||
index: 'citationanalysis',
|
||||
title: this.$t('sidebar.analysis')
|
||||
}]
|
||||
}
|
||||
],
|
||||
// 审稿人
|
||||
reviewer_items: [{
|
||||
icon: 'el-icon-lx-home',
|
||||
index: 'dashboard',
|
||||
title: this.$t('sidebar.main')
|
||||
},
|
||||
{
|
||||
icon: 'el-icon-lx-cascades',
|
||||
index: '1',
|
||||
title: this.$t('sidebar.author'),
|
||||
subs: [{
|
||||
index: 'articleList',
|
||||
title: this.$t('sidebar.author1')
|
||||
},
|
||||
{
|
||||
index: 'articleAdd',
|
||||
title: this.$t('sidebar.author2')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
icon: 'el-icon-collection',
|
||||
index: '2',
|
||||
title: this.$t('sidebar.rev_ewer'),
|
||||
subs: [{
|
||||
index: 'peerewer',
|
||||
title: this.$t('sidebar.rev_ewer1')
|
||||
},
|
||||
{
|
||||
index: 'perhistory',
|
||||
title: this.$t('sidebar.rev_ewer2')
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
//超级管理员
|
||||
admin_items: [{
|
||||
icon: 'el-icon-lx-home',
|
||||
@@ -317,7 +281,7 @@
|
||||
subs: [{
|
||||
index: 'monitorManuscript',
|
||||
title: this.$t('sidebar.monitor1')
|
||||
}, ]
|
||||
}]
|
||||
|
||||
}
|
||||
// ,{
|
||||
@@ -350,13 +314,16 @@
|
||||
},
|
||||
created() {
|
||||
if (this.userrole == 2) { //其余的身份(显示作者)
|
||||
if (this.user_cap.includes('chief')) { //主编
|
||||
this.items = this.chief_items;
|
||||
} else if (this.user_cap.includes('reviewer')) { //审稿人
|
||||
this.items = this.reviewer_items;
|
||||
} else {
|
||||
this.items = this.author_items;
|
||||
}
|
||||
// if (this.user_cap.includes('chief')) { //主编
|
||||
// this.items = this.chief_items;
|
||||
// } else if (this.user_cap.includes('reviewer')) { //审稿人
|
||||
// this.items = this.reviewer_items;
|
||||
// } else if (this.user_cap.includes('yboard')) { //青年编委
|
||||
// this.items = this.yboard_items;
|
||||
// } else if (this.user_cap.includes(',board')) { //编委
|
||||
// this.items = this.board_items;
|
||||
// }
|
||||
this.items = this.author_items;
|
||||
} else if (this.userrole == 1) { //编辑
|
||||
this.items = this.editor_items;
|
||||
} else if (this.userrole == 0) { //超级管理员
|
||||
|
||||
Reference in New Issue
Block a user