Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
ZhangJianFrontEnd
Overview
Overview
Details
Activity
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
vue-project
ZhangJian
ZhangJianFrontEnd
Commits
dcf43fe8
Commit
dcf43fe8
authored
Aug 11, 2021
by
wdc147
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/20210819' into wdc
parents
29ee0e2d
f2ead030
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
Right.vue
src/pages/index/Right.vue
+1
-3
No files found.
src/pages/index/Right.vue
View file @
dcf43fe8
...
...
@@ -231,7 +231,6 @@ export default {
// 活动开展
active
:
[],
activeConfig
:
{},
activeSum
:
''
,
activeList
:
[]
}
},
...
...
@@ -400,12 +399,11 @@ export default {
value
:
item
.
value
}
})
this
.
activeSum
=
this
.
rightData
.
active
.
total
},
getActive
()
{
let
yData
=
this
.
activeList
.
map
(
v
=>
v
.
key
).
reverse
()
// y轴左侧的数据
let
y2Data
=
this
.
activeList
.
map
(
v
=>
v
.
value
).
reverse
()
// y轴右侧的数据
let
max
=
this
.
activeSum
let
max
=
this
.
rightData
.
active
.
total
let
maxData
=
new
Array
(
this
.
activeList
.
length
).
fill
(
max
)
// x轴的最大值
let
pointData
=
this
.
activeList
.
reverse
().
map
((
v
,
i
)
=>
{
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