dev_202412
yujialong 2 months ago
parent e83aac6942
commit f538b92d38
  1. 5
      src/layouts/home/index.vue
  2. 12
      src/layouts/navbar/index.vue
  3. 20
      src/layouts/sidebar/index.vue
  4. 62
      src/pages/backend/list/index.vue
  5. 6
      src/router/modules/assesment.js
  6. 23
      src/router/modules/backend.js
  7. 4
      src/router/modules/workbench.js

@ -121,7 +121,7 @@ export default {
handler (val) { handler (val) {
this.path = 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 immediate: true
} }
@ -210,7 +210,8 @@ export default {
} }
.content { .content {
width: calc(100vw - 160px); // width: calc(100vw - 160px);
flex: 1;
height: calc(100vh - 213px); height: calc(100vh - 213px);
padding: 24px; padding: 24px;
margin-bottom: 20px; margin-bottom: 20px;

@ -41,18 +41,18 @@ export default {
active: this.$route.path, active: this.$route.path,
defaultMenus: [ defaultMenus: [
{ {
icon: "el-icon-s-platform", icon: "el-icon-data-analysis",
index: "/product/list", index: "/product/list",
title: "产品中心" title: "产品中心"
}, },
{ {
icon: "el-icon-s-platform", icon: "el-icon-collection",
index: "/station/list", index: "/station/list",
title: "教学中心" title: "教学中心"
}, },
{ {
icon: "el-icon-news", icon: "el-icon-news",
index: "/workbench", index: "/workbench/list",
title: "工作台" title: "工作台"
}, },
{ {
@ -61,7 +61,7 @@ export default {
title: "赛事管理" title: "赛事管理"
}, },
{ {
icon: "el-icon-school", icon: "el-icon-coin",
index: "/activity/list", index: "/activity/list",
title: "创业活动" title: "创业活动"
}, },
@ -71,8 +71,8 @@ export default {
title: "数据看板" title: "数据看板"
}, },
{ {
icon: "el-icon-document", icon: "el-icon-monitor",
index: "/information/list", index: "/backend/list",
title: "管理后台" title: "管理后台"
}, },
], ],

@ -36,43 +36,43 @@ export default {
active: '', active: '',
menus: [ menus: [
{ {
index: '/assessment', index: '/assessment/list',
title: '考核管理' title: '考核管理'
}, },
{ {
index: '/achievement', index: '/achievement/list',
title: '成绩管理' title: '成绩管理'
}, },
{ {
index: '/evaluation', index: '/evaluation/list',
title: '测评管理' title: '测评管理'
}, },
{ {
index: '/course', index: '/course/list',
title: '精品课程管理' title: '精品课程管理'
}, },
{ {
index: '/review', index: '/review/list',
title: '评阅中心' title: '评阅中心'
}, },
{ {
index: '/information', index: '/information/list',
title: '资讯管理' title: '资讯管理'
}, },
{ {
index: '/project', index: '/project/list',
title: '项目管理' title: '项目管理'
}, },
{ {
index: '/resourse', index: '/resourse/list',
title: '资源库' title: '资源库'
}, },
{ {
index: '/exam', index: '/exam/list',
title: '理论考试系统' title: '理论考试系统'
}, },
{ {
index: '/exam1', index: '/exam1/list',
title: '备课管理' title: '备课管理'
}, },
], ],

@ -0,0 +1,62 @@
<template>
<div class="page" style="padding: 0">
<div class="tabs">
<a class="item" v-for="(item, i) in tabs" :key="i" :class="{ active: i == active }" @click="tabChange(i)">{{ item
}}</a>
</div>
<Student v-if="active == 'tab1'" />
<ExpSystem v-else-if="active == 'tab2'" />
<System v-if="active == 'tab3'" />
</div>
</template>
<script>
import { mapState } from 'vuex'
import Setting from '@/setting'
import Student from '@/pages/student/list'
import ExpSystem from '@/pages/expSystem/list'
import System from '@/pages/system/list'
export default {
components: {
Student,
ExpSystem,
System
},
data () {
return {
active: 'tab1',
tabs: {
tab1: '学生管理',
tab2: '实验系统管理',
// tab3: '',
tab3: '系统设置',
}
};
},
computed: {
...mapState('auth', [
'btns'
])
},
created () {
Setting.dynamicRoute && this.initTabs()
},
methods: {
tabChange (index) {
this.active = index
},
initTabs () {
const { btns } = this
const tab1 = btns.includes('/student/list')
const tab2 = btns.includes('/expSystem/list')
const tab3 = btns.includes('/system/list')
tab1 || delete this.tabs.staff
tab2 || delete this.tabs.role
tab3 || delete this.tabs.logo
}
}
};
</script>
<style lang="scss" scoped></style>

@ -6,15 +6,17 @@ const pre = "assessment-";
export default { export default {
path: `/assessment`, path: `/assessment`,
redirect: {
path: `/assessment/list`,
},
component: BasicLayout, component: BasicLayout,
children: [ children: [
{ {
path: `/assessment`, path: `list`,
component: () => import("@/pages/assessment/list"), component: () => import("@/pages/assessment/list"),
meta: { title: "考核管理" } meta: { title: "考核管理" }
}, },
{ {
name: `${pre}add`,
path: `add`, path: `add`,
component: () => import("@/pages/assessment/add/index.vue"), component: () => import("@/pages/assessment/add/index.vue"),
meta: { title: "添加考核" } meta: { title: "添加考核" }

@ -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: "管理后台" }
}
]
};

@ -3,12 +3,12 @@ import BasicLayout from "@/layouts/home";
const meta = {}; const meta = {};
export default { export default {
path: '/workbench', path: '/workbench/list',
meta, meta,
component: BasicLayout, component: BasicLayout,
children: [ children: [
{ {
path: '/workbench', path: '/workbench/list',
component: () => import('@/pages/workbench/list'), component: () => import('@/pages/workbench/list'),
meta: { title: '工作台' } meta: { title: '工作台' }
} }

Loading…
Cancel
Save