diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 02760b7..dc819f7 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -442,12 +442,15 @@ li { .el-switch__label span { font-size: 12px; } -.m-b-20 { - margin-bottom: 20px; +.m-r-5 { + margin-right: 5px; } .m-r-10 { margin-right: 10px; } +.m-b-20 { + margin-bottom: 20px; +} @media (max-width: 720px) { .el-message { min-width: auto !important; diff --git a/src/router/index.js b/src/router/index.js index 3e2e643..6532a47 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,293 +4,301 @@ import Router from 'vue-router'; Vue.use(Router); let router = new Router({ - mode: 'hash', - base: process.env.BASE_URL, - routes: [ - { - path: '/', - redirect: '/login' - }, - { - path: '/', - component: () => import('../views/Home.vue'), - meta: { title: '自述文件' }, - children: [ - { - path: '/customer', - component: () => import( '../views/customer/customer.vue'), - // meta: { title: '客户管理' } - }, - { - path: '/addcustomer', - component: () => import( '../views/customer/AddCustomer.vue'), - // meta: { title: '新增客户' } - }, - { - path: '/bmOrder', - component: () => import( '../views/customer/Order.vue'), - // meta: { title: '新增客户' } - }, - { - path: '/user', - component: () => import( '../views/user/User.vue'), - // meta: { title: '用户管理' } - }, - { - path: '/adduser', - component: () => import( '../views/user/AddUser.vue'), - // meta: { title: '新增用户' } - }, - { - path: '/info', - component: () => import( '../views/user/Info.vue'), - // meta: { title: '新增用户' } - }, - { - path: '/order', - component: () => import( '../views/order/Order.vue'), - // meta: { title: '订单管理' } - }, - { - path: '/addorder', - component: () => import( '../views/order/AddOrder.vue'), - // meta: { title: '新增订单' } - }, - { - path: '/selectClient', - component: () => import( '../views/order/selectClient.vue'), - // meta: { title: '选择订单客户' } - }, + mode: 'hash', + base: process.env.BASE_URL, + routes: [ + { + path: '/', + redirect: '/login' + }, + { + path: '/', + component: () => import('../views/Home.vue'), + meta: { title: '自述文件' }, + children: [ + { + path: '/customer', + component: () => import('../views/customer/customer.vue'), + // meta: { title: '客户管理' } + }, + { + path: '/addcustomer', + component: () => import('../views/customer/AddCustomer.vue'), + // meta: { title: '新增客户' } + }, + { + path: '/bmOrder', + component: () => import('../views/customer/Order.vue'), + // meta: { title: '新增客户' } + }, + { + path: '/user', + component: () => import('../views/user/User.vue'), + // meta: { title: '用户管理' } + }, + { + path: '/adduser', + component: () => import('../views/user/AddUser.vue'), + // meta: { title: '新增用户' } + }, + { + path: '/info', + component: () => import('../views/user/Info.vue'), + // meta: { title: '新增用户' } + }, + { + path: '/order', + component: () => import('../views/order/Order.vue'), + // meta: { title: '订单管理' } + }, + { + path: '/addorder', + component: () => import('../views/order/AddOrder.vue'), + // meta: { title: '新增订单' } + }, + { + path: '/selectClient', + component: () => import('../views/order/selectClient.vue'), + // meta: { title: '选择订单客户' } + }, - { - path: '/configure', - component: () => import( '../views/serve/Configure.vue'), - // meta: { title: '服务配置' } - }, - { - path: '/backstage', - component: () => import( '../views/serve/backstage'), - // meta: { title: '服务配置' } - }, - { - path: '/addModel', - component: () => import( '../views/serve/addModel'), - // meta: { title: '服务配置' } - }, - { - path: '/addconfigure', - component: () => import( '../views/serve/AddConfigure.vue'), - // meta: { title: '新增配置' } - }, - { - path: '/projectList', - component: () => import( '../views/serve/projectList.vue'), - // meta: { title: '项目管理' } - }, - { - path: '/projectAdd', - component: () => import( '../views/serve/projectAdd.vue'), - // meta: { title: '项目配置' } - }, - { - path: '/curriculum', - component: () => import( '../views/course/Curriculum.vue'), - // meta: { title: '课程管理' } - }, - { - path: '/addcurriculum', - component: () => import( '../views/course/AddCurriculum.vue'), - // meta: { title: '新建课程' } - }, - { - path: '/contentSettings', - component: () => import( '../views/course/contentSettings.vue'), - // meta: { title: '内容设置' } - }, - { - path: '/addlink', - component: () => import( '../views/course/AddLink.vue'), - // meta: { title: '添加环节' } - }, - { - path: '/data', - component: () => import( '../views/data/Data.vue'), - // meta: { title: '数据管理' } - }, - { - path: '/match', - component: () => import( '../views/match/list'), - // meta: { title: '数据管理' } - }, - { - path: '/addMatch', - component: () => import( '../views/match/add'), - // meta: { title: '数据管理' } - }, - { - path: '/matchManage', - component: () => import( '../views/match/manage'), - // meta: { title: '数据管理' } - }, - { - path: '/noticeDetail', - component: () => import( '../views/match/manage/noticeDetail'), - // meta: { title: '数据管理' } - }, - { - path: '/matchArchList', - component: () => import( '../views/match/manage/matchArchList'), - // meta: { title: '数据管理' } - }, - { - path: '/matchRank', - component: () => import( '../views/match/manage/matchRank'), - // meta: { title: '数据管理' } - }, - { - path: '/matchReport', - component: () => import( '../views/match/manage/matchReport'), - // meta: { title: '数据管理' } - }, - { - path: '/matchInfo', - component: () => import( '../views/match/manage/matchInfo'), - // meta: { title: '数据管理' } - }, - { - path: `/theoreticalCourse`, - component: () => import("../views//theoreticalCourse/list"), - meta: { title: "理论课程" } - }, - { - path: `/addTheoreticalCourse`, - component: () => import("../views//theoreticalCourse/add"), - meta: { title: "理论课程详情" } - }, - { - path: `/previewTheoreticalCourse`, - component: () => import("../views//theoreticalCourse/preview"), - meta: { title: "理论课程预览" } - }, - { - path: `/setTheoreticalCourse`, - component: () => import("../views//theoreticalCourse/contentSettings"), - meta: { title: "理论课程内容设置" } - }, - { - path: `/information`, - component: () => import("../views//information/list"), - meta: { title: "资讯管理" } - }, - { - path: `/addArticle`, - component: () => import("../views//information/addArticle"), - meta: { title: "新增文章" } - }, - { - path: '/system', - component: () => import( '../views/system'), - // meta: { title: '数据管理' } - }, - { - path: '/manageLog', - component: () => import( '../views/system/manageLog'), - // meta: { title: '数据管理' } - }, - { - path: '/addLog', - component: () => import( '../views/system/addLog'), - // meta: { title: '数据管理' } - }, - { - path: '/permission', - component: () => import('../views/customer/Permission.vue'), - // meta: { title: '应用权限', permission: true } - }, - { - path: '/person', - component: () => import('../views/setting'), - // meta: { title: '个人中心' } - }, - { - path: '/parner', - component: () => import('../views/parner'), - // meta: { title: '个人中心' } - }, - { - path: '/parnerOperation', - component: () => import('../views/parnerOperation'), - }, - { - path: '/learnMg', - component: () => import('../views/parnerOperation/learnMg'), - }, - { - path: '/schemeSet', - component: () => import('../views/parnerOperation/schemeSet'), - }, - { - path: '/shop', - component: () => import('../views/shop/list'), - }, - { - path: '/shop/addProduct', - component: () => import('../views/shop/addProduct'), - }, - { - path: '/404', - component: () => import('../views/404.vue'), - // meta: { title: '404' } - }, - { - path: '/403', - component: () => import('../views/403.vue'), - // meta: { title: '403' } - } - ] - }, - { - path: '/login', - component: () => import('../views/Login.vue'), - meta: { title: '登录' } - }, - { - path: '/devLogin', - component: () => import('../views/devLogin.vue'), - meta: { title: '开发者登录' } - }, - { - path: '/join', - component: () => import('../views/join'), - meta: { title: '城市合伙人运营管理平台' } - }, - { - path: '/matchPreview', - component: () => import( '../views/match/preview'), - // meta: { title: '数据管理' } - }, - { - path: '/success', - component: () => import('../views/join/success'), - meta: { title: '城市合伙人运营管理平台' } - }, - { - path: '*', - redirect: '/404' + { + path: '/configure', + component: () => import('../views/serve/Configure.vue'), + // meta: { title: '服务配置' } + }, + { + path: '/backstage', + component: () => import('../views/serve/backstage'), + // meta: { title: '服务配置' } + }, + { + path: '/addModel', + component: () => import('../views/serve/addModel'), + // meta: { title: '服务配置' } + }, + { + path: '/addconfigure', + component: () => import('../views/serve/AddConfigure.vue'), + // meta: { title: '新增配置' } + }, + { + path: '/projectList', + component: () => import('../views/serve/projectList.vue'), + // meta: { title: '项目管理' } + }, + { + path: '/projectAdd', + component: () => import('../views/serve/projectAdd.vue'), + // meta: { title: '项目配置' } + }, + { + path: '/curriculum', + component: () => import('../views/course/Curriculum.vue'), + // meta: { title: '课程管理' } + }, + { + path: '/addcurriculum', + component: () => import('../views/course/AddCurriculum.vue'), + // meta: { title: '新建课程' } + }, + { + path: '/contentSettings', + component: () => import('../views/course/contentSettings.vue'), + // meta: { title: '内容设置' } + }, + { + path: '/addlink', + component: () => import('../views/course/AddLink.vue'), + // meta: { title: '添加环节' } + }, + { + path: '/data', + component: () => import('../views/data/Data.vue'), + // meta: { title: '数据管理' } + }, + { + path: '/match', + component: () => import('../views/match/list'), + // meta: { title: '数据管理' } + }, + { + path: '/addMatch', + component: () => import('../views/match/add'), + // meta: { title: '数据管理' } + }, + { + path: '/matchManage', + component: () => import('../views/match/manage'), + // meta: { title: '数据管理' } + }, + { + path: '/noticeDetail', + component: () => import('../views/match/manage/noticeDetail'), + // meta: { title: '数据管理' } + }, + { + path: '/matchArchList', + component: () => import('../views/match/manage/matchArchList'), + // meta: { title: '数据管理' } + }, + { + path: '/matchRank', + component: () => import('../views/match/manage/matchRank'), + // meta: { title: '数据管理' } + }, + { + path: '/matchReport', + component: () => import('../views/match/manage/matchReport'), + // meta: { title: '数据管理' } + }, + { + path: '/matchInfo', + component: () => import('../views/match/manage/matchInfo'), + // meta: { title: '数据管理' } + }, + { + path: `/theoreticalCourse`, + component: () => import("../views//theoreticalCourse/list"), + meta: { title: "理论课程" } + }, + { + path: `/addTheoreticalCourse`, + component: () => import("../views//theoreticalCourse/add"), + meta: { title: "理论课程详情" } + }, + { + path: `/previewTheoreticalCourse`, + component: () => import("../views//theoreticalCourse/preview"), + meta: { title: "理论课程预览" } + }, + { + path: `/setTheoreticalCourse`, + component: () => import("../views//theoreticalCourse/contentSettings"), + meta: { title: "理论课程内容设置" } + }, + { + path: `/information`, + component: () => import("../views//information/list"), + meta: { title: "资讯管理" } + }, + { + path: `/addArticle`, + component: () => import("../views//information/addArticle"), + meta: { title: "新增文章" } + }, + { + path: '/system', + component: () => import('../views/system'), + // meta: { title: '数据管理' } + }, + { + path: '/manageLog', + component: () => import('../views/system/manageLog'), + // meta: { title: '数据管理' } + }, + { + path: '/addLog', + component: () => import('../views/system/addLog'), + // meta: { title: '数据管理' } + }, + { + path: '/permission', + component: () => import('../views/customer/Permission.vue'), + // meta: { title: '应用权限', permission: true } + }, + { + path: '/person', + component: () => import('../views/setting'), + // meta: { title: '个人中心' } + }, + { + path: '/parner', + component: () => import('../views/parner'), + // meta: { title: '个人中心' } + }, + { + path: '/parnerOperation', + component: () => import('../views/parnerOperation'), + }, + { + path: '/learnMg', + component: () => import('../views/parnerOperation/learnMg'), + }, + { + path: '/schemeSet', + component: () => import('../views/parnerOperation/schemeSet'), + }, + { + path: '/shop', + component: () => import('../views/shop/list'), + }, + { + path: '/shop/addProduct', + component: () => import('../views/shop/addProduct'), + }, + { + path: '/theoryExam/list', + component: () => import('../views/theoryExam/list/index'), + }, + { + path: '/theoryExam/quesBank', + component: () => import('../views/theoryExam/quesBank'), + }, + { + path: '/404', + component: () => import('../views/404.vue'), + // meta: { title: '404' } + }, + { + path: '/403', + component: () => import('../views/403.vue'), + // meta: { title: '403' } } - ] + ] + }, + { + path: '/login', + component: () => import('../views/Login.vue'), + meta: { title: '登录' } + }, + { + path: '/devLogin', + component: () => import('../views/devLogin.vue'), + meta: { title: '开发者登录' } + }, + { + path: '/join', + component: () => import('../views/join'), + meta: { title: '城市合伙人运营管理平台' } + }, + { + path: '/matchPreview', + component: () => import('../views/match/preview'), + // meta: { title: '数据管理' } + }, + { + path: '/success', + component: () => import('../views/join/success'), + meta: { title: '城市合伙人运营管理平台' } + }, + { + path: '*', + redirect: '/404' + } + ] }); -router.beforeEach(function(to, from, next) { - // 根据路由元信息设置文档标题 - window.document.title = to.meta.title || '中台'; - //使用钩子函数对路由进行权限跳转 - const login = location.href.includes('dev.huorantech.cn') ? '/devLogin' : '/login' - if (!sessionStorage.getItem('token') && to.path !== login && to.path !== '/join' && to.path !== '/success') { - next(login); - } else { - next(); - } +router.beforeEach(function (to, from, next) { + // 根据路由元信息设置文档标题 + window.document.title = to.meta.title || '中台'; + //使用钩子函数对路由进行权限跳转 + const login = location.href.includes('dev.huorantech.cn') ? '/devLogin' : '/login' + if (!sessionStorage.getItem('token') && to.path !== login && to.path !== '/join' && to.path !== '/success') { + next(login); + } else { + next(); + } }); export default router; diff --git a/src/views/theoreticalCourse/list/buildPlatform/index.vue b/src/views/theoreticalCourse/list/buildPlatform/index.vue index 5741f58..70de166 100644 --- a/src/views/theoreticalCourse/list/buildPlatform/index.vue +++ b/src/views/theoreticalCourse/list/buildPlatform/index.vue @@ -2,162 +2,88 @@
-
- - - + + + - + - + - + - + - + - + - + - +
@@ -349,10 +275,10 @@ export default { \ No newline at end of file diff --git a/src/views/theoreticalCourse/list/index.vue b/src/views/theoreticalCourse/list/index.vue index a0d6f7a..bfc951b 100644 --- a/src/views/theoreticalCourse/list/index.vue +++ b/src/views/theoreticalCourse/list/index.vue @@ -2,11 +2,8 @@
- {{ item }} + {{ item + }}
@@ -61,5 +58,4 @@ export default { }; - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/theoryExam/list/index.vue b/src/views/theoryExam/list/index.vue new file mode 100644 index 0000000..8c6cfef --- /dev/null +++ b/src/views/theoryExam/list/index.vue @@ -0,0 +1,57 @@ + + + + + diff --git a/src/views/theoryExam/list/program.vue b/src/views/theoryExam/list/program.vue new file mode 100644 index 0000000..09d30fe --- /dev/null +++ b/src/views/theoryExam/list/program.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/src/views/theoryExam/list/system.vue b/src/views/theoryExam/list/system.vue new file mode 100644 index 0000000..90f852c --- /dev/null +++ b/src/views/theoryExam/list/system.vue @@ -0,0 +1,321 @@ + + + + + diff --git a/src/views/theoryExam/quesBank.vue b/src/views/theoryExam/quesBank.vue new file mode 100644 index 0000000..5d64978 --- /dev/null +++ b/src/views/theoryExam/quesBank.vue @@ -0,0 +1,357 @@ + + + + + \ No newline at end of file