Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-system
Project
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
姜雷
dcxy-system
Commits
16fb9102
Commit
16fb9102
authored
May 30, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加每月注册数据填充
parent
0b992051
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Dashboard.js
src/containers/Dashboard/Dashboard.js
+9
-1
No files found.
src/containers/Dashboard/Dashboard.js
View file @
16fb9102
...
@@ -218,7 +218,15 @@ const mutations = {
...
@@ -218,7 +218,15 @@ const mutations = {
dayList
[
idx
].
count
=
val
.
count
;
dayList
[
idx
].
count
=
val
.
count
;
});
});
state
.
report
.
registePerDay
=
dayList
;
state
.
report
.
registePerDay
=
dayList
;
state
.
report
.
registePerMonth
=
data
.
list
;
let
registerList
=
new
Array
(
12
)
.
fill
({
count
:
0
,
mark
:
null
})
.
map
((
v
,
idx
)
=>
({
...
v
,
month
:
idx
+
1
}));
data
.
list
.
map
(
val
=>
{
let
idx
=
val
.
month
-
1
;
registerList
[
idx
].
count
+=
val
.
count
;
});
state
.
report
.
registePerMonth
=
registerList
;
let
activeList
=
new
Array
(
12
)
let
activeList
=
new
Array
(
12
)
.
fill
({
count
:
0
,
mark
:
'total'
})
.
fill
({
count
:
0
,
mark
:
'total'
})
...
...
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