Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_45598856
white-jotter
提交
ddf4a1c0
W
white-jotter
项目概览
qq_45598856
/
white-jotter
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
white-jotter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ddf4a1c0
编写于
11月 20, 2019
作者:
E
Evan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: daily optimization
上级
c732170e
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
34 addition
and
6 deletion
+34
-6
wj-vue/src/components/admin/AdminMenu.vue
wj-vue/src/components/admin/AdminMenu.vue
+16
-5
wj-vue/src/components/admin/user/UserRole.vue
wj-vue/src/components/admin/user/UserRole.vue
+13
-0
wj-vue/src/components/common/NavMenu.vue
wj-vue/src/components/common/NavMenu.vue
+5
-1
未找到文件。
wj-vue/src/components/admin/AdminMenu.vue
浏览文件 @
ddf4a1c0
<
template
>
<
template
>
<div>
<div>
<el-menu
<el-menu
:default-active=
"
'/admin/users'
"
:default-active=
"
currentPath
"
class=
"el-menu-admin"
class=
"el-menu-admin"
router
router
@
select=
"handleSelect"
mode=
"vertical"
mode=
"vertical"
background-color=
"#545c64"
background-color=
"#545c64"
text-color=
"#fff"
text-color=
"#fff"
active-text-color=
"#ffd04b"
>
active-text-color=
"#ffd04b"
>
<div
style=
"height: 80px;"
></div>
<div
style=
"height: 80px;"
></div>
<template
v-for=
"(item,i) in adminMenus"
>
<!--index 没有用但是必需字段-->
<!--index 没有用但是必需字段-->
<el-submenu
:key=
"i"
:index=
"i + ''"
style=
"text-align: left"
>
<el-submenu
v-for=
"(item,i) in adminMenus"
:key=
"i"
:index=
"i + ''"
style=
"text-align: left"
>
<span
slot=
"title"
style=
"font-size: 17px;"
>
<span
slot=
"title"
style=
"font-size: 17px;"
>
<i
:class=
"item.iconCls"
></i>
<i
:class=
"item.iconCls"
></i>
{{
item
.
nameZh
}}
{{
item
.
nameZh
}}
</span>
</span>
<el-menu-item
v-for=
"
child in item.children"
:key=
"child.path
"
:index=
"child.path"
>
<el-menu-item
v-for=
"
(child,j) in item.children"
:key=
"j
"
:index=
"child.path"
>
<i
:class=
"child.icon"
></i>
<i
:class=
"child.icon"
></i>
{{
child
.
nameZh
}}
{{
child
.
nameZh
}}
</el-menu-item>
</el-menu-item>
</el-submenu>
</el-submenu>
</
template
>
</el-menu>
</el-menu>
</div>
</div>
</
template
>
</
template
>
...
@@ -29,9 +28,21 @@
...
@@ -29,9 +28,21 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'
AdminMenu
'
,
name
:
'
AdminMenu
'
,
data
()
{
return
{
// currentPath: this.$route.path
}
},
computed
:
{
computed
:
{
adminMenus
()
{
adminMenus
()
{
return
this
.
$store
.
state
.
adminMenus
return
this
.
$store
.
state
.
adminMenus
},
currentPath
()
{
return
this
.
$route
.
path
}
},
methods
:
{
handleSelect
(
key
,
keyPath
)
{
}
}
}
}
}
}
...
...
wj-vue/src/components/admin/user/UserRole.vue
0 → 100644
浏览文件 @
ddf4a1c0
<
template
>
<span
style=
"font-size: 200px"
>
test1
</span>
</
template
>
<
script
>
export
default
{
name
:
'
UserRole
'
}
</
script
>
<
style
scoped
>
</
style
>
wj-vue/src/components/common/NavMenu.vue
浏览文件 @
ddf4a1c0
<
template
>
<
template
>
<div>
<div>
<el-menu
<el-menu
:default-active=
"
'/index'
"
:default-active=
"
currentPath
"
router
router
mode=
"horizontal"
mode=
"horizontal"
background-color=
"white"
background-color=
"white"
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
name
:
'
NavMenu
'
,
name
:
'
NavMenu
'
,
data
()
{
data
()
{
return
{
return
{
// currentPath: this.$route.path,
navList
:
[
navList
:
[
{
name
:
'
/index
'
,
navItem
:
'
首页
'
},
{
name
:
'
/index
'
,
navItem
:
'
首页
'
},
{
name
:
'
/jotter
'
,
navItem
:
'
笔记本
'
},
{
name
:
'
/jotter
'
,
navItem
:
'
笔记本
'
},
...
@@ -41,6 +42,9 @@
...
@@ -41,6 +42,9 @@
computed
:
{
computed
:
{
hoverBackground
()
{
hoverBackground
()
{
return
'
#ffd04b
'
return
'
#ffd04b
'
},
currentPath
()
{
return
this
.
$route
.
path
}
}
},
},
methods
:
{
methods
:
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录