From 6296cf09e7fcb5cb6b77a1ed292e8f93fd3402a2 Mon Sep 17 00:00:00 2001
From: Eddie <102564160@qq.com>
Date: Fri, 6 Aug 2021 15:37:08 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9F=BA=E7=A1=80=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/index.js | 15 ++++++----
src/router/modules/books-management.js | 29 +++++++++++++++++++
src/router/modules/home-index.js | 23 ---------------
src/router/modules/member-management.js | 23 +++++++++++++++
src/router/modules/sort-management.js | 23 +++++++++++++++
src/views/books-management/ShuYuan.vue | 14 +++++++++
src/views/books-management/article.vue | 14 +++++++++
.../index.vue | 0
src/views/sort-management/index.vue | 14 +++++++++
9 files changed, 126 insertions(+), 29 deletions(-)
create mode 100644 src/router/modules/books-management.js
delete mode 100644 src/router/modules/home-index.js
create mode 100644 src/router/modules/member-management.js
create mode 100644 src/router/modules/sort-management.js
create mode 100644 src/views/books-management/ShuYuan.vue
create mode 100644 src/views/books-management/article.vue
rename src/views/{home-index => member-management}/index.vue (100%)
create mode 100644 src/views/sort-management/index.vue
diff --git a/src/router/index.js b/src/router/index.js
index 0abc253..4018fef 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -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 }
]
diff --git a/src/router/modules/books-management.js b/src/router/modules/books-management.js
new file mode 100644
index 0000000..8d79e26
--- /dev/null
+++ b/src/router/modules/books-management.js
@@ -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
diff --git a/src/router/modules/home-index.js b/src/router/modules/home-index.js
deleted file mode 100644
index 55aea0b..0000000
--- a/src/router/modules/home-index.js
+++ /dev/null
@@ -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
diff --git a/src/router/modules/member-management.js b/src/router/modules/member-management.js
new file mode 100644
index 0000000..3b3eaf4
--- /dev/null
+++ b/src/router/modules/member-management.js
@@ -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
diff --git a/src/router/modules/sort-management.js b/src/router/modules/sort-management.js
new file mode 100644
index 0000000..489a277
--- /dev/null
+++ b/src/router/modules/sort-management.js
@@ -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
diff --git a/src/views/books-management/ShuYuan.vue b/src/views/books-management/ShuYuan.vue
new file mode 100644
index 0000000..5c43d1a
--- /dev/null
+++ b/src/views/books-management/ShuYuan.vue
@@ -0,0 +1,14 @@
+
+
+ 书源管理
+
+
+
+
+
+
diff --git a/src/views/books-management/article.vue b/src/views/books-management/article.vue
new file mode 100644
index 0000000..7973c30
--- /dev/null
+++ b/src/views/books-management/article.vue
@@ -0,0 +1,14 @@
+
+
+ 文章管理
+
+
+
+
+
+
diff --git a/src/views/home-index/index.vue b/src/views/member-management/index.vue
similarity index 100%
rename from src/views/home-index/index.vue
rename to src/views/member-management/index.vue
diff --git a/src/views/sort-management/index.vue b/src/views/sort-management/index.vue
new file mode 100644
index 0000000..ad63dcd
--- /dev/null
+++ b/src/views/sort-management/index.vue
@@ -0,0 +1,14 @@
+
+
+ 分类管理
+
+
+
+
+
+