Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
69ed1d1c
提交
69ed1d1c
编写于
2月 25, 2019
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改样式
上级
b01fd708
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
64 行增加
和
27 行删除
+64
-27
router.js
src/router/router.js
+4
-0
mixins.js
src/utils/mixins.js
+0
-4
header.vue
src/views/layout/header.vue
+17
-15
slidebar.vue
src/views/layout/slidebar.vue
+18
-8
role.vue
src/views/system/role.vue
+25
-0
未找到文件。
src/router/router.js
浏览文件 @
69ed1d1c
...
...
@@ -3,6 +3,7 @@ import App from '../App'
const
home
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/home'
)),
'home'
)
const
itemManager
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/education/item-manager.vue'
)),
'item-manager'
)
const
itemComponent
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/education/item-component.vue'
)),
'item-component'
)
const
roleManager
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/system/role.vue'
)),
'role'
)
export
default
[{
path
:
'/'
,
...
...
@@ -23,6 +24,9 @@ export default [{
},{
path
:
'/item-component'
,
component
:
itemComponent
},{
path
:
'/role'
,
component
:
roleManager
}
]
}]
src/utils/mixins.js
浏览文件 @
69ed1d1c
...
...
@@ -34,10 +34,6 @@ module.exports = {
}
return
''
},
// 埋点
pageBurialPoin
(
options
){
rocNative
.
appBuryingPointEntrust
(
options
)
},
setRouterParm
(
paramList
){
let
parm
=
{};
...
...
src/views/layout/header.vue
浏览文件 @
69ed1d1c
...
...
@@ -2,26 +2,23 @@
<div
class=
"header-container"
>
<div
class=
"logo"
><img
src=
"../../assets/image/index_logoicon.png"
/>
内容管理系统
</div>
<div
class=
"user-info"
>
<el-dropdown
trigger=
"click"
@
command=
"handleCommand"
>
<span
class=
"el-dropdown-link"
>
<img
class=
"user-logo"
src=
"../../assets/image/img.jpg"
>
<span
id=
"headName"
>
{{
name
}}
</span><i
class=
"el-icon-arrow-down el-icon--right"
></i>
</span>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"logout"
>
退出
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<div
class=
"el-dropdown-link"
>
<img
class=
"user-logo"
src=
"../../assets/image/img.jpg"
>
<span
id=
"headName"
>
{{
name
}}
,您好
</span>
<span
class=
"line"
>
|
</span>
<span
id=
"login-out"
>
退出
</span>
</div>
</div>
<!--导航-->
<div
class=
"user-info"
>
<el-dropdown
trigger=
"click"
@
command=
"handleCommand"
>
<span
class=
"el-dropdown-link"
>
{{
'系统切换'
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
{{
'系统切换'
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</span>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-for=
"item in systemInfoList"
:key=
"item.id"
>
<span
class=
"menu-item"
@
click=
"forward(item)"
>
{{
item
.
systemName
}}
</span>
<!--
<el-tag
type=
"warning"
@
click=
"forward(item)"
>
{{
item
.
system_name
}}
</el-tag>
-->
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
...
...
@@ -32,7 +29,7 @@
export
default
{
data
()
{
return
{
name
:
''
,
name
:
'
hws
'
,
systemInfoList
:
[]
}
},
...
...
@@ -68,8 +65,8 @@ export default {
img
{
width
:
30px
;
float
:
left
;
margin-left
:
60px
;
margin-top
:
20px
;
margin-left
:
60px
;
margin-top
:
20px
;
}
}
.user-info
{
...
...
@@ -93,8 +90,13 @@ export default {
height
:
40px
;
border-radius
:
50%
;
}
.el-icon--right
{
.el-icon--right
,
#headName
,
.line
,
#login-out
{
color
:
#fff
;
font-size
:
14px
;
}
.line
{
display
:
inline-block
;
padding
:
0
10px
;
}
}
}
...
...
src/views/layout/slidebar.vue
浏览文件 @
69ed1d1c
...
...
@@ -5,9 +5,10 @@
<template
v-if=
"item.subs"
>
<el-submenu
:index=
" 'index_' + _index"
:key=
"item.index"
>
<template
slot=
"title"
><i
:class=
"item.icon"
></i>
{{
item
.
title
}}
</
template
>
<el-menu-item-group>
<el-menu-item
v-for=
"(subItem,i) in item.subs"
:key=
"i"
:index=
"subItem.index"
>
{{subItem.title}}
</el-menu-item>
</el-menu-item-group>
<el-menu-item
v-for=
"(subItem,i) in item.subs"
:key=
"i"
:index=
"subItem.index"
>
<i
class=
"sub-icon"
:class=
"subItem.icon"
></i>
{{subItem.title}}
</el-menu-item>
</el-submenu>
</template>
<
template
v-else
>
...
...
@@ -31,13 +32,13 @@ export default {
subs
:
[
{
title
:
'项目组件'
,
icon
:
'el-icon-
message
'
,
icon
:
'el-icon-
setting
'
,
index
:
'item-component'
,
subs
:
[]
},
{
title
:
'项目管理'
,
icon
:
'el-icon-
message
'
,
icon
:
'el-icon-
setting
'
,
index
:
'item-manager'
,
subs
:
[]
}
...
...
@@ -47,11 +48,17 @@ export default {
icon
:
'el-icon-menu'
,
index
:
'2'
,
subs
:
[
{
title
:
'基础数据管理'
,
icon
:
'el-icon-setting'
,
index
:
'role'
,
subs
:
[]
},
{
title
:
'角色管理'
,
icon
:
'el-icon-
menu
'
,
index
:
'
2
'
,
icon
:
'el-icon-menu'
icon
:
'el-icon-
setting
'
,
index
:
'
role
'
,
subs
:
[]
}
]
}
...
...
@@ -76,6 +83,9 @@ export default {
background
:
#EAEEF5
;
.el-menu
{
background
:
#EAEEF5
;
.sub-icon
{
font-size
:
12px
;
}
}
}
</
style
>
...
...
src/views/system/role.vue
0 → 100644
浏览文件 @
69ed1d1c
<
template
>
<div
class=
"create-item"
>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
></bread-crumb>
角色管理
</div>
</
template
>
<
script
>
import
BreadCrumb
from
'../../components/breadcrumb.vue'
export
default
{
components
:
{
BreadCrumb
},
data
()
{
return
{
curmbFirst
:
'系统管理'
,
curmbSecond
:
'角色管理'
}
}
}
</
script
>
<
style
>
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录