Quellcode durchsuchen

上传基础模块

master
Eddie vor 3 Jahren
Ursprung
Commit
6296cf09e7
9 geänderte Dateien mit 126 neuen und 29 gelöschten Zeilen
  1. +9
    -6
      src/router/index.js
  2. +29
    -0
      src/router/modules/books-management.js
  3. +0
    -23
      src/router/modules/home-index.js
  4. +23
    -0
      src/router/modules/member-management.js
  5. +23
    -0
      src/router/modules/sort-management.js
  6. +14
    -0
      src/views/books-management/ShuYuan.vue
  7. +14
    -0
      src/views/books-management/article.vue
  8. +0
    -0
      src/views/member-management/index.vue
  9. +14
    -0
      src/views/sort-management/index.vue

+ 9
- 6
src/router/index.js Datei anzeigen

@@ -10,7 +10,11 @@ import Layout from '@/layout'
import componentsRouter from './modules/components'
import chartsRouter from './modules/charts'
// import nestedRouter from './modules/nested'
import homeIndexRouter from './modules/home-index'
import memberManagement from './modules/member-management'
import booksManagement from './modules/books-management'
import sortManagement from './modules/sort-management'


// import systemManagementRouter from './modules/system-management'

/**
@@ -71,10 +75,7 @@ export const constantRoutes = [
component: () => import('@/views/error-page/401'),
hidden: true
},
{
path: '/11',
redirect: '/index'
}
]

/**
@@ -82,7 +83,9 @@ export const constantRoutes = [
* the routes that need to be dynamically loaded based on user roles
*/
export const asyncRoutes = [
homeIndexRouter,
memberManagement,
booksManagement,
sortManagement,
// 404 page must be placed at the end !!!
{ path: '*', redirect: '/404', hidden: true }
]


+ 29
- 0
src/router/modules/books-management.js Datei anzeigen

@@ -0,0 +1,29 @@
/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const booksManagement = {
path: '/',
component: Layout,
redirect: '/books',
name: 'booksManagement',
meta: {
title: '书籍管理',
icon: 'el-icon-notebook-2'
},
children: [
{
path: 'article',
component: () => import('@/views/books-management/article'),
name: 'articleManagement',
meta: { title: '文章管理' }
},
{
path: 'ShuYuan',
component: () => import('@/views/books-management/ShuYuan'),
name: 'memberManagement',
meta: { title: '书源管理' }
}
]
}
export default booksManagement

+ 0
- 23
src/router/modules/home-index.js Datei anzeigen

@@ -1,23 +0,0 @@
/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const homeIndexRouter = {
path: '/',
component: Layout,
redirect: '/index',
name: 'HomeIndex',
meta: {
title: '首页',
icon: 'menu-workbench'
},
children: [
{
path: 'index',
component: () => import('@/views/home-index/index'),
name: 'HomeIndex2',
meta: { title: '首页' }
}
]
}
export default homeIndexRouter

+ 23
- 0
src/router/modules/member-management.js Datei anzeigen

@@ -0,0 +1,23 @@
/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const memberManagement = {
path: '/',
component: Layout,
redirect: '/member',
name: 'memberManagement',
meta: {
title: '会员管理',
icon: 'el-icon-folder'
},
children: [
{
path: 'member',
component: () => import('@/views/member-management/index'),
name: 'memberManagement',
meta: { title: '会员管理' }
}
]
}
export default memberManagement

+ 23
- 0
src/router/modules/sort-management.js Datei anzeigen

@@ -0,0 +1,23 @@
/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const sortManagement = {
path: '/',
component: Layout,
redirect: '/sort',
name: 'memberManagement',
meta: {
title: '分类管理',
icon: 'component'
},
children: [
{
path: 'sort',
component: () => import('@/views/sort-management/index'),
name: 'sortManagement',
meta: { title: '分类管理' }
}
]
}
export default sortManagement

+ 14
- 0
src/views/books-management/ShuYuan.vue Datei anzeigen

@@ -0,0 +1,14 @@
<template>
<el-container>
<el-main>书源管理</el-main>
</el-container>
</template>

<script>
export default {
}
</script>

<style lang="scss" scoped>

</style>

+ 14
- 0
src/views/books-management/article.vue Datei anzeigen

@@ -0,0 +1,14 @@
<template>
<el-container>
<el-main>文章管理</el-main>
</el-container>
</template>

<script>
export default {
}
</script>

<style lang="scss" scoped>

</style>

src/views/home-index/index.vue → src/views/member-management/index.vue Datei anzeigen


+ 14
- 0
src/views/sort-management/index.vue Datei anzeigen

@@ -0,0 +1,14 @@
<template>
<el-container>
<el-main>分类管理</el-main>
</el-container>
</template>

<script>
export default {
}
</script>

<style lang="scss" scoped>

</style>

Laden…
Abbrechen
Speichern