Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
7a85ecb7
Commit
7a85ecb7
authored
Dec 19, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ANDROID分享
parent
ed8665b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
10 deletions
+37
-10
orderStatistics.vue
src/views/statistics/orderStatistics.vue
+37
-10
No files found.
src/views/statistics/orderStatistics.vue
View file @
7a85ecb7
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<!--
<p
v-for=
"(item,index) in chartArr"
:key=
"index"
>
{{
item
.
row
}}
</p>
-->
<!--
<p
v-for=
"(item,index) in chartArr"
:key=
"index"
>
{{
item
.
row
}}
</p>
-->
<div
v-for=
"(item,index) in chartArr"
:key=
"index"
>
<div
v-for=
"(item,index) in chartArr"
:key=
"index"
>
<p
style=
"text-align:center"
>
{{
checkArr
.
filter
(
val
=>
val
.
id
==
item
.
title
)[
0
].
name
}}
</p>
<p
style=
"text-align:center"
>
{{
checkArr
.
filter
(
val
=>
val
.
id
==
item
.
title
)[
0
].
name
}}
</p>
<ve-line
:data=
"item"
:extend=
"extend"
:settings=
"chartSettings"
:legend-visible=
"false"
></ve-line>
<ve-line
:data=
"item"
:extend=
"extend"
:settings=
"chartSettings"
:legend-visible=
"false"
:data-zoom=
"dataZoom"
></ve-line>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -72,6 +72,13 @@ export default {
...
@@ -72,6 +72,13 @@ export default {
this
.
extend
=
{
this
.
extend
=
{
'xAxis.0.axisLabel.rotate'
:
45
'xAxis.0.axisLabel.rotate'
:
45
}
}
this
.
dataZoom
=
[
{
type
:
'slider'
,
start
:
0
,
end
:
20
}
]
this
.
chartSettings
=
{
this
.
chartSettings
=
{
labelMap
:
{
labelMap
:
{
orderAmount
:
'数量'
,
orderAmount
:
'数量'
,
...
@@ -149,7 +156,7 @@ export default {
...
@@ -149,7 +156,7 @@ export default {
}
}
],
],
chartData
:
{
chartData
:
{
columns
:
[
'date'
,
'orderAmount'
],
columns
:
[
'date
Str
'
,
'orderAmount'
],
rows
:
[
rows
:
[
// {
// {
// 日期: '2019-12-18',
// 日期: '2019-12-18',
...
@@ -297,14 +304,34 @@ export default {
...
@@ -297,14 +304,34 @@ export default {
let
info
=
data
.
data
let
info
=
data
.
data
let
params
=
{}
let
params
=
{}
let
choose
=
this
.
listQuery
.
statisticalSigns
let
choose
=
this
.
listQuery
.
statisticalSigns
let
way
=
this
.
listQuery
.
statisticalWay
var
x
var
y
let
dateIndex
=
way
==
3
?
1
:
way
==
2
?
1
:
2
let
orderIndex
=
way
==
1
?
3
:
0
for
(
let
i
=
0
;
i
<
choose
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
choose
.
length
;
i
++
)
{
if
(
info
[
choose
[
i
]]
!=
''
)
{
if
(
info
[
choose
[
i
]]
!=
''
)
{
params
[
choose
[
i
]]
=
{
params
[
choose
[
i
]]
=
{
columns
:
[
columns
:
[
Object
.
keys
(
info
[
choose
[
i
]][
0
])[
1
],
Object
.
keys
(
info
[
choose
[
i
]][
0
])[
dateIndex
],
Object
.
keys
(
info
[
choose
[
i
]][
0
])[
2
]
Object
.
keys
(
info
[
choose
[
i
]][
0
])[
orderIndex
]
],
],
rows
:
info
[
choose
[
i
]],
rows
:
info
[
choose
[
i
]].
sort
(
function
(
a
,
b
){
if
(
way
===
1
){
x
=
a
.
date
;
y
=
b
.
date
;
}
if
(
way
===
2
){
x
=
a
.
weekOfYear
;
y
=
b
.
weekOfYear
;
}
if
(
way
===
3
){
x
=
a
.
month
;
y
=
b
.
month
;
}
return
((
x
<
y
)?
-
1
:((
x
>
y
)?
1
:
0
));
}),
title
:
choose
[
i
]
title
:
choose
[
i
]
}
}
}
}
...
@@ -315,7 +342,7 @@ export default {
...
@@ -315,7 +342,7 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
},
300
)
},
300
)
})
})
}
},
}
}
}
}
</
script
>
</
script
>
...
...
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