mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
168 lines
10 KiB
JavaScript
168 lines
10 KiB
JavaScript
export const pages=[
|
|
{title:'问答',path:'/qa',hidden:false,children:[
|
|
{title:'问答管理',path:'manage',component:'qa/ManageList',hidden:false},
|
|
{title:'我提的问题',path:'mylist',component:'qa/MyList',hidden:false},
|
|
{title:'我回答的',path:'myreplys',component:'qa/MyReplys',hidden:false},
|
|
{title:'反馈问题',path:'feedback',component:'feedback/Index',hidden:false}
|
|
]},
|
|
{title:'课程工具',path:'/ctools',hidden:false,children:[
|
|
{title:'调查问卷',path:'survey/list',component:'survey/List',hidden:false},
|
|
{title:'新建问卷',path:'survey/design',component:'survey/Design',hidden:false}
|
|
]},
|
|
{title:'文章',path:'/article',hidden:false,children:[
|
|
{title:'我的文章',path:'mylist',component:'article/MyList',hidden:false},
|
|
{title: '@我的', path: 'contactme', component: 'article/contactMine', hidden: false },
|
|
{title:'发布文章',path:'input',component:'article/Input',hidden:false},
|
|
{title:'文章管理',path:'manage',component:'article/ManageList',hidden:false}
|
|
]},
|
|
{title:'案例',path:'/case',hidden:false,children:[
|
|
{title:'我的案例记录',path:'mylist',component:'case/MyList',hidden:false},
|
|
{title:'案例管理',path:'manage',component:'case/ManageList',hidden:false}
|
|
]},
|
|
{title: '我的待办',path: '/examine',hidden: false,children: [
|
|
{ title: '待审核的课程', path: 'notapproved', component: 'examine/NotApproved', hidden: false },
|
|
]},
|
|
{ title: '我的已办',path: '/examine',hidden: false,children: [
|
|
{ title: '已审核的课程', path: 'reviewed', component: 'examine/Reviewed', hidden: false },
|
|
]},
|
|
{title:'课程',path:'/course',hidden:false,children:[
|
|
{title:'课程首页',path:'index',component:'course/Index',hidden:true},
|
|
{title:'课程建设',path:'mylist',component:'course/TeacherList',hidden:true},
|
|
{title:'课程管理',path:'manage',component:'course/ManageList',hidden:false},
|
|
{title:'课程统计',path:'stat',component:'course/StatIndex',hidden:false},
|
|
{title:'课件管理',path:'courseware',component:'course/Courseware',hidden:false},
|
|
{title:'报名管理',path:'msignup',component:'study/ManageSignup',hidden:true},
|
|
{title:'公开课审核',path:'opencourse/audit',component:'course/OpenCourseAudit',hidden:true},
|
|
]},
|
|
{title:'业务管理',path:'/manage',hidden:false,children:[
|
|
{title:'教师管理',path:'teachers',component:'manage/TeacherList',hidden:false},
|
|
{title:'受众管理',path:'ugroups',component:'manage/UserGroupList',hidden:false},
|
|
{title:'学习记录管理',path:'studyrecord',component:'study/StudyRecord',hidden:true},
|
|
{title:'学习汇总',path:'studystat',component:'study/StudyStat',hidden:true},
|
|
{title:'评估详情',path:'appraise',component:'study/AppraiseInfo',hidden:true},
|
|
{title:'添加受众',path:'addaudiences',component:'manage/AddAudiences',hidden:true},
|
|
{title:'查看受众',path:'viewugroup',component:'manage/ViewUserGroup',hidden:true},
|
|
{title:'自动添加受众',path:'autoaddaudiences',component:'manage/AutoAddAudiences',hidden:true},
|
|
]},
|
|
{title:'题库试卷',path:'/exam',hidden:false,children:[
|
|
{title:'试题管理',path:'question',component:'exam/Question',hidden:false},
|
|
{title:'试卷管理',path:'testpaper',component:'exam/TestPaper',hidden:false},
|
|
{title:'考试管理',path:'list',component:'exam/ExamList',hidden:false},
|
|
{title:'我的考试待办',path:'mytask',component:'exam/MyExamTask',hidden:false},
|
|
{title:'我的考试已办',path:'myfinish',component:'exam/MyExamFinish',hidden:false},
|
|
]},
|
|
{title:'待办',path:'/need',hidden:false,children:[
|
|
{title:'待回答问题',path:'qareply',component:'qa/NeedReplys',hidden:false},
|
|
{title:'已回答问题',path:'qafinish',component:'qa/TeacherList',hidden:false},
|
|
{title:'我开发课程',path:'course',component:'course/TeacherList',hidden:false},
|
|
{title:'我的授课记录',path:'mylecnotes',component:'course/Mylecnotes',hidden:false},
|
|
// {title:'我的案例记录',path:'mycaseRecord',component:'course/MycaseRecord',hidden:false},
|
|
{title:'待审核的课程',path:'waitaudit',component:'course/WaitAudit',hidden:true},
|
|
{title:'已审核的课程',path:'waitaudited',component:'course/WaitAudited',hidden:true},
|
|
{title:'讲师认证',path:'lecturer',component:'lecturer/Index',hidden:true},
|
|
{title:'上传初稿',path:'draft',component:'lecturer/FirstDraft',hidden:true},
|
|
{title:'线上学习',path:'onlinelearning',component:'lecturer/OnlineLearning',hidden:true},
|
|
{title:'线下辅导',path:'coaching',component:'lecturer/CoachingPage',hidden:true},
|
|
{title:'线下辅导完成',path:'coachingsuccess',component:'lecturer/CoachingSuccess',hidden:true},
|
|
{title:'上传终稿',path:'final',component:'lecturer/FinalDraft',hidden:true},
|
|
{title:'终稿成功',path:'finalsuccess',component:'lecturer/FinalSuccess',hidden:true},
|
|
{title:'二次认证',path:'twoathentication',component:'lecturer/TwoAthentication',hidden:true},
|
|
{title:'二次辅导',path:'twocoaching',component:'lecturer/TwoCoaching',hidden:true},
|
|
{title:'二次辅导成功',path:'twocoachingsuccess',component:'lecturer/TwoCos',hidden:true},
|
|
{title:'二次终稿',path:'twofinal',component:'lecturer/TwoFinal',hidden:true},
|
|
{title:'二次终稿成功',path:'twofinals',component:'lecturer/TwoFinals',hidden:true},
|
|
]},
|
|
{title:'教师教学',path:'/teaching',hidden:false,children:[
|
|
{title:'授课记录',path:'course',component:'teacher/TeachingCourse',hidden:false},
|
|
]},
|
|
{title:'学习',path:'/uc/study',hidden:false,children:[
|
|
{title:'学习任务',path:'task',component:'study/TaskList',hidden:false},
|
|
{title:'正在学习',path:'courses',component:'study/Courses',hidden:false},
|
|
{title:'历史记录',path:'history',component:'study/FinishCourses',hidden:false},
|
|
{title:'学习路径图',path:'path',component:'study/StudyPath',hidden:false},
|
|
{title:'学习项目',path:'project',component:'study/StudyProject',hidden:false}
|
|
]},
|
|
{title:'我的必修',path:'/growth',hidden:false,children:[
|
|
{title:'专业力必修',path:'growthPage',component:'growth/index',hidden:false},
|
|
]},
|
|
{title:'个人中心',path:'/uc',hidden:false,children:[
|
|
{title:'首页',path:'index',component:'StudyIndex',hidden:false}
|
|
]},
|
|
{title:'个人',path:'/user',hidden:false,children:[
|
|
{title:'我的分享',path:'myshare',component:'share/MyList',hidden:false},
|
|
{title:'分享给我的',path:'toshare',component:'share/ToList',hidden:false},
|
|
{title:'我的笔记',path:'Mynotes',component:'user/Mynotes',hidden:true},
|
|
{title:'编辑笔记',path:'Noteedit',component:'user/Noteedit',hidden:true},
|
|
{title:'我的测评',path:'myassess',component:'user/MyAssess',hidden:true},
|
|
{title:'我的收藏',path:'favorites',component:'user/MyFavorites',hidden:false},
|
|
{title:'用户调研',path:'research',component:'user/Myresearch',hidden:false},
|
|
{title:'我的关注',path:'follows',component:'user/MyFollow',hidden:false},
|
|
{title:'我的草稿',path:'mydraft',component:'user/MyDraft',hidden:false},
|
|
{title:'个人设置',path:'setting',component:'user/Setting',hidden:false},
|
|
{title:'我的消息',path:'message',component:'user/Message',hidden:false},
|
|
{title:'开发工具下载',path:'tools',component:'tools/Index',hidden:false},
|
|
{title:'课程开发教程',path:'developtoolsdown',component:'tools/DeveloptoolsDown',hidden:true},
|
|
{title:'我的U币',path:'ucurrency',component:'ucurrency/Index',hidden:true},
|
|
{title:'我的勋章',path:'medal',component:'medal/Index',hidden:true},
|
|
{title:'勋章规则',path:'urules',component:'medal/urules',hidden:true},
|
|
{title:'排行榜',path:'ranking',component:'user/ranking',hidden:true},
|
|
|
|
]},
|
|
{title:'消息中心',path:'/message/center',hidden:false,children:[
|
|
{title:'消息中心',path:'index',component:'portal/user/Message',hidden:false}
|
|
]}
|
|
|
|
];
|
|
export const iframes=[
|
|
{title:'嵌入测试', path:'/iframe/index',hidden:false,component:'portal/iframe'},
|
|
{title:'课件管理', path:'/iframe/course/coursewares',hidden:false,component:'course/Courseware'},
|
|
{title:'课程管理', path:'/iframe/course/manages',hidden:false,component:'course/ManageList'},
|
|
{title:'考试试题管理', path:'/iframe/exam/questions',hidden:false,component:'exam/Question'},
|
|
{title:'查看答卷', path:'/iframe/exam/viewanswer',hidden:false,component:'exam/viewAnswer'},
|
|
{title:'考试试卷管理', path:'/iframe/exam/papers',hidden:false,component:'exam/TestPaper'},
|
|
{title:'考试管理', path:'/iframe/exam/tests',hidden:false,component:'exam/ExamList'},
|
|
{title:'案例管理', path:'/iframe/cases/manages',hidden:false,component:'case/ManageList'},
|
|
{title:'文章管理', path:'/iframe/article/manages',hidden:false,component:'article/ManageList'},
|
|
{title:'受众管理', path:'/iframe/ugroup/manages',hidden:false,component:'manage/AudienceList'},
|
|
{title:'受众编辑', path:'/iframe/ugroup/add',hidden:false,component:'manage/AudienceForm'},
|
|
{title:'查看受众', path:'/iframe/ugroup/view',hidden:false,component:'manage/AudienceView'},
|
|
{title:'问答管理', path:'/iframe/qa/manages',hidden:false,component:'qa/ManageList'},
|
|
{title:'待审核课程', path:'/iframe/course/noapproved',hidden:false,component:'examine/NotApproved'},
|
|
{title:'已审核课程', path:'/iframe/course/reviewed',hidden:false,component:'examine/Reviewed'},
|
|
{title:'标签管理', path:'/iframe/tag/manages',hidden:false,component:'tag/TagManageList'},
|
|
|
|
]
|
|
|
|
export function routers(){
|
|
let myrouters=[];
|
|
let n=5;
|
|
pages.forEach(item=>{
|
|
item.name=n+'00';
|
|
item.component='Layout';
|
|
item.alwaysShow=true;
|
|
item.meta={title:item.title,icon:"menu",noCache:true}
|
|
delete item.title;
|
|
if(item.children){
|
|
let h=n*100;
|
|
item.children.forEach((sub,idx)=>{
|
|
sub.name=(h+idx+1)+'';
|
|
sub.alwaysShow=false;
|
|
sub.meta={title:sub.title,icon:"menu",noCache:true}
|
|
delete sub.title;
|
|
})
|
|
};
|
|
myrouters.push(item);
|
|
n++;
|
|
});
|
|
//增加iframe的页面
|
|
|
|
iframes.forEach((item,index)=>{
|
|
item.name='iframe'+index;
|
|
item.alwaysShow=true;
|
|
item.meta={title:item.title,icon:"menu",noCache:true},
|
|
delete item.title;
|
|
myrouters.push(item);
|
|
})
|
|
return myrouters;
|
|
}
|