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
a77d24bd
Commit
a77d24bd
authored
May 29, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改每月注册数据的点击监听
parent
a441ba89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
15 deletions
+11
-15
ActiveUserByMonth.vue
...shboard/CustomerRegister/components/ActiveUserByMonth.vue
+5
-12
RegisterByMonth.vue
...Dashboard/CustomerRegister/components/RegisterByMonth.vue
+6
-3
No files found.
src/containers/Dashboard/CustomerRegister/components/ActiveUserByMonth.vue
View file @
a77d24bd
...
...
@@ -45,19 +45,12 @@ export default {
showTitle
:
false
,
});
// 图例
this
.
chart
.
legend
({
position
:
'top'
,
title
:
null
,
marker
:
'square'
,
});
// .axis('count', false)
// .axis('mark', {
// formatter: value => {
// let service = this.serviceList.find(item => item.value === value);
// return service ? `${service.name}` : '';
// },
// });
this
.
chart
.
legend
({
position
:
'top'
,
title
:
null
,
marker
:
'square'
,
})
.
interval
()
.
position
(
'month*count'
)
.
color
(
'mark'
,
[
'#4e82fb'
,
'#ffc934'
,
'#26c9a8'
])
...
...
src/containers/Dashboard/CustomerRegister/components/RegisterByMonth.vue
View file @
a77d24bd
...
...
@@ -52,11 +52,14 @@ export default {
.
position
(
'month*count'
)
.
color
(
'#4e82fb'
);
this
.
chart
.
render
();
this
.
chart
.
on
(
'
interval:
click'
,
this
.
clickHandle
);
this
.
chart
.
on
(
'
plot
click'
,
this
.
clickHandle
);
},
clickHandle
(
ev
)
{
let
data
=
ev
.
data
.
_origin
;
this
.
changeReportMonthHandle
(
data
.
month
);
let
records
=
this
.
chart
.
getSnapRecords
({
x
:
ev
.
x
,
y
:
ev
.
y
});
if
(
records
&&
records
.
length
)
{
let
data
=
records
[
0
].
_origin
;
this
.
changeReportMonthHandle
(
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