From e76b75add2e970eb886d8bde778159d965b79819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Wed, 13 Oct 2021 17:44:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=AF=B9=E6=8E=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Vue/src/layouts/default/Drawer.vue | 82 ++--- Yi.Vue/src/layouts/default/Index.vue | 10 +- Yi.Vue/src/layouts/default/List.vue | 2 +- Yi.Vue/src/layouts/default/ListGroup.vue | 2 +- Yi.Vue/src/layouts/default/Settings.vue | 301 ++++++++++++++++++ .../layouts/default/widgets/DrawerToggle.vue | 3 + .../login/{LayoutLogin.vue => Index.vue} | 0 Yi.Vue/src/main.js | 3 +- Yi.Vue/src/router/index.js | 29 +- Yi.Vue/src/views/AdmMenu.vue | 32 ++ Yi.Vue/src/views/AdmMould.vue | 32 ++ 11 files changed, 432 insertions(+), 64 deletions(-) create mode 100644 Yi.Vue/src/layouts/default/Settings.vue rename Yi.Vue/src/layouts/login/{LayoutLogin.vue => Index.vue} (100%) create mode 100644 Yi.Vue/src/views/AdmMenu.vue create mode 100644 Yi.Vue/src/views/AdmMould.vue diff --git a/Yi.Vue/src/layouts/default/Drawer.vue b/Yi.Vue/src/layouts/default/Drawer.vue index dbece8c3..6c773b54 100644 --- a/Yi.Vue/src/layouts/default/Drawer.vue +++ b/Yi.Vue/src/layouts/default/Drawer.vue @@ -65,20 +65,18 @@ // import { get, sync } from 'vuex-pathify' export default { + + data:()=>({ - gradient: [ - 'rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)', - 'rgba(228, 226, 226, 1), rgba(255, 255, 255, 0.7)', - 'rgba(244, 67, 54, .8), rgba(244, 67, 54, .8)', - ], - images: [ - 'https://demos.creative-tim.com/material-dashboard-pro/assets/img/sidebar-1.jpg', - 'https://demos.creative-tim.com/material-dashboard-pro/assets/img/sidebar-2.jpg', - 'https://demos.creative-tim.com/material-dashboard-pro/assets/img/sidebar-3.jpg', - 'https://demos.creative-tim.com/material-dashboard-pro/assets/img/sidebar-4.jpg', - ], - dark:null, + image:'https://demos.creative-tim.com/material-dashboard-pro/assets/img/sidebar-1.jpg', mini: false, + drawer: null, + drawerImage: true, + gradient: + 'rgba(228, 226, 226, 1), rgba(255, 255, 255, 0.7)', + + dark:null, + items: [ { title: "首页", @@ -86,34 +84,46 @@ to: "/" }, { - title: "用户管理", + title: "用户角色管理", icon: "mdi-account", - to: "/admuser/", + to: "", + children:[{ + title:"用户管理", + icon:"mdi-account", + to:"/admuser/", + children:[] + }, + { + title:"角色管理", + icon:"mdi-account", + to:"/admrole/", + children:[] + } + ] }, { - title: "角色管理", + title: "菜单接口管理", icon: "mdi-clipboard-outline", - to: "/admrole/", - }, - { - title: "Typography", - icon: "mdi-format-font", - to: "/components/typography/", - }, - { - title: "Icons", - icon: "mdi-chart-bubble", - to: "/components/icons/", - }, - { - title: "Google Maps", - icon: "mdi-map-marker", - to: "/maps/google/", - }, - { - title: "Notifications", - icon: "mdi-bell", - to: "/components/notifications/", + to: "", + children:[{ + title:"菜单管理", + icon:"mdi-account", + to:"/admMenu/", + children:[] + }, + { + title:"接口管理", + icon:"mdi-account", + to:"/admMould/", + children:[] + }, + { + title:"角色菜单分配管理", + icon:"mdi-account", + to:"/admrole/", + children:[] + }, + ] }, ], }), diff --git a/Yi.Vue/src/layouts/default/Index.vue b/Yi.Vue/src/layouts/default/Index.vue index 6f54715f..35e4688a 100644 --- a/Yi.Vue/src/layouts/default/Index.vue +++ b/Yi.Vue/src/layouts/default/Index.vue @@ -8,7 +8,7 @@ - + @@ -29,10 +29,10 @@ /* webpackChunkName: "default-footer" */ './Footer' ), - // DefaultSettings: () => import( - // /* webpackChunkName: "default-settings" */ - // './Settings' - // ), + DefaultSettings: () => import( + /* webpackChunkName: "default-settings" */ + './Settings' + ), DefaultView: () => import( /* webpackChunkName: "default-view" */ './View' diff --git a/Yi.Vue/src/layouts/default/List.vue b/Yi.Vue/src/layouts/default/List.vue index e81b0751..f10e8485 100644 --- a/Yi.Vue/src/layouts/default/List.vue +++ b/Yi.Vue/src/layouts/default/List.vue @@ -7,7 +7,7 @@ > -