|
@@ -47,17 +47,20 @@ export default {
|
|
|
// 用户类型与菜单映射
|
|
|
const projectListMap = {
|
|
|
USER: [
|
|
|
- { key: '', name: '个人工作台' },
|
|
|
- { key: 'project_manage', name: '项目管理' },
|
|
|
- { key: 'create_project', name: '创建项目' },
|
|
|
+ { key: 'home', name: '主页' },
|
|
|
+ { key: 'personal_workbench/project', name: '教材管理' },
|
|
|
+ { key: 'personal_workbench/edit_task', name: '教材制作' },
|
|
|
+ { key: 'personal_workbench/check_task', name: '教材审核' },
|
|
|
{ key: 'personal_center', name: '个人中心' },
|
|
|
],
|
|
|
ORG_MANAGER: [
|
|
|
+ { key: 'home', name: '主页' },
|
|
|
{ key: 'project_manage/org/project', name: '项目管理' },
|
|
|
{ key: 'user_manage_org', name: '用户管理' },
|
|
|
{ key: 'personal_center', name: '个人中心' },
|
|
|
],
|
|
|
ADMIN: [
|
|
|
+ { key: 'home', name: '主页' },
|
|
|
{ key: 'org_manage', name: '机构管理' },
|
|
|
{ key: 'user_manage', name: '用户管理' },
|
|
|
{ key: 'system_config', name: '系统配置' },
|
|
@@ -73,7 +76,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- let path = this.$route.path.split('/')[1] === 'personal_workbench' ? '' : this.$route.path.replace(/^\//, '');
|
|
|
+ let path = this.$route.path.replace(/^\//, '');
|
|
|
this.activePro = path;
|
|
|
this.LoginNavIndex = this.projectList.findIndex((item) => item.key === path);
|
|
|
},
|