Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdsf-static-bg
Project
Overview
Details
Activity
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
姜雷
cdsf-static-bg
Commits
117b682c
Commit
117b682c
authored
Oct 11, 2018
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
Develop See merge request
!1
parents
5830405c
d04b925a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
6 deletions
+33
-6
sidebar.scss
src/assets/styles/sidebar.scss
+1
-1
Layout.vue
src/containers/layout/Layout.vue
+13
-1
index.vue
src/containers/login/index.vue
+2
-2
repair.vue
src/containers/management/repair/repair.vue
+4
-0
user.vue
src/containers/management/user/user.vue
+1
-1
index.js
src/router/index.js
+1
-0
index.js
src/store/modules/user/index.js
+11
-1
No files found.
src/assets/styles/sidebar.scss
View file @
117b682c
...
@@ -4,7 +4,7 @@ $sideBar-width: 250px;
...
@@ -4,7 +4,7 @@ $sideBar-width: 250px;
.main-container
{
.main-container
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
max-height
:
calc
(
100vh
-
7
0px
);
max-height
:
calc
(
100vh
-
10
0px
);
transition
:
margin-left
0
.28s
;
transition
:
margin-left
0
.28s
;
margin-left
:
$sideBar-width
;
margin-left
:
$sideBar-width
;
}
// 侧边栏
}
// 侧边栏
...
...
src/containers/layout/Layout.vue
View file @
117b682c
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
<UserBox></UserBox>
<UserBox></UserBox>
</div>
</div>
<div>
<div>
<sidebar
class=
"sidebar-container"
></sidebar>
<sidebar
class=
"sidebar-container"
></sidebar>
<div
class=
"main-container"
>
<div
class=
"main-container"
>
<navbar></navbar>
<navbar></navbar>
...
@@ -16,6 +15,9 @@
...
@@ -16,6 +15,9 @@
<app-main></app-main>
<app-main></app-main>
</div>
</div>
</div>
</div>
<!--
<div
class=
"copyright"
>
@copyright
</div>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -49,6 +51,16 @@
...
@@ -49,6 +51,16 @@
margin-left
:
67px
;
margin-left
:
67px
;
text-indent
:
20px
;
text-indent
:
20px
;
}
}
.copyright
{
box-sizing
:
border-box
;
width
:
100%
;
height
:
30px
;
line-height
:
30px
;
text-align
:
center
;
position
:
absolute
;
top
:
calc
(
100vh
-
30px
);
padding-left
:
250px
;
}
}
}
</
style
>
</
style
>
...
...
src/containers/login/index.vue
View file @
117b682c
...
@@ -85,9 +85,9 @@ export default {
...
@@ -85,9 +85,9 @@ export default {
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
Login
(
this
.
loginForm
)
this
.
Login
(
this
.
loginForm
)
.
then
(
()
=>
{
.
then
(
path
=>
{
console
.
log
(
'login done'
);
console
.
log
(
'login done'
);
this
.
$router
.
push
({
path
:
'/'
});
this
.
$router
.
push
({
path
:
path
});
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
...
...
src/containers/management/repair/repair.vue
View file @
117b682c
...
@@ -213,6 +213,10 @@ export default {
...
@@ -213,6 +213,10 @@ export default {
width
:
170px
;
width
:
170px
;
height
:
96px
;
height
:
96px
;
margin-right
:
20px
;
margin-right
:
20px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
}
.previewItem
:last-child
{
.previewItem
:last-child
{
margin-right
:
0
;
margin-right
:
0
;
...
...
src/containers/management/user/user.vue
View file @
117b682c
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"sex"
:formatter=
"getSexValue"
label=
"性别"
min-width=
"50"
>
<el-table-column
prop=
"sex"
:formatter=
"getSexValue"
label=
"性别"
min-width=
"50"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"birthday"
:formatter=
"(c,r,val) =>
$formatDate(new Date(val),'yyyy-MM-dd')
"
label=
"出生年月"
min-width=
"80"
>
<el-table-column
prop=
"birthday"
:formatter=
"(c,r,val) =>
val ? $formatDate(new Date(val),'yyyy-MM-dd') : ''
"
label=
"出生年月"
min-width=
"80"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"cellphone"
label=
"手机号"
min-width=
"100"
>
<el-table-column
prop=
"cellphone"
label=
"手机号"
min-width=
"100"
>
</el-table-column>
</el-table-column>
...
...
src/router/index.js
View file @
117b682c
...
@@ -23,6 +23,7 @@ export const constantRouterMap = [
...
@@ -23,6 +23,7 @@ export const constantRouterMap = [
name
:
'home'
,
name
:
'home'
,
redirect
:
'home'
,
redirect
:
'home'
,
meta
:
{
title
:
'首页'
,
icon
:
'example'
},
meta
:
{
title
:
'首页'
,
icon
:
'example'
},
hidden
:
true
,
children
:
[
children
:
[
{
{
path
:
'home'
,
path
:
'home'
,
...
...
src/store/modules/user/index.js
View file @
117b682c
...
@@ -32,7 +32,17 @@ const actions = {
...
@@ -32,7 +32,17 @@ const actions = {
}
}
commit
(
UPDATE_USERINFO
,
admin
);
commit
(
UPDATE_USERINFO
,
admin
);
dispatch
(
'initRoute'
,
menu
).
then
(()
=>
{
dispatch
(
'initRoute'
,
menu
).
then
(()
=>
{
resolve
();
let
path
=
'/'
;
if
(
menu
.
length
)
{
path
+=
menu
[
0
].
menuUrl
;
if
(
menu
[
0
].
childList
&&
menu
[
0
].
childList
.
length
)
{
path
=
path
.
lastIndexOf
(
'/'
)
===
path
.
length
-
1
?
path
+
menu
[
0
].
childList
[
0
].
menuUrl
:
path
+
'/'
+
menu
[
0
].
childList
[
0
].
menuUrl
;
}
}
resolve
(
path
);
});
});
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
...
...
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