2022年5月29日从svn移到git

This commit is contained in:
daihh
2022-05-29 18:56:34 +08:00
commit b050613020
488 changed files with 68444 additions and 0 deletions

110
src/data/pages.js Normal file
View File

@@ -0,0 +1,110 @@
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:'/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:'waitaudit',component:'course/WaitAudit',hidden:true},
{title:'已审核的课程',path:'waitaudited',component:'course/WaitAudited',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:'/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:'myassess',component:'user/MyAssess',hidden:true},
{title:'我的收藏',path:'favorites',component:'user/MyFavorites',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}
]}
]
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++;
});
return myrouters;
}