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}} -
- -