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