Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform-ui
Commits
e0031c65
Commit
e0031c65
authored
Aug 06, 2019
by
denghr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导航栏右侧修改
parent
19da5ee5
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
12 deletions
+25
-12
getters.js
src/store/getters.js
+1
-0
user.js
src/store/modules/user.js
+5
-0
AppMain.vue
src/views/layout/AppMain.vue
+1
-1
Levelbar.vue
src/views/layout/Levelbar.vue
+1
-1
Navbar.vue
src/views/layout/Navbar.vue
+12
-10
index.vue
src/views/vehicle/bookRecord/index.vue
+5
-0
No files found.
src/store/getters.js
View file @
e0031c65
...
@@ -4,6 +4,7 @@ const getters = {
...
@@ -4,6 +4,7 @@ const getters = {
token
:
state
=>
state
.
user
.
token
,
token
:
state
=>
state
.
user
.
token
,
avatar
:
state
=>
state
.
user
.
avatar
,
avatar
:
state
=>
state
.
user
.
avatar
,
name
:
state
=>
state
.
user
.
name
,
name
:
state
=>
state
.
user
.
name
,
username
:
state
=>
state
.
user
.
username
,
introduction
:
state
=>
state
.
user
.
introduction
,
introduction
:
state
=>
state
.
user
.
introduction
,
status
:
state
=>
state
.
user
.
status
,
status
:
state
=>
state
.
user
.
status
,
roles
:
state
=>
state
.
user
.
roles
,
roles
:
state
=>
state
.
user
.
roles
,
...
...
src/store/modules/user.js
View file @
e0031c65
...
@@ -16,6 +16,7 @@ const user = {
...
@@ -16,6 +16,7 @@ const user = {
code
:
''
,
code
:
''
,
token
:
getToken
(),
token
:
getToken
(),
name
:
''
,
name
:
''
,
username
:
''
,
avatar
:
''
,
avatar
:
''
,
introduction
:
''
,
introduction
:
''
,
roles
:
[],
roles
:
[],
...
@@ -46,6 +47,9 @@ const user = {
...
@@ -46,6 +47,9 @@ const user = {
SET_NAME
:
(
state
,
name
)
=>
{
SET_NAME
:
(
state
,
name
)
=>
{
state
.
name
=
name
;
state
.
name
=
name
;
},
},
SET_USER_NAME
:
(
state
,
username
)
=>
{
state
.
username
=
username
;
},
SET_AVATAR
:
(
state
,
avatar
)
=>
{
SET_AVATAR
:
(
state
,
avatar
)
=>
{
state
.
avatar
=
avatar
;
state
.
avatar
=
avatar
;
},
},
...
@@ -101,6 +105,7 @@ const user = {
...
@@ -101,6 +105,7 @@ const user = {
const
data
=
response
;
const
data
=
response
;
commit
(
'SET_ROLES'
,
'admin'
);
commit
(
'SET_ROLES'
,
'admin'
);
commit
(
'SET_NAME'
,
data
.
name
);
commit
(
'SET_NAME'
,
data
.
name
);
commit
(
'SET_USER_NAME'
,
data
.
username
);
commit
(
'SET_AVATAR'
,
'http://git.oschina.net/uploads/42/547642_geek_qi.png?1499487420'
);
commit
(
'SET_AVATAR'
,
'http://git.oschina.net/uploads/42/547642_geek_qi.png?1499487420'
);
commit
(
'SET_INTRODUCTION'
,
data
.
description
);
commit
(
'SET_INTRODUCTION'
,
data
.
description
);
const
menus
=
{};
const
menus
=
{};
...
...
src/views/layout/AppMain.vue
View file @
e0031c65
<
template
>
<
template
>
<section
class=
"app-main"
style=
"min-height: 100%"
>
<section
class=
"app-main"
style=
"min-height: 100%
;padding-top:20px;
"
>
<transition
name=
"fade"
mode=
"out-in"
>
<transition
name=
"fade"
mode=
"out-in"
>
<router-view
:key=
"key"
></router-view>
<router-view
:key=
"key"
></router-view>
</transition>
</transition>
...
...
src/views/layout/Levelbar.vue
View file @
e0031c65
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
.app-levelbar.el-breadcrumb
{
.app-levelbar.el-breadcrumb
{
display
:
inline-block
;
display
:
inline-block
;
font-size
:
14px
;
font-size
:
14px
;
line-height
:
5
0px
;
line-height
:
7
0px
;
margin-left
:
10px
;
margin-left
:
10px
;
.no-redirect
{
.no-redirect
{
color
:
#97a8be
;
color
:
#97a8be
;
...
...
src/views/layout/Navbar.vue
View file @
e0031c65
...
@@ -5,9 +5,10 @@
...
@@ -5,9 +5,10 @@
<levelbar></levelbar>
<levelbar></levelbar>
<tabs-view></tabs-view>
<tabs-view></tabs-view>
<error-log
v-if=
"log.length>0"
class=
"errLog-container"
:logsList=
"log"
></error-log>
<error-log
v-if=
"log.length>0"
class=
"errLog-container"
:logsList=
"log"
></error-log>
<
screenfull
class=
'screenfull'
></screenfull
>
<
!--
<screenfull
class=
'screenfull'
></screenfull>
--
>
<el-dropdown
class=
"avatar-container"
trigger=
"click"
>
<el-dropdown
class=
"avatar-container"
trigger=
"click"
>
<div
class=
"avatar-wrapper"
>
<img
class=
"user-avatar"
:src=
"avatar+'?imageView2/1/w/80/h/80'"
>
<i
class=
"el-icon-caret-bottom"
></i>
</div>
<!--
<div
class=
"avatar-wrapper"
>
<img
class=
"user-avatar"
:src=
"avatar+'?imageView2/1/w/80/h/80'"
>
<i
class=
"el-icon-caret-bottom"
></i>
</div>
-->
<div
class=
""
style=
"font-size: 15px;cursor: pointer;"
>
欢迎您,
<span
style=
"color:#20A0FF;"
>
{{
username
}}
</span>
<i
class=
"el-icon-caret-bottom"
></i>
</div>
<el-dropdown-menu
class=
"user-dropdown"
slot=
"dropdown"
>
<el-dropdown-menu
class=
"user-dropdown"
slot=
"dropdown"
>
<router-link
class=
'inlineBlock'
to=
"/"
>
<router-link
class=
'inlineBlock'
to=
"/"
>
<el-dropdown-item>
首页
</el-dropdown-item>
<el-dropdown-item>
首页
</el-dropdown-item>
...
@@ -47,7 +48,8 @@ export default {
...
@@ -47,7 +48,8 @@ export default {
computed
:
{
...
mapGetters
([
computed
:
{
...
mapGetters
([
'sidebar'
,
'sidebar'
,
'name'
,
'name'
,
'avatar'
'avatar'
,
'username'
])
])
},
},
methods
:
{
methods
:
{
...
@@ -72,12 +74,12 @@ export default {
...
@@ -72,12 +74,12 @@ export default {
-moz-box-shadow
:
1px
1px
3px
#ccc
;
-webkit-box-shadow
:
1px
1px
3px
#ccc
;
box-shadow
:
1px
1px
3px
#ccc
;
-moz-box-shadow
:
1px
1px
3px
#ccc
;
-webkit-box-shadow
:
1px
1px
3px
#ccc
;
box-shadow
:
1px
1px
3px
#ccc
;
}
}
.navbar
{
.navbar
{
height
:
5
0px
;
height
:
7
0px
;
line-height
:
5
0px
;
line-height
:
7
0px
;
border-radius
:
0
!
important
;
border-radius
:
0
!
important
;
.hamburger-container
{
.hamburger-container
{
line-height
:
5
8px
;
line-height
:
7
8px
;
height
:
5
0px
;
height
:
7
0px
;
float
:
left
;
float
:
left
;
padding
:
0
10px
;
padding
:
0
10px
;
}
}
...
@@ -89,17 +91,17 @@ export default {
...
@@ -89,17 +91,17 @@ export default {
.screenfull
{
.screenfull
{
position
:
absolute
;
position
:
absolute
;
right
:
90px
;
right
:
90px
;
top
:
1
6px
;
top
:
2
6px
;
color
:
red
;
color
:
red
;
}
}
.avatar-container
{
.avatar-container
{
height
:
5
0px
;
height
:
7
0px
;
display
:
inline-block
;
display
:
inline-block
;
position
:
absolute
;
position
:
absolute
;
right
:
35px
;
right
:
35px
;
.avatar-wrapper
{
.avatar-wrapper
{
cursor
:
pointer
;
cursor
:
pointer
;
margin-top
:
5
px
;
margin-top
:
10
px
;
position
:
relative
;
position
:
relative
;
.user-avatar
{
.user-avatar
{
width
:
40px
;
width
:
40px
;
...
...
src/views/vehicle/bookRecord/index.vue
View file @
e0031c65
...
@@ -1146,6 +1146,11 @@
...
@@ -1146,6 +1146,11 @@
},
},
getList
()
{
getList
()
{
this
.
listLoading
=
true
;
this
.
listLoading
=
true
;
for
(
var
key
in
this
.
listQuery
){
if
(
this
.
listQuery
[
key
]
==
''
){
this
.
listQuery
[
key
]
=
undefined
}
}
page
(
this
.
listQuery
)
page
(
this
.
listQuery
)
.
then
(
response
=>
{
.
then
(
response
=>
{
this
.
list
=
response
.
data
.
data
;
this
.
list
=
response
.
data
.
data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment