Bladeren bron

Merge branch 'master' of http://118.190.145.217:3000/xiaojincai/yfadmin_web

tanyanfei 5 jaren geleden
bovenliggende
commit
6964706ea9
6 gewijzigde bestanden met toevoegingen van 143 en 26 verwijderingen
  1. 68 26
      src/router.js
  2. 15 0
      src/views/content/Article.vue
  3. 15 0
      src/views/content/Index.vue
  4. 15 0
      src/views/online/Test.vue
  5. 15 0
      src/views/online/Video.vue
  6. 15 0
      src/views/system/Index.vue

+ 68 - 26
src/router.js

@@ -4,33 +4,72 @@ import Router from 'vue-router'
 Vue.use(Router)
 
 export default new Router({
-  routes: [
-    {
+  routes: [{
       path: '/login',
       name: 'login',
-      component: ()=> import('./views/Login.vue'),
-      show:0
+      component: () => import('./views/Login.vue'),
+      show: 0
     },
     {
       path: '/',
       name: '概览',
-      icon:'el-icon-menu',
+      icon: 'el-icon-menu',
       component: () => import('./views/Home.vue'),
-      show:1,
-      isLeaf:1,
-      children:[
-        { path: '/', component: () => import('./views/Index.vue'), name: '系统首页' },
-      ]
+      show: 1,
+      isLeaf: 1,
+      children: [{
+        path: '/',
+        component: () => import('./views/Index.vue'),
+        name: '系统首页'
+      }, ]
     },
     {
       path: '/',
       name: '项目管理',
-      icon:'el-icon-menu',
+      icon: 'el-icon-menu',
       component: () => import('./views/Home.vue'),
-      show:1,
-      isLeaf:0,
-      children:[
-        { path: '/subject', component: () => import('./views/project/Index.vue'), name: '培训科目' },
+      show: 1,
+      isLeaf: 0,
+      children: [{
+        path: '/subject',
+        component: () => import('./views/project/Index.vue'),
+        name: '培训科目'
+      }, ]
+    },
+    {
+      path: '/online',
+      name: '在线培训',
+      icon: 'el-icon-menu',
+      component: () => import('./views/Home.vue'),
+      show: 1,
+      isLeaf: 0,
+      children: [{
+        path: '/test',
+        component: () => import('./views/online/Test.vue'),
+        name: '试卷管理'
+      }, {
+        path: '/video',
+        component: () => import('./views/online/Video.vue'),
+        name: '视频管理'
+      }, ]
+    },
+    {
+      path: '/content',
+      name: '内容管理',
+      icon: 'el-icon-menu',
+      component: () => import('./views/Home.vue'),
+      show: 1,
+      isLeaf: 0,
+      children: [{
+          path: '/content',
+          component: () => import('./views/content/Index.vue'),
+          name: '栏目管理'
+        },
+        {
+          path: '/article',
+          component: () => import('./views/content/Article.vue'),
+          name: '文章管理'
+        },
       ]
     },
     {
@@ -77,19 +116,22 @@ export default new Router({
       show:1,
       isLeaf:0,
       children:[
-        { path: '/user', component: () => import('./views/user/Index.vue'), name: '用户管理' },
+        { path: '/user', component: () => import('./views/user/Index.vue'), name: '用户列表' },
       ]
     },
-    {
-      path: '/',
+     { path: '/system',
       name: '系统管理',
-      icon:'el-icon-menu',
+      icon: 'el-icon-menu',
       component: () => import('./views/Home.vue'),
-      show:1,
-      isLeaf:0,
-      children:[
-        { path: '/system/add', component: () => import('./views/user/Add.vue'), name: '新增用户' },
-      ]
-    },
+      show: 1,
+      isLeaf: 0,
+      children: [{
+        path: '/system',
+        component: () => import('./views/system/Index.vue'),
+        name: '账号管理'
+      }, 
+      { path: '/system/add', component: () => import('./views/user/Add.vue'), name: '新增用户' },
+    ]
+    }
   ]
-})
+})

+ 15 - 0
src/views/content/Article.vue

@@ -0,0 +1,15 @@
+<style lang="scss">
+</style>
+<template>
+  <section>文章管理</section>
+</template>
+<script>
+export default {
+  name: "content",
+  data() {
+    return {};
+  },
+  methods: {},
+  created() {}
+};
+</script>

+ 15 - 0
src/views/content/Index.vue

@@ -0,0 +1,15 @@
+<style lang="scss">
+</style>
+<template>
+  <section>栏目管理</section>
+</template>
+<script>
+export default {
+  name: "content",
+  data() {
+    return {};
+  },
+  methods: {},
+  created() {}
+};
+</script>

+ 15 - 0
src/views/online/Test.vue

@@ -0,0 +1,15 @@
+<style lang="scss">
+</style>
+<template>
+  <section>试卷管理</section>
+</template>
+<script>
+export default {
+  name: "test",
+  data() {
+    return {};
+  },
+  methods: {},
+  created() {}
+};
+</script>

+ 15 - 0
src/views/online/Video.vue

@@ -0,0 +1,15 @@
+<style lang="scss">
+</style>
+<template>
+  <section>视频管理</section>
+</template>
+<script>
+export default {
+  name: "video",
+  data() {
+    return {};
+  },
+  methods: {},
+  created() {}
+};
+</script>

+ 15 - 0
src/views/system/Index.vue

@@ -0,0 +1,15 @@
+<style lang="scss">
+</style>
+<template>
+  <section>账号管理</section>
+</template>
+<script>
+export default {
+  name: "account",
+  data() {
+    return {};
+  },
+  methods: {},
+  created() {}
+};
+</script>