Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
a863ef90
Commit
a863ef90
authored
Jun 04, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页修改
parent
2cb110e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
33 deletions
+45
-33
zanIndex.vue
src/components/zanIndex.vue
+45
-33
No files found.
src/components/zanIndex.vue
View file @
a863ef90
...
...
@@ -598,7 +598,6 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
salesData
=
res
.
data
.
data
;
this
.
initMap
()
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
...
...
@@ -649,18 +648,22 @@
//过滤支付订单数
filterOrder
()
{
this
.
isShowOrder
=
!
this
.
isShowOrder
;
this
.
initMap
();
},
//过滤支付金额
filterMoney
()
{
this
.
isShowMoney
=
!
this
.
isShowMoney
this
.
isShowMoney
=
!
this
.
isShowMoney
;
this
.
initMap
();
},
//过滤支付人数
filterPay
()
{
this
.
isShowPay
=
!
this
.
isShowPay
this
.
isShowPay
=
!
this
.
isShowPay
;
this
.
initMap
();
},
//过滤支付件数
filterPayNum
()
{
this
.
isShowPayNum
=
!
this
.
isShowPayNum
this
.
isShowPayNum
=
!
this
.
isShowPayNum
;
this
.
initMap
();
},
//初始化图标
initMap
()
{
...
...
@@ -679,6 +682,43 @@
goodArray
.
push
(
item
.
GoodCount
);
});
}
var
seriesData
=
[];
if
(
this
.
isShowOrder
)
{
seriesData
.
push
({
name
:
'支付订单数'
,
type
:
'line'
,
stack
:
'总量'
,
color
:
'#3399ff'
,
data
:
orderArray
});
}
if
(
this
.
isShowMoney
)
{
seriesData
.
push
({
name
:
'支付金额'
,
type
:
'line'
,
stack
:
'总量'
,
color
:
'rgb(255, 163, 96)'
,
data
:
orderIncome
});
}
if
(
this
.
isShowPay
)
{
seriesData
.
push
({
name
:
'支付人数'
,
type
:
'line'
,
stack
:
'总量'
,
color
:
'rgb(75, 194, 130)'
,
data
:
userArray
})
}
if
(
this
.
isShowPayNum
)
{
seriesData
.
push
({
name
:
'支付件数'
,
type
:
'line'
,
stack
:
'总量'
,
color
:
'rgb(255, 133, 133)'
,
data
:
goodArray
});
}
var
option
=
{
title
:
{
text
:
''
...
...
@@ -714,35 +754,7 @@
show
:
true
//隐藏或显示
}
},
series
:
[{
name
:
'支付订单数'
,
type
:
'line'
,
stack
:
'总量'
,
color
:
'#3399ff'
,
data
:
orderArray
},
{
name
:
'支付金额'
,
type
:
'line'
,
stack
:
'总量'
,
color
:
'rgb(255, 163, 96)'
,
data
:
orderIncome
},
{
name
:
'支付人数'
,
type
:
'line'
,
stack
:
'总量'
,
color
:
'rgb(75, 194, 130)'
,
data
:
userArray
},
{
name
:
'支付件数'
,
type
:
'line'
,
stack
:
'总量'
,
color
:
'rgb(255, 133, 133)'
,
data
:
goodArray
},
]
series
:
seriesData
};
myChart
.
setOption
(
option
,
true
);
},
...
...
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