Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
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-manage-shell
Commits
eec7f635
Commit
eec7f635
authored
May 30, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
修改活跃展示方式 See merge request
!125
parents
7a0f094c
3f07975a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
20 deletions
+17
-20
ActiveUserByMonth.vue
...shboard/CustomerRegister/components/ActiveUserByMonth.vue
+1
-1
RegisterByMonth.vue
...Dashboard/CustomerRegister/components/RegisterByMonth.vue
+0
-6
Dashboard.js
src/containers/Dashboard/Dashboard.js
+16
-13
No files found.
src/containers/Dashboard/CustomerRegister/components/ActiveUserByMonth.vue
View file @
eec7f635
...
...
@@ -15,7 +15,7 @@ export default {
serviceList
:
[
{
value
:
'monthAppActive'
,
name
:
'APP活跃用户'
},
{
value
:
'monthHardActive'
,
name
:
'硬件活跃用户'
},
{
value
:
'allActive'
,
name
:
'
两者兼具
'
},
{
value
:
'allActive'
,
name
:
'
全部活跃
'
},
{
value
:
'total'
,
name
:
'全部活跃'
},
],
};
...
...
src/containers/Dashboard/CustomerRegister/components/RegisterByMonth.vue
View file @
eec7f635
...
...
@@ -28,16 +28,10 @@ export default {
});
this
.
chart
.
source
(
this
.
data
,
{
month
:
{
min
:
1
,
max
:
12
,
tickCount
:
12
,
},
count
:
{
alias
:
'人数'
,
},
})
.
axis
(
'count'
,
false
)
.
axis
(
'month'
,
{
label
:
{
textStyle
:
{
...
...
src/containers/Dashboard/Dashboard.js
View file @
eec7f635
...
...
@@ -221,7 +221,7 @@ const mutations = {
let
registerList
=
new
Array
(
12
)
.
fill
({
count
:
0
,
mark
:
null
})
.
map
((
v
,
idx
)
=>
({
...
v
,
month
:
idx
+
1
}));
.
map
((
v
,
idx
)
=>
({
...
v
,
month
:
(
idx
+
1
).
toString
()
}));
data
.
list
.
map
(
val
=>
{
let
idx
=
val
.
month
-
1
;
registerList
[
idx
].
count
+=
val
.
count
;
...
...
@@ -229,25 +229,28 @@ const mutations = {
state
.
report
.
registePerMonth
=
registerList
;
let
activeList
=
new
Array
(
12
)
.
fill
({
count
:
0
,
mark
:
'
total
'
})
.
map
((
v
,
idx
)
=>
({
...
v
,
month
:
idx
+
1
}));
.
fill
({
count
:
0
,
mark
:
'
allActive
'
})
.
map
((
v
,
idx
)
=>
({
...
v
,
month
:
(
idx
+
1
).
toString
()
}));
let
activeAppList
=
new
Array
(
12
)
.
fill
({
count
:
0
,
mark
:
'monthAppActive'
,
})
.
map
((
v
,
idx
)
=>
({
...
v
,
month
:
idx
+
1
}));
.
fill
({
count
:
0
,
mark
:
'monthAppActive'
})
.
map
((
v
,
idx
)
=>
({
...
v
,
month
:
(
idx
+
1
).
toString
()
}));
let
activeDeviceList
=
new
Array
(
12
)
.
fill
({
count
:
0
,
mark
:
'monthHardActive'
})
.
map
((
v
,
idx
)
=>
({
...
v
,
month
:
(
idx
+
1
).
toString
()
}));
data
.
listCount
.
map
(
val
=>
{
let
idx
=
val
.
month
-
1
;
if
(
val
.
mark
===
'allActive'
)
{
activeList
[
idx
].
count
+=
val
.
count
;
});
data
.
listCount
.
filter
(
val
=>
val
.
mark
===
'monthAppActive'
||
val
.
mark
===
'allActive'
)
.
map
(
val
=>
{
let
idx
=
val
.
month
-
1
;
}
if
(
val
.
mark
===
'monthAppActive'
)
{
activeAppList
[
idx
].
count
+=
val
.
count
;
}
if
(
val
.
mark
===
'monthHardActive'
)
{
activeDeviceList
[
idx
].
count
+=
val
.
count
;
}
});
activeList
.
push
.
apply
(
activeList
,
activeAppList
);
activeList
.
push
.
apply
(
activeList
,
activeDeviceList
);
state
.
report
.
activeUser
=
activeList
;
},
[
GET_TITLE_DATA
](
state
,
data
)
{
...
...
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