20230517
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="sidebar">
|
||||
<el-menu class="sidebar-el-menu" :default-active="onRoutes" :collapse="collapse" background-color="#006699"
|
||||
text-color="#fff" active-text-color="#fff" unique-opened router>
|
||||
text-color="#fff" active-text-color="#fff" unique-opened router>
|
||||
<template v-for="item in items">
|
||||
<template v-if="item.subs">
|
||||
<el-submenu :index="item.index" :key="item.index">
|
||||
@@ -11,10 +11,16 @@
|
||||
</template>
|
||||
<template v-for="subItem in item.subs">
|
||||
<el-submenu v-if="subItem.subs" :index="subItem.index" :key="subItem.index">
|
||||
<template slot="title">{{ subItem.title }}</template>
|
||||
<el-menu-item v-for="(threeItem,i) in subItem.subs" :key="i" :index="threeItem.index">{{ threeItem.title }}</el-menu-item>
|
||||
<template slot="title">
|
||||
{{ subItem.title }}
|
||||
<!-- <el-badge is-dot :hidden="false">{{ subItem.title }}</el-badge> -->
|
||||
</template>
|
||||
<el-menu-item v-for="(threeItem,i) in subItem.subs" :key="i" :index="threeItem.index">
|
||||
{{ threeItem.title }}
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
<el-menu-item v-else :index="subItem.index" :key="subItem.index">{{ subItem.title }}</el-menu-item>
|
||||
<el-menu-item v-else :index="subItem.index" :key="subItem.index">{{ subItem.title }}
|
||||
</el-menu-item>
|
||||
</template>
|
||||
</el-submenu>
|
||||
</template>
|
||||
@@ -62,7 +68,7 @@
|
||||
<el-menu-item index="managing">
|
||||
{{$t('sidebar.man_ing1')}}
|
||||
</el-menu-item>
|
||||
<el-menu-item index="manhistory">
|
||||
<el-menu-item index="manarticle">
|
||||
{{$t('sidebar.man_ing2')}}
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
@@ -120,26 +126,31 @@
|
||||
</el-menu-item>
|
||||
</template>
|
||||
<template v-if="this.userrole == 1">
|
||||
<el-menu-item>
|
||||
<a href="http://master.tmrjournals.com" target="_blank" style="color: #bfcbd9;">
|
||||
<i class="el-icon-d-arrow-right"></i> Management System
|
||||
</a>
|
||||
</el-menu-item>
|
||||
<el-menu-item>
|
||||
<a href="https://mail.mxhichina.com/alimail" target="_blank" style="color: #bfcbd9;">
|
||||
<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>
|
||||
<el-menu-item>
|
||||
<a href="https://quillbot.com" target="_blank" style="color: #bfcbd9;">
|
||||
<i class="el-icon-d-arrow-right"></i> quillbot.com
|
||||
</a>
|
||||
</el-menu-item>
|
||||
<el-submenu index="5">
|
||||
<template slot="title">
|
||||
<i class="el-icon-paperclip"></i> {{$t('sidebar.tools')}}
|
||||
</template>
|
||||
<el-menu-item index="1" key="1">
|
||||
<a href="http://master.tmrjournals.com" target="_blank" style="color: #fff;">
|
||||
Management System
|
||||
</a>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="2" key="2">
|
||||
<a href="https://mail.mxhichina.com/alimail" target="_blank" style="color: #fff;">
|
||||
Official mailbox
|
||||
</a>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="3" key="3">
|
||||
<a href="https://www.grammarly.com" target="_blank" style="color: #fff;">
|
||||
www.grammarly.com
|
||||
</a>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="4" key="4">
|
||||
<a href="https://quillbot.com" target="_blank" style="color: #fff;">
|
||||
quillbot.com
|
||||
</a>
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
</template>
|
||||
</el-menu>
|
||||
</div>
|
||||
@@ -168,10 +179,14 @@
|
||||
index: 'articleList',
|
||||
title: this.$t('sidebar.author1')
|
||||
},
|
||||
{
|
||||
index: 'articleDrafts',
|
||||
title: this.$t('sidebar.author3')
|
||||
},
|
||||
{
|
||||
index: 'articleAdd',
|
||||
title: this.$t('sidebar.author2')
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
// ,{
|
||||
@@ -188,94 +203,128 @@
|
||||
},
|
||||
{
|
||||
icon: 'el-icon-lx-copy',
|
||||
index: '2',
|
||||
title: this.$t('sidebar.editor'),
|
||||
subs: [{
|
||||
index: 'articleListEditor',
|
||||
title: this.$t('sidebar.editor1')
|
||||
}]
|
||||
index: 'articleListEditor',
|
||||
title: this.$t('sidebar.editor1'),
|
||||
},
|
||||
{
|
||||
icon: 'el-icon-paperclip',
|
||||
index: '4',
|
||||
title: this.$t('sidebar.editmber'),
|
||||
subs: [{
|
||||
index: 'editorBorder',
|
||||
title: this.$t('sidebar.editmber1')
|
||||
}
|
||||
// {
|
||||
// icon: 'el-icon-user',
|
||||
// index: '3',
|
||||
// title: this.$t('sidebar.userTalSys'),
|
||||
// subs: [{
|
||||
// index: 'partyList',
|
||||
// title: this.$t('sidebar.userTalSys1')
|
||||
// }
|
||||
// , {
|
||||
// index: 'editmbereditor',
|
||||
// title: this.$t('sidebar.editmber2')
|
||||
// index: 'partyDelete',
|
||||
// title: this.$t('sidebar.userTalSys2')
|
||||
// }, {
|
||||
// index: 'editmbereditormoshi',
|
||||
// title: this.$t('sidebar.editmber3')
|
||||
// },
|
||||
]
|
||||
},
|
||||
// index: 'editorBorder',
|
||||
// title: this.$t('sidebar.userTalSys3')
|
||||
// }, {
|
||||
// index: 'reviewerApplyList',
|
||||
// title: this.$t('sidebar.userTalSys4')
|
||||
// }, {
|
||||
// index: 'reviewerAuthorList',
|
||||
// title: this.$t('sidebar.userTalSys5')
|
||||
// }, {
|
||||
// index: 'reviewerList',
|
||||
// title: this.$t('sidebar.userTalSys6')
|
||||
// }, {
|
||||
// index: 'editApplyList',
|
||||
// title: this.$t('sidebar.userTalSys7')
|
||||
// }, {
|
||||
// index: 'youthApplyList',
|
||||
// title: this.$t('sidebar.userTalSys8')
|
||||
// },
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
icon: 'el-icon-price-tag',
|
||||
index: '3',
|
||||
title: this.$t('sidebar.reviewer'),
|
||||
icon: 'el-icon-user',
|
||||
index: '4',
|
||||
title: this.$t('sidebar.userManSys'),
|
||||
subs: [{
|
||||
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')
|
||||
title: this.$t('sidebar.userManSys1'),
|
||||
index: '41',
|
||||
subs: [
|
||||
// {
|
||||
// index: 'partyListAct',
|
||||
// title: this.$t('sidebar.userManSys11')
|
||||
// },{
|
||||
// index: 'partyListIna',
|
||||
// title: this.$t('sidebar.userManSys12')
|
||||
// },
|
||||
// {
|
||||
// index: 'reviewerAdd',
|
||||
// title: this.$t('sidebar.reviewer5')
|
||||
// }
|
||||
]
|
||||
{
|
||||
index: 'partyList',
|
||||
title: this.$t('sidebar.userManSys14')
|
||||
},
|
||||
{
|
||||
index: 'partyListCorr',
|
||||
title: this.$t('sidebar.userManSys15')
|
||||
},
|
||||
{
|
||||
index: 'partyListPot',
|
||||
title: this.$t('sidebar.userManSys13')
|
||||
}]
|
||||
},
|
||||
// {
|
||||
// index: '',
|
||||
// title: this.$t('sidebar.userManSys2')
|
||||
// },
|
||||
{
|
||||
title: this.$t('sidebar.userManSys3'),
|
||||
index: '43',
|
||||
subs: [{
|
||||
index: 'reviewerList',
|
||||
title: this.$t('sidebar.userManSys31')
|
||||
},{
|
||||
index: 'reviewerApplyList',
|
||||
title: this.$t('sidebar.userManSys32')
|
||||
},{
|
||||
index: 'reviewerAuthorList',
|
||||
title: this.$t('sidebar.userManSys33')
|
||||
}]
|
||||
}, {
|
||||
title: this.$t('sidebar.userManSys4'),
|
||||
index: '44',
|
||||
subs: [{
|
||||
index: 'editorBorder',
|
||||
title: this.$t('sidebar.userManSys41')
|
||||
},{
|
||||
index: 'editApplyList',
|
||||
title: this.$t('sidebar.userManSys42')
|
||||
}]
|
||||
}, {
|
||||
title: this.$t('sidebar.userManSys5'),
|
||||
index: '45',
|
||||
subs: [
|
||||
{
|
||||
index: 'youthList',
|
||||
title: this.$t('sidebar.userManSys51')
|
||||
},
|
||||
{
|
||||
index: 'youthApplyList',
|
||||
title: this.$t('sidebar.userManSys52')
|
||||
}]
|
||||
},
|
||||
{
|
||||
index: 'disseMRecord',
|
||||
title: this.$t('sidebar.userManSys6')
|
||||
},
|
||||
{
|
||||
index: 'partyDelete',
|
||||
title: this.$t('sidebar.userManSys7')
|
||||
}]
|
||||
},
|
||||
{
|
||||
icon: 'el-icon-data-analysis',
|
||||
index: '5',
|
||||
title: this.$t('sidebar.analyp'),
|
||||
subs: [{
|
||||
index: 'citationanalysis',
|
||||
title: this.$t('sidebar.analysis')
|
||||
}]
|
||||
index: 'citationanalysis',
|
||||
title: this.$t('sidebar.analysis'),
|
||||
},
|
||||
{
|
||||
icon: 'el-icon-coordinate',
|
||||
index: '6',
|
||||
title: this.$t('sidebar.party'),
|
||||
subs: [{
|
||||
index: 'partyList',
|
||||
title: this.$t('sidebar.party2')
|
||||
},{
|
||||
index: 'partyDelete',
|
||||
title: this.$t('sidebar.party3')
|
||||
}
|
||||
]
|
||||
icon: 'el-icon-chat-line-square',
|
||||
index: 'TMRGPT',
|
||||
title: 'TMRGPT',
|
||||
},
|
||||
// {
|
||||
// icon: 'el-icon-message',
|
||||
// index: '7',
|
||||
// title: this.$t('sidebar.mailbox'),
|
||||
// subs: [{
|
||||
// index: 'mailboxSend',
|
||||
// title: this.$t('sidebar.mailbox1')
|
||||
// },{
|
||||
// index: 'mailboxCollect',
|
||||
// title: this.$t('sidebar.mailbox2')
|
||||
// },{
|
||||
// index: 'mailboxMould',
|
||||
// title: this.$t('sidebar.mailbox3')
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
],
|
||||
//超级管理员
|
||||
admin_items: [{
|
||||
@@ -283,6 +332,11 @@
|
||||
index: 'dashboard',
|
||||
title: this.$t('sidebar.main')
|
||||
},
|
||||
// {
|
||||
// icon: 'el-icon-document-copy',
|
||||
// index: 'documentView',
|
||||
// title: this.$t('sidebar.document'),
|
||||
// },
|
||||
{
|
||||
icon: 'el-icon-connection',
|
||||
index: '5',
|
||||
@@ -340,10 +394,9 @@
|
||||
index: '9',
|
||||
title: this.$t('sidebar.email'),
|
||||
subs: [{
|
||||
index: 'mailtemplate',
|
||||
title: this.$t('sidebar.email1')
|
||||
},
|
||||
]
|
||||
index: 'mailtemplate',
|
||||
title: this.$t('sidebar.email1')
|
||||
}, ]
|
||||
},
|
||||
{
|
||||
icon: 'el-icon-discount',
|
||||
@@ -364,17 +417,15 @@
|
||||
index: '7',
|
||||
title: this.$t('sidebar.party'),
|
||||
subs: [{
|
||||
index: 'partyEditor',
|
||||
title: this.$t('sidebar.party1')
|
||||
},{
|
||||
index: 'partyList',
|
||||
title: this.$t('sidebar.party2')
|
||||
},
|
||||
{
|
||||
index: 'partyDelete',
|
||||
title: this.$t('sidebar.party3')
|
||||
}
|
||||
]
|
||||
index: 'partyEditor',
|
||||
title: this.$t('sidebar.party1')
|
||||
}, {
|
||||
index: 'partyList',
|
||||
title: this.$t('sidebar.party2')
|
||||
}, {
|
||||
index: 'partyDelete',
|
||||
title: this.$t('sidebar.party3')
|
||||
}]
|
||||
},
|
||||
// ,{
|
||||
// icon: 'el-icon-data-analysis',
|
||||
@@ -418,6 +469,7 @@
|
||||
this.items = this.author_items;
|
||||
} else if (this.userrole == 1) { //编辑
|
||||
this.items = this.editor_items;
|
||||
this.getDate()
|
||||
} else if (this.userrole == 0) { //超级管理员
|
||||
this.items = this.admin_items;
|
||||
}
|
||||
@@ -427,7 +479,13 @@
|
||||
this.collapse = msg;
|
||||
bus.$emit('collapse-content', msg);
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 获取数据
|
||||
getDate() {
|
||||
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -450,7 +508,7 @@
|
||||
}
|
||||
|
||||
.sidebar-el-menu:not(.el-menu--collapse) {
|
||||
width: 250px;
|
||||
width: 260px;
|
||||
}
|
||||
|
||||
.sidebar>ul {
|
||||
@@ -482,7 +540,7 @@
|
||||
|
||||
.el-submenu__title i {
|
||||
color: #fff !important;
|
||||
top: 54%;
|
||||
top: 55% !important;
|
||||
}
|
||||
|
||||
.el-menu-item i {
|
||||
|
||||
Reference in New Issue
Block a user