Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d8b42895
authored
Jun 24, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复样式
1 parent
891473c2
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
110 additions
and
22 deletions
src/assets/css/index.scss
src/components/ViewContentLeft.vue
src/components/ViewContentRight.vue
src/components/ViewLineGroup.vue
src/utils/data.js
src/views/salesData/flow.vue
src/assets/css/index.scss
View file @
d8b4289
...
@@ -82,7 +82,7 @@ img {
...
@@ -82,7 +82,7 @@ img {
color
:
#E8E8E8
;
color
:
#E8E8E8
;
line-height
:
2
.1vh
;
line-height
:
2
.1vh
;
font-weight
:
400
;
font-weight
:
400
;
padding
:
0
.5vh
0
.6vh
;
padding
:
0
.5vh
8px
;
user-select
:
none
;
user-select
:
none
;
}
}
.title-icon
{
.title-icon
{
...
...
src/components/ViewContentLeft.vue
View file @
d8b4289
...
@@ -4,27 +4,28 @@
...
@@ -4,27 +4,28 @@
<view-sub-title
title=
"集团客户总览"
/>
<view-sub-title
title=
"集团客户总览"
/>
<view-tabs
/>
<view-tabs
/>
<view-pie-group>
<view-pie-group>
<div
slot=
"1"
><Age></Age></div>
<div
slot=
"1"
><Age
:height=
"defaultHeight"
></Age></div>
<div
slot=
"2"
><BuyCar></BuyCar></div>
<div
slot=
"2"
><BuyCar
:height=
"defaultHeight"
></BuyCar></div>
<div
slot=
"3"
><Sex></Sex></div>
<div
slot=
"3"
><Sex
:height=
"defaultHeight"
></Sex></div>
</view-pie-group>
</view-pie-group>
</div>
</div>
<div
class=
"bottom"
>
<div
class=
"bottom"
>
<view-sub-title
title=
"销售数据总览"
/>
<view-sub-title
title=
"销售数据总览"
/>
<view-line-group
height=
"14.9vh"
>
<view-line-group
height=
"14.9vh"
>
<div
slot=
"1"
><Flow></Flow></div>
<div
slot=
"1"
><Flow
height=
"14.9"
></Flow></div>
<div
slot=
"2"
><Trend></Trend></div>
<div
slot=
"2"
><Trend
height=
"14.9"
></Trend></div>
</view-line-group>
</view-line-group>
<view-pie-group>
<view-pie-group>
<div
slot=
"1"
><EnterCategory></EnterCategory></div>
<div
slot=
"1"
><EnterCategory
:height=
"defaultHeight"
></EnterCategory></div>
<div
slot=
"2"
><InfoFrom></InfoFrom></div>
<div
slot=
"2"
><InfoFrom
:height=
"defaultHeight"
></InfoFrom></div>
<div
slot=
"3"
><CustomerCategory></CustomerCategory></div>
<div
slot=
"3"
><CustomerCategory
:height=
"defaultHeight"
></CustomerCategory></div>
</view-pie-group>
</view-pie-group>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
datas
from
'../utils/data'
import
Age
from
'../views/customer/age'
import
Age
from
'../views/customer/age'
import
BuyCar
from
'../views/customer/buyCar'
import
BuyCar
from
'../views/customer/buyCar'
import
Sex
from
'../views/customer/sex'
import
Sex
from
'../views/customer/sex'
...
@@ -45,11 +46,12 @@ export default {
...
@@ -45,11 +46,12 @@ export default {
InfoFrom
,
InfoFrom
,
EnterCategory
EnterCategory
},
},
data
()
{
data
()
{
return
{
return
{
defaultHeight
:
datas
.
DefaultData
.
defaultPieHeight
}
}
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
}
}
...
...
src/components/ViewContentRight.vue
View file @
d8b4289
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-06-23 10:52:23
* @Date: 2022-06-23 10:52:23
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2022-06-24 1
0:49:55
* @LastEditTime: 2022-06-24 1
4:44:50
-->
-->
<
template
>
<
template
>
<div
class=
"right"
>
<div
class=
"right"
>
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
<div
slot=
"2"
><Sadayasu
:height=
"defaultHeight"
></Sadayasu></div>
<div
slot=
"2"
><Sadayasu
:height=
"defaultHeight"
></Sadayasu></div>
</view-line-group>
</view-line-group>
<view-line-group
height=
"25.6vh"
hideMargin
>
<view-line-group
height=
"25.6vh"
hideMargin
>
<div
slot=
"1"
><Analyze
height=
"25.6
vh
"
></Analyze></div>
<div
slot=
"1"
><Analyze
height=
"25.6"
></Analyze></div>
<div
slot=
"2"
><Mileage
height=
"25.6
vh
"
></Mileage></div>
<div
slot=
"2"
><Mileage
height=
"25.6"
></Mileage></div>
</view-line-group>
</view-line-group>
</div>
</div>
</
template
>
</
template
>
...
...
src/components/ViewLineGroup.vue
View file @
d8b4289
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-06-23 11:28:03
* @Date: 2022-06-23 11:28:03
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2022-06-24 1
0:51:16
* @LastEditTime: 2022-06-24 1
4:57:41
-->
-->
<
template
>
<
template
>
<div
class=
"line-group"
>
<div
class=
"line-group"
>
...
@@ -22,7 +22,7 @@ export default {
...
@@ -22,7 +22,7 @@ export default {
props
:
{
props
:
{
height
:
{
height
:
{
type
:
String
,
type
:
String
,
default
:
datas
.
DefaultData
.
defaultLineHeight
default
:
datas
.
DefaultData
.
defaultLineHeight
+
'vh'
},
},
hideMargin
:
Boolean
hideMargin
:
Boolean
},
},
...
...
src/utils/data.js
View file @
d8b4289
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-06-23 17:38:33
* @Date: 2022-06-23 17:38:33
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2022-06-24 1
1:24:36
* @LastEditTime: 2022-06-24 1
4:44:19
*/
*/
const
DefaultData
=
{
const
DefaultData
=
{
defaultLineHeight
:
'19.8vh'
defaultLineHeight
:
'19.8'
,
defaultPieHeight
:
'16.6'
}
}
const
Customer
=
{
const
Customer
=
{
...
...
src/views/salesData/flow.vue
View file @
d8b4289
...
@@ -3,16 +3,101 @@
...
@@ -3,16 +3,101 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-06-23 15:05:21
* @Date: 2022-06-23 15:05:21
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2022-06-2
3 17:08:07
* @LastEditTime: 2022-06-2
4 16:26:20
-->
-->
<
template
>
<
template
>
<div>
<div
class=
"flow-box"
>
<div
class=
"title"
>
客流转化
</div>
<div
class=
"title inline"
>
客流转化
</div>
<div
class=
"chart-box"
>
<div
id=
"flow"
:style=
"
{ height: height - 3.1 + 'vh' }">
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
echarts
from
'echarts'
export
default
{
export
default
{
name
:
'Flow'
name
:
'Flow'
,
props
:
[
'height'
],
data
()
{
return
{}
},
mounted
()
{
this
.
getChart
()
},
methods
:
{
getChart
()
{
var
chartDom
=
document
.
getElementById
(
'flow'
)
var
myChart
=
echarts
.
init
(
chartDom
)
var
option
option
=
{
tooltip
:
{
trigger
:
'item'
,
formatter
:
'{a} <br/>{b} : {c}%'
},
series
:
[
{
name
:
'Funnel'
,
type
:
'funnel'
,
left
:
0
,
top
:
8
,
bottom
:
8
,
width
:
'100%'
,
min
:
0
,
max
:
100
,
minSize
:
'30%'
,
maxSize
:
'100%'
,
sort
:
'descending'
,
gap
:
2
,
label
:
{
show
:
true
,
position
:
'inside'
},
labelLine
:
{
length
:
10
,
lineStyle
:
{
width
:
1
,
type
:
'solid'
}
},
itemStyle
:
{
borderColor
:
'#fff'
,
borderWidth
:
1
},
emphasis
:
{
label
:
{
fontSize
:
20
}
},
data
:
[
{
value
:
60
,
name
:
'Visit'
},
{
value
:
40
,
name
:
'Inquiry'
},
{
value
:
20
,
name
:
'Order'
},
{
value
:
80
,
name
:
'Click'
},
{
value
:
100
,
name
:
'Show'
}
]
}
]
}
option
&&
myChart
.
setOption
(
option
)
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.flow-box
{
padding
:
0
8px
1vh
;
box-sizing
:
border-box
;
}
.chart-box
{
width
:
148px
;
height
:
11.7vh
;
background-color
:
#262525
;
padding
:
0
25px
;
//
margin
:
0
20px
1vh
8px
;
//
box-sizing
:
border-box
;
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment