1
This commit is contained in:
@@ -55,7 +55,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
collapse: false,
|
||||
userrole:localStorage.getItem('ms_userrole'),
|
||||
userrole:localStorage.getItem('U_status'),
|
||||
items:[],
|
||||
author_items: [
|
||||
{
|
||||
@@ -77,18 +77,18 @@ export default {
|
||||
title:this.$t('sidebar.author2')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
icon: 'el-icon-user',
|
||||
index: '2',
|
||||
title: this.$t('sidebar.reviewerArticle'),
|
||||
subs:[
|
||||
{
|
||||
index:'authorApplyReviewer',
|
||||
title:this.$t('sidebar.authorApplyReviewer')
|
||||
}
|
||||
]
|
||||
}
|
||||
// {
|
||||
// icon: 'el-icon-user',
|
||||
// index: '2',
|
||||
// title: this.$t('sidebar.reviewerArticle'),
|
||||
// subs:[
|
||||
// {
|
||||
// index:'authorApplyReviewer',
|
||||
// title:this.$t('sidebar.authorApplyReviewer')
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
],
|
||||
editor_items:[
|
||||
{
|
||||
@@ -107,6 +107,21 @@ export default {
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
icon:'el-icon-paperclip',
|
||||
index:'4',
|
||||
title:this.$t('sidebar.editmber'),
|
||||
subs:[
|
||||
{
|
||||
index:'editmbereditor',
|
||||
title:this.$t('sidebar.editmber1')
|
||||
},
|
||||
{
|
||||
index:'editmberperiod',
|
||||
title:this.$t('sidebar.editmber2')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
icon:'el-icon-s-custom',
|
||||
index:'3',
|
||||
@@ -248,15 +263,16 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if(this.userrole==1){
|
||||
if(this.userrole==2){ //其余的身份(显示作者)
|
||||
this.items = this.author_items;
|
||||
}else if(this.userrole ==2){
|
||||
}else if(this.userrole ==1){ //编辑
|
||||
this.items = this.editor_items;
|
||||
}else if(this.userrole=='admin'){
|
||||
}else if(this.userrole==0){ //超级管理员
|
||||
this.items = this.admin_items;
|
||||
}else if(this.userrole=='reviewer'){
|
||||
this.items = this.reviewer_items;
|
||||
}
|
||||
// else if(this.userrole=='reviewer'){
|
||||
// this.items = this.reviewer_items;
|
||||
// }
|
||||
// 通过 Event Bus 进行组件间通信,来折叠侧边栏
|
||||
bus.$on('collapse', msg => {
|
||||
this.collapse = msg;
|
||||
|
||||
Reference in New Issue
Block a user