diff --git a/src/layouts/home/index.vue b/src/layouts/home/index.vue
index 7d06182..50c574a 100644
--- a/src/layouts/home/index.vue
+++ b/src/layouts/home/index.vue
@@ -121,7 +121,7 @@ export default {
handler (val) {
this.path = val
// 是否显示左侧导航
- this.showSidebar = ['/assessment', '/achievement', '/information', '/shop', '/market', '/parnerOperation', '/parner', '/match', '/data', '/review', '/theoreticalCourse', '/resourse'].includes(val)
+ this.showSidebar = ['/assessment/list', '/achievement/list', '/evaluation/list', '/course/list', '/review/list', '/information/list', '/project/list', '/resourse/list', '/exam/list', '/review', '/theoreticalCourse', '/resourse'].includes(val)
},
immediate: true
}
@@ -210,7 +210,8 @@ export default {
}
.content {
- width: calc(100vw - 160px);
+ // width: calc(100vw - 160px);
+ flex: 1;
height: calc(100vh - 213px);
padding: 24px;
margin-bottom: 20px;
diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue
index c65269c..1635d34 100644
--- a/src/layouts/navbar/index.vue
+++ b/src/layouts/navbar/index.vue
@@ -41,18 +41,18 @@ export default {
active: this.$route.path,
defaultMenus: [
{
- icon: "el-icon-s-platform",
+ icon: "el-icon-data-analysis",
index: "/product/list",
title: "产品中心"
},
{
- icon: "el-icon-s-platform",
+ icon: "el-icon-collection",
index: "/station/list",
title: "教学中心"
},
{
icon: "el-icon-news",
- index: "/workbench",
+ index: "/workbench/list",
title: "工作台"
},
{
@@ -61,7 +61,7 @@ export default {
title: "赛事管理"
},
{
- icon: "el-icon-school",
+ icon: "el-icon-coin",
index: "/activity/list",
title: "创业活动"
},
@@ -71,8 +71,8 @@ export default {
title: "数据看板"
},
{
- icon: "el-icon-document",
- index: "/information/list",
+ icon: "el-icon-monitor",
+ index: "/backend/list",
title: "管理后台"
},
],
diff --git a/src/layouts/sidebar/index.vue b/src/layouts/sidebar/index.vue
index 2589833..38c7be9 100644
--- a/src/layouts/sidebar/index.vue
+++ b/src/layouts/sidebar/index.vue
@@ -36,43 +36,43 @@ export default {
active: '',
menus: [
{
- index: '/assessment',
+ index: '/assessment/list',
title: '考核管理'
},
{
- index: '/achievement',
+ index: '/achievement/list',
title: '成绩管理'
},
{
- index: '/evaluation',
+ index: '/evaluation/list',
title: '测评管理'
},
{
- index: '/course',
+ index: '/course/list',
title: '精品课程管理'
},
{
- index: '/review',
+ index: '/review/list',
title: '评阅中心'
},
{
- index: '/information',
+ index: '/information/list',
title: '资讯管理'
},
{
- index: '/project',
+ index: '/project/list',
title: '项目管理'
},
{
- index: '/resourse',
+ index: '/resourse/list',
title: '资源库'
},
{
- index: '/exam',
+ index: '/exam/list',
title: '理论考试系统'
},
{
- index: '/exam1',
+ index: '/exam1/list',
title: '备课管理'
},
],
diff --git a/src/pages/backend/list/index.vue b/src/pages/backend/list/index.vue
new file mode 100644
index 0000000..5d0a42d
--- /dev/null
+++ b/src/pages/backend/list/index.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/router/modules/assesment.js b/src/router/modules/assesment.js
index 478a3fb..f5a38d0 100644
--- a/src/router/modules/assesment.js
+++ b/src/router/modules/assesment.js
@@ -6,15 +6,17 @@ const pre = "assessment-";
export default {
path: `/assessment`,
+ redirect: {
+ path: `/assessment/list`,
+ },
component: BasicLayout,
children: [
{
- path: `/assessment`,
+ path: `list`,
component: () => import("@/pages/assessment/list"),
meta: { title: "考核管理" }
},
{
- name: `${pre}add`,
path: `add`,
component: () => import("@/pages/assessment/add/index.vue"),
meta: { title: "添加考核" }
diff --git a/src/router/modules/backend.js b/src/router/modules/backend.js
new file mode 100644
index 0000000..e9dcca6
--- /dev/null
+++ b/src/router/modules/backend.js
@@ -0,0 +1,23 @@
+import BasicLayout from "@/layouts/home";
+
+const meta = {};
+
+const pre = "backend-";
+
+export default {
+ path: "/backend",
+ name: "backend",
+ redirect: {
+ name: `${pre}list`
+ },
+ meta,
+ component: BasicLayout,
+ children: [
+ {
+ name: `${pre}list`,
+ path: `list`,
+ component: () => import("@/pages/backend/list"),
+ meta: { title: "管理后台" }
+ }
+ ]
+};
diff --git a/src/router/modules/workbench.js b/src/router/modules/workbench.js
index 5af9342..27c71d2 100644
--- a/src/router/modules/workbench.js
+++ b/src/router/modules/workbench.js
@@ -3,12 +3,12 @@ import BasicLayout from "@/layouts/home";
const meta = {};
export default {
- path: '/workbench',
+ path: '/workbench/list',
meta,
component: BasicLayout,
children: [
{
- path: '/workbench',
+ path: '/workbench/list',
component: () => import('@/pages/workbench/list'),
meta: { title: '工作台' }
}