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
bbc23bf3
Commit
bbc23bf3
authored
Jun 03, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改注册活跃人数展示
parent
e27b28da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
CustomerRegister.vue
...ontainers/Dashboard/CustomerRegister/CustomerRegister.vue
+12
-8
Dashboard.js
src/containers/Dashboard/Dashboard.js
+3
-0
No files found.
src/containers/Dashboard/CustomerRegister/CustomerRegister.vue
View file @
bbc23bf3
...
...
@@ -26,14 +26,16 @@
>
搜索
</el-button>
</search-item>
</div>
<div
class=
"more-info"
>
{{
reportYear
}}
年注册人数为:
{{
registeYearTotal
}}
人;平台注册会员总数:
{{
registeTotal
}}
人;平台活跃会员总数:
{{
activeTotal
}}
人
</div>
<div
class=
"Dashboard-CampusData"
>
<div
class=
"Dashboard-CampusItem"
v-loading=
"loading.regist"
>
<div
class=
"Dashboard-title"
>
<span>
{{
reportYear
}}
年每月注册数据
</span>
<span
class=
"more-info"
>
{{
reportYear
}}
年注册人数为:
{{
registeYearTotal
}}
人;截止到目前为止注册会员总数:
{{
registeTotal
}}
人
</span>
{{
reportYear
}}
年每月注册数据
</div>
<RegisterByMonth
:data=
"registePerMonth"
...
...
@@ -58,8 +60,7 @@
v-loading=
"loading.regist"
>
<div
class=
"Dashboard-title"
>
<span>
{{
reportYear
}}
年每月活跃数据
</span>
<span
class=
"more-info"
>
截止
{{
today
}}
,系统总活跃人数为:
{{
activeTotal
}}
人
</span>
{{
reportYear
}}
年每月活跃数据
</div>
<ActiveUserByMonth
:data=
"activeUser"
/>
</div>
...
...
@@ -101,6 +102,7 @@ export default {
'reportMounted'
,
'filters'
,
'registeTotal'
,
'activeTotal'
,
]),
registeYearTotal
()
{
return
this
.
registePerMonth
.
reduce
((
pre
,
curItem
)
=>
{
...
...
@@ -189,6 +191,11 @@ export default {
margin-right
:
0
;
}
}
.more-info
{
margin
:
15px
;
font-weight
:
normal
;
color
:
#f70707
;
}
.Dashboard-SearchBar
{
display
:
flex
;
padding
:
10px
0
20px
;
...
...
@@ -205,12 +212,9 @@ export default {
.Dashboard-CampusData
{
display
:
flex
;
padding
:
0
15px
;
margin-bottom
:
16px
;
.Dashboard-title
{
position
:
relative
;
.more-info
{
margin-left
:
20px
;
font-weight
:
normal
;
}
}
.
Dashboard-title
:
:
before
{
content
:
''
;
...
...
src/containers/Dashboard/Dashboard.js
View file @
bbc23bf3
...
...
@@ -62,6 +62,7 @@ const state = () => ({
registePerMonth
:
[],
activeUser
:
[],
customerCount
:
0
,
activeCount
:
0
,
},
title
:
{
activeCount
:
0
,
...
...
@@ -77,6 +78,7 @@ const getters = {
registePerDay
:
state
=>
state
.
report
.
registePerDay
,
registePerMonth
:
state
=>
state
.
report
.
registePerMonth
,
registeTotal
:
state
=>
state
.
report
.
customerCount
,
activeTotal
:
state
=>
state
.
report
.
activeCount
,
activeUser
:
state
=>
state
.
report
.
activeUser
,
titleData
:
state
=>
state
.
title
,
areaInfo
:
state
=>
state
.
consume
.
areaInfo
,
...
...
@@ -236,6 +238,7 @@ const mutations = {
},
[
GET_REPORT_DATA
]:
(
state
,
data
)
=>
{
state
.
report
.
customerCount
=
data
.
customerCount
?
data
.
customerCount
:
0
;
state
.
report
.
activeCount
=
data
.
activeCount
?
data
.
activeCount
:
0
;
state
.
report
.
year
=
data
.
year
;
state
.
report
.
month
=
data
.
month
;
...
...
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