Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Muse
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
罗超
Muse
Commits
75c626a5
Commit
75c626a5
authored
Oct 17, 2019
by
黄媛媛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/muse
parents
ba9cce03
5c6211f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
169 additions
and
54 deletions
+169
-54
dataLook.vue
src/components/viitto/dataLook.vue
+3
-3
lineChart2.vue
src/components/viitto/lineChart2.vue
+71
-6
lineChartK.vue
src/components/viitto/lineChartK.vue
+95
-45
No files found.
src/components/viitto/dataLook.vue
View file @
75c626a5
...
...
@@ -467,19 +467,19 @@
<div
class=
"item"
>
<div>
30日平均
</div>
<div>
{{
day_line_statics
[
0
].
OrderPercent
*
100
}}
<span
class=
"sub"
>
%
</span><img
src=
"../../assets/img/viitto/lvsedian.png"
alt=
""
>
{{
Math
.
round
(
day_line_statics
[
0
].
OrderPercent
*
10000
)
/
100
}}
<span
class=
"sub"
>
%
</span><img
src=
"../../assets/img/viitto/lvsedian.png"
alt=
""
>
</div>
</div>
<div
class=
"item"
>
<div>
60日平均
</div>
<div>
{{
day_line_statics
[
1
].
OrderPercent
*
100
}}
<span
class=
"sub"
>
%
</span><img
src=
"../../assets/img/viitto/hongsedian.png"
alt=
""
>
{{
Math
.
round
(
day_line_statics
[
1
].
OrderPercent
*
10000
)
/
100
}}
<span
class=
"sub"
>
%
</span><img
src=
"../../assets/img/viitto/hongsedian.png"
alt=
""
>
</div>
</div>
<div
class=
"item"
>
<div>
90日平均
</div>
<div>
{{
day_line_statics
[
1
].
OrderPercent
*
100
}}
<span
class=
"sub"
>
%
</span><img
src=
"../../assets/img/viitto/hongsedian.png"
alt=
""
>
{{
Math
.
round
(
day_line_statics
[
2
].
OrderPercent
*
10000
)
/
100
}}
<span
class=
"sub"
>
%
</span><img
src=
"../../assets/img/viitto/hongsedian.png"
alt=
""
>
</div>
</div>
</div>
...
...
src/components/viitto/lineChart2.vue
View file @
75c626a5
...
...
@@ -114,17 +114,22 @@ export default {
left
:
80
,
right
:
10
,
top
:
'5%'
,
height
:
'
24
%'
height
:
'
16
%'
},
{
left
:
80
,
right
:
10
,
top
:
'
37
%'
,
height
:
'
24
%'
top
:
'
28
%'
,
height
:
'
16
%'
},
{
left
:
80
,
right
:
10
,
top
:
'68%'
,
height
:
'24%'
top
:
'51%'
,
height
:
'16%'
},
{
left
:
80
,
right
:
10
,
top
:
'74%'
,
height
:
'16%'
}
],
xAxis
:
[
...
...
@@ -150,6 +155,14 @@ export default {
boundaryGap
:
false
,
data
:
_this
.
dateList
,
position
:
'bottom'
,
"show"
:
false
,
},
{
gridIndex
:
3
,
type
:
'category'
,
boundaryGap
:
false
,
data
:
_this
.
dateList
,
position
:
'bottom'
,
"show"
:
true
,
axisLabel
:
{
color
:
'#fff'
,
...
...
@@ -199,6 +212,26 @@ export default {
},
{
gridIndex
:
2
,
name
:
'收客人头数 '
+
_this
.
day_total_guestprice
.
OrderCount
,
type
:
'value'
,
inverse
:
false
,
splitLine
:
{
lineStyle
:
{
color
:
'#30374E'
,
type
:
'dashed'
}
},
nameTextStyle
:
{
color
:
'#ffffff'
,
padding
:
[
0
,
0
,
0
,
80
],
fontSize
:
18
},
axisLabel
:
{
color
:
'#32ff7e'
,
}
},
{
gridIndex
:
3
,
name
:
'产品点击 '
+
_this
.
day_total_guestprice
.
ClickCount
,
type
:
'value'
,
inverse
:
false
,
...
...
@@ -282,8 +315,9 @@ export default {
}
},
},
,
{
name
:
'
产品点击
'
,
name
:
'
收客人头数
'
,
type
:
'line'
,
xAxisIndex
:
2
,
yAxisIndex
:
2
,
...
...
@@ -291,6 +325,37 @@ export default {
hoverAnimation
:
true
,
smooth
:
true
,
showSymbol
:
false
,
data
:
_this
.
guestnumList
,
itemStyle
:
{
borderWidth
:
2
,
color
:
'#3FD2F3'
,
shadowBlur
:
5
,
shadowColor
:
'rgba(255,250,0,1)'
},
lineStyle
:
{
color
:
"#32ff7e"
,
shadowBlur
:
5
,
width
:
3
,
shadowColor
:
"#3ae374"
},
areaStyle
:
{
normal
:
{
color
:
new
this
.
$echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
"rgba(50, 255, 126,1)"
},
{
offset
:
.
8
,
color
:
"rgba(50, 255, 126,0)"
}
])
}
},
},
{
name
:
'产品点击'
,
type
:
'line'
,
xAxisIndex
:
3
,
yAxisIndex
:
3
,
symbolSize
:
2
,
hoverAnimation
:
true
,
smooth
:
true
,
showSymbol
:
false
,
data
:
_this
.
clickcountList
,
itemStyle
:
{
borderWidth
:
2
,
...
...
src/components/viitto/lineChartK.vue
View file @
75c626a5
...
...
@@ -54,7 +54,18 @@ export default {
},
mounted
()
{
let
data
=
this
.
lineChartKData
.
map
(
function
(
item
)
{
return
[
+
item
.
StartPrice
,
+
item
.
EndPrice
,
+
item
.
MinPrice
,
+
item
.
MaxPrice
,
+
item
.
ClickCount
,
+
item
.
FiveAvg
,
+
item
.
TenAvg
,
+
item
.
ThirtyAvg
,
+
item
.
NinetyAvg
,
+
item
.
ThirtyMonthAvg
];
return
[
+
item
.
StartPrice
,
+
item
.
EndPrice
,
+
item
.
MinPrice
,
+
item
.
MaxPrice
,
+
item
.
ClickCount
,
+
item
.
FiveAvg
,
+
item
.
TenAvg
,
+
item
.
ThirtyAvg
,
+
item
.
NinetyAvg
,
+
item
.
ThirtyMonthAvg
];
});
var
dates
=
this
.
lineChartKData
.
map
(
function
(
item
)
{
return
item
.
CreateDate
;
...
...
@@ -109,42 +120,81 @@ export default {
opacity
:
1
}
},
formatter
:
function
(
params
)
{
if
(
typeof
(
params
[
0
].
value
)
!==
"object"
)
{
// 防止放上去提示undefined
var
res
=
"成交单价"
res
+=
'<br/> 5日平均: '
+
params
[
0
].
value
res
+=
'<br/> 10日平均: '
+
params
[
1
].
value
res
+=
'<br/> 30日平均: '
+
params
[
2
].
value
res
+=
'<br/> 90日平均: '
+
params
[
3
].
value
res
+=
'<br/> 180日平均: '
+
params
[
4
].
value
// res += '
<
br
/>
点击
:
' + params[5].value
return res
} else {
var res = "成交单价"
res += '
<
br
/>
开始值
:
' + params[0].value[1]
res += '
<
br
/>
结束值
:
' + params[0].value[2]
res += '
<
br
/>
最低值
:
' + params[0].value[3]
res += '
<
br
/>
最高值
:
' + params[0].value[4]
res += '
<
br
/>
5
日平均
:
' + params[0].value[6]
res += '
<
br
/>
10
日平均
:
' + params[0].value[7]
res += '
<
br
/>
30
日平均
:
' + params[0].value[8]
res += '
<
br
/>
90
日平均
:
' + params[0].value[9]
res += '
<
br
/>
180
日平均
:
' + params[0].value[10]
// res += '
<
br
/>
点击
:
' + params[0].value[5]
return res
}
},
},
xAxis: {
type: '
category
',
data: _this.dates,
axisLine
:
{
lineStyle
:
{
color
:
'#8392A5'
}
}
axisLine: { lineStyle: { color: '
#
8392
A5
' } },
splitLine: {
show: true,
lineStyle: {
type: '
dashed
',
color: '
#
4
a4a4a
'
}
}
},
yAxis: [{
scale: true,
axisLine: { lineStyle: { color: '
#
8392
A5
' } },
splitLine
:
{
show
:
false
}
},
{
name
:
'产品点击'
,
type
:
'value'
,
position
:
'right'
,
splitLine
:
{
show
:
false
,
splitLine: {
show: true,
lineStyle: {
color
:
'#30374E
'
,
type
:
'dashed
'
type: '
dashed
',
color: '
#
4
a4a4a
'
}
},
nameTextStyle
:
{
color
:
'#ffffff'
,
padding
:
[
0
,
60
,
0
,
0
],
fontSize
:
18
},
axisLabel
:
{
color
:
'#12BBFF'
,
},
}
}
},
// {
// name : '
产品点击
',
// type : '
value
',
// position: '
right
',
// splitLine: {
// show: false,
// lineStyle: {
// color: '
#
30374
E
',
// type: '
dashed
'
// }
// },
// nameTextStyle: {
// color: '
#
ffffff
',
// padding: [0, 60, 0, 0],
// fontSize: 18
// },
// axisLabel: {
// color: '
#
12
BBFF
',
// },
// }
],
grid: {
bottom: 80,
left: 70,
right
:
7
0
,
right:
1
0,
},
dataZoom: [{
textStyle: {
...
...
@@ -180,12 +230,12 @@ export default {
name: '
成交单价
',
data: _this.dataList,
itemStyle: {
normal
:
{
color
:
'#FD1050'
,
color0
:
'#0CF49B'
,
borderColor
:
'#FD1050'
,
borderColor0
:
'#0CF49B'
}
normal: {
color: '
#
FD1050
',
color0: '
#
0
CF49B
',
borderColor: '
#
FD1050
',
borderColor0: '
#
0
CF49B
'
}
}
},
{
...
...
@@ -197,7 +247,7 @@ export default {
showSymbol: false,
z: 3,
lineStyle: {
width
:
3
,
width:
1
,
}
},
{
...
...
@@ -209,7 +259,7 @@ export default {
showSymbol: false,
z: 3,
lineStyle: {
width
:
3
,
width:
1
,
}
},
{
...
...
@@ -221,7 +271,7 @@ export default {
showSymbol: false,
z: 3,
lineStyle: {
width
:
3
,
width:
1
,
}
},
{
...
...
@@ -233,7 +283,7 @@ export default {
showSymbol: false,
z: 3,
lineStyle: {
width
:
3
,
width:
1
,
}
},
{
...
...
@@ -245,20 +295,20 @@ export default {
showSymbol: false,
z: 3,
lineStyle: {
width
:
3
,
}
},
{
name
:
'产品点击'
,
type
:
'line'
,
data
:
calculateMA
(
4
,
_this
.
dataList
),
smooth
:
true
,
yAxisIndex
:
1
,
showSymbol
:
false
,
lineStyle
:
{
width
:
3
,
width: 1,
}
},
// {
// name: '
产品点击
',
// type: '
line
',
// data: calculateMA(4, _this.dataList),
// smooth: true,
// yAxisIndex: 1,
// showSymbol: false,
// lineStyle: {
// width: 3,
// }
// },
]
}
_this.myChart.setOption(option);
...
...
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