Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
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
华国豪
CRM
Commits
6a6409c6
Commit
6a6409c6
authored
Feb 04, 2020
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
0621b330
2bfff7d6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
149 additions
and
1487 deletions
+149
-1487
App.vue
src/App.vue
+3
-1
init.css
src/assets/css/init.css
+7
-1
Home.vue
src/components/Home.vue
+94
-1361
HomeNav.vue
src/components/HomeNav/HomeNav.vue
+0
-117
router.js
src/router.js
+9
-1
index.vue
src/views/index.vue
+36
-6
No files found.
src/App.vue
View file @
6a6409c6
...
@@ -10,7 +10,9 @@ export default {
...
@@ -10,7 +10,9 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$router
.
push
({
name
:
"Home"
});
},
},
methods
:
{
methods
:
{
...
...
src/assets/css/init.css
View file @
6a6409c6
...
@@ -12,4 +12,10 @@ sub{ vertical-align:text-bottom; }
...
@@ -12,4 +12,10 @@ sub{ vertical-align:text-bottom; }
legend
{
color
:
#000
;
}
legend
{
color
:
#000
;
}
fieldset
,
img
{
border
:
0
;
}
fieldset
,
img
{
border
:
0
;
}
button
,
input
,
select
,
textarea
{
font-size
:
100%
;
}
button
,
input
,
select
,
textarea
{
font-size
:
100%
;
}
table
{
border-collapse
:
collapse
;
border-spacing
:
0
;
}
table
{
border-collapse
:
collapse
;
border-spacing
:
0
;
}
\ No newline at end of file
.w110
{
width
:
110px
;
}
.height100
{
height
:
100%
;
}
\ No newline at end of file
src/components/Home.vue
View file @
6a6409c6
This diff is collapsed.
Click to expand it.
src/components/HomeNav/HomeNav.vue
deleted
100644 → 0
View file @
0621b330
<
style
>
.home-nav
{
width
:
100%
;
height
:
100%
;
}
.log-box
{
width
:
100%
;
height
:
13.19%
;
}
.log-box
{
background-color
:
white
;
}
.log-box
>
div
{
height
:
100%
;
width
:
100%
;
background
:
rgba
(
13
,
36
,
129
,
1
);
border-radius
:
0px
40px
40px
0px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
}
.log-box
img
{
width
:
42px
;
}
.home-nav
.home-menu
{
padding-left
:
19px
;
}
.home-nav
.home-menu
.home-menu-item
{
color
:
rgba
(
255
,
255
,
255
,
1
);
font-size
:
12px
;
cursor
:
pointer
;
transition
:
all
linear
.2s
;
}
.home-nav
.home-menu
.home-menu-item
>
div
{
padding
:
13px
0
13px
35px
;
border-radius
:
19px
0
0
19px
;
background-color
:
rgba
(
13
,
36
,
129
,
1
);
}
.home-nav
.home-menu
.home-menu-item
:hover
{
background-color
:
rgb
(
45
,
59
,
115
);
}
.home-nav
.home-menu
.home-menu-item.active
>
div
{
font-weight
:
bold
;
color
:
rgba
(
13
,
36
,
129
,
1
);
opacity
:
1
;
transition
:
all
linear
.2s
;
background-color
:
white
}
</
style
>
<
template
>
<div
class=
"home-nav"
>
<div
class=
"log-box"
>
<div>
<img
src=
"../../assets/img/logo.png"
alt=
""
>
</div>
</div>
<ul
class=
"home-menu"
>
<li
class=
"home-menu-item"
v-for=
"(item, index) in navList"
:key=
"index"
:class=
"[index === activeIndex ? 'active' : '']"
@
click=
"changeMenu(item, index)"
>
<div>
<i
:class=
"item.class"
></i><span>
{{
item
.
name
}}
</span>
</div>
</li>
</ul>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
activeIndex
:
0
,
navList
:
[
{
class
:
'iconfont icondongwu'
,
name
:
'仪表盘'
},
{
class
:
'iconfont icondongwu'
,
name
:
'待办事项'
},
{
class
:
'iconfont icondongwu'
,
name
:
'线索'
},
{
class
:
'iconfont icondongwu'
,
name
:
'客户'
},
{
class
:
'iconfont icondongwu'
,
name
:
'联系人'
},
{
class
:
'iconfont icondongwu'
,
name
:
'公海'
},
{
class
:
'iconfont icondongwu'
,
name
:
'商机'
},
{
class
:
'iconfont icondongwu'
,
name
:
'合同'
}
]
}
},
mounted
()
{
},
methods
:
{
changeMenu
:
function
(
it
,
ind
)
{
this
.
activeIndex
=
ind
}
}
}
</
script
>
src/router.js
View file @
6a6409c6
...
@@ -2,6 +2,7 @@ import Vue from "vue";
...
@@ -2,6 +2,7 @@ import Vue from "vue";
import
Router
from
"vue-router"
;
import
Router
from
"vue-router"
;
import
index
from
"./views/index"
;
import
index
from
"./views/index"
;
import
login
from
"./views/login"
;
import
login
from
"./views/login"
;
import
Home
from
"./components/Home"
Vue
.
use
(
Router
);
Vue
.
use
(
Router
);
export
default
new
Router
({
export
default
new
Router
({
...
@@ -38,7 +39,14 @@ export default new Router({
...
@@ -38,7 +39,14 @@ export default new Router({
content
:
"IE=Edge,chrome=1"
content
:
"IE=Edge,chrome=1"
},
},
children
:
[
children
:
[
{
path
:
"/Home"
,
name
:
"Home"
,
component
:
Home
,
meta
:
{
title
:
"CRM-仪表盘"
,
},
}
]
]
},
},
{
{
...
...
src/views/index.vue
View file @
6a6409c6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
height
:
100%
;
height
:
100%
;
}
}
.left-nav
{
.left-nav
{
width
:
1
4.93
%
;
width
:
1
5
%
;
float
:
left
;
float
:
left
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
100%
;
height
:
100%
;
...
@@ -11,26 +11,56 @@
...
@@ -11,26 +11,56 @@
}
}
.right-content
{
.right-content
{
float
:
left
;
float
:
left
;
width
:
calc
(
100vw
-
14.93%
)
;
width
:
85%
;
background
:
#F4F5F9
;
background
:
#F4F5F9
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
100%
;
height
:
100%
;
padding-left
:
30px
;
}
.home-nv-right
{
width
:
100%
;
height
:
11%
;
box-sizing
:
border-box
;
}
.template-div
{
height
:
calc
(
100vh
-
14%
);
overflow-y
:
auto
;
}
.template-div
::-webkit-scrollbar
{
width
:
4px
;
height
:
8px
;
}
.template-div
::-webkit-scrollbar-thumb
{
border-radius
:
4px
;
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#c9c9c9
;
}
.template-div
::-webkit-scrollbar-thumb
{
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
4px
;
background
:
#EDEDED
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"clearfix main"
>
<div
class=
"clearfix main"
>
<div
class=
"left-nav"
>
<div
class=
"left-nav"
>
<HomeNav/>
<HomeNav
Left
/>
</div>
</div>
<div
class=
"right-content"
>
<div
class=
"right-content"
>
a
<div
class=
"home-nv-right"
>
<HomeNavRight/>
</div>
<div
class=
"template-div"
>
<router-view/>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
HomeNav
from
'../components/HomeNav/HomeNav'
import
HomeNavLeft
from
'../components/HomeNav/HomeNavLeft'
import
HomeNavRight
from
'../components/HomeNav/HomeNavRight'
export
default
{
export
default
{
components
:
{
HomeNav
},
components
:
{
HomeNav
Left
,
HomeNavRight
},
data
()
{
data
()
{
return
{
return
{
...
...
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