From 7ff4c95b0f800c85db97aead1ae4b7c12d383536 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 28 Oct 2020 18:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 39 ++++++++++++++++++- src/router/index.js | 32 +++++++++++++-- src/styles/setting.scss | 9 +++++ .../{tabs => articles}/categoryManager.vue | 7 +--- src/views/setting/{ => user}/index.vue | 13 ++----- .../setting/{ => user}/tabs/cusomerInfo.vue | 0 .../{ => user}/tabs/cusomerManager.vue | 0 7 files changed, 81 insertions(+), 19 deletions(-) rename src/views/setting/{tabs => articles}/categoryManager.vue (98%) rename src/views/setting/{ => user}/index.vue (76%) rename src/views/setting/{ => user}/tabs/cusomerInfo.vue (100%) rename src/views/setting/{ => user}/tabs/cusomerManager.vue (100%) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 7bc9d73..91d4bdb 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -5,6 +5,26 @@
+ +
+ + + + 网盘管理 + + + + + + + 分类管理 + + + 标签管理 + + +
+
{{username}}
@@ -14,9 +34,9 @@
- + - 设置 + 个人信息 @@ -47,6 +67,7 @@ import Hamburger from '@/components/Hamburger' export default { data() { return { + activeIndex: '1', imageUrl: process.env.VUE_APP_BASE_API + '/view/thumbnail?jmal-token=' + this.$store.state.user.token + '&id=', username: this.$store.state.user.name, } @@ -62,6 +83,9 @@ export default { ]) }, methods: { + handleSelect(key, keyPath) { + console.log(key, keyPath); + }, toggleSideBar() { this.$store.dispatch('app/toggleSideBar') }, @@ -165,4 +189,15 @@ export default { } } } +/deep/ .el-menu--horizontal { + + .el-menu-item { + height: 50px; + line-height: 50px; + } + .el-submenu .el-submenu__title { + height: 50px; + line-height: 50px; + } +} diff --git a/src/router/index.js b/src/router/index.js index 29c895b..aac0b27 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -153,13 +153,13 @@ export const constantRoutes = [ }, { - path: '/setting', + path: '/setting/user', component: Layout, children: [ { path: '', - name: 'setting', - component: () => import('@/views/setting/index'), + name: 'setting-user', + component: () => import('@/views/setting/user/index'), meta: { title: '设置' }, hidden: true } @@ -213,6 +213,32 @@ export const constantRoutes = [ } ] }, + { + path: '/setting/manager-categories', + component: Layout, + hidden: true, + children: [ + { + path: '', + name: 'manager-categories', + component: () => import('@/views/setting/articles/categoryManager'), + meta: { title: '分类管理', icon: 'md-list' } + } + ] + }, + { + path: '/setting/manager-cloud', + component: Layout, + hidden: true, + children: [ + { + path: '', + name: 'manager-cloud', + component: () => import('@/views/setting/cloudManager'), + meta: { title: '网盘管理', icon: 'md-list' } + } + ] + }, { path: '/articles', component: Layout, diff --git a/src/styles/setting.scss b/src/styles/setting.scss index a943f20..9639be2 100644 --- a/src/styles/setting.scss +++ b/src/styles/setting.scss @@ -1,3 +1,12 @@ + +.container { + padding: 20px; +} +/deep/.box-card { + max-width: 1080px; + min-width: 640px; +} + .img-dialog { } diff --git a/src/views/setting/tabs/categoryManager.vue b/src/views/setting/articles/categoryManager.vue similarity index 98% rename from src/views/setting/tabs/categoryManager.vue rename to src/views/setting/articles/categoryManager.vue index 4ee96f3..b59a6b4 100644 --- a/src/views/setting/tabs/categoryManager.vue +++ b/src/views/setting/articles/categoryManager.vue @@ -99,7 +99,7 @@ }, data() { return { - title: "用户管理", + title: "分类管理", categoryList: [], dialogVisible: false, dialogTitle: '', @@ -253,12 +253,9 @@ diff --git a/src/views/setting/index.vue b/src/views/setting/user/index.vue similarity index 76% rename from src/views/setting/index.vue rename to src/views/setting/user/index.vue index f010cc0..2895271 100644 --- a/src/views/setting/index.vue +++ b/src/views/setting/user/index.vue @@ -15,19 +15,15 @@
- {{item.label}} -
- -