Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c3d761e0
authored
Jul 23, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
de10ab30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/views/afterSales/analyze.vue
src/views/afterSales/analyze.vue
View file @
c3d761e
...
...
@@ -30,6 +30,7 @@
<
script
>
import
*
as
echarts
from
'echarts'
import
datas
from
'../../utils/data'
import
utils
from
'../../utils/util'
import
{
changeMixin
}
from
'../../mixins/index'
export
default
{
name
:
'Analyze'
,
...
...
@@ -143,7 +144,7 @@ export default {
this
.
barChart
.
clear
()
this
.
barChart
.
setOption
(
this
.
option
)
this
.
chartAction
()
this
.
barChart
.
getZr
().
on
(
'mousemove'
,
params
=>
{
this
.
barChart
.
getZr
().
on
(
'mousemove'
,
utils
.
debounce
(
params
=>
{
const
pointInPixel
=
[
params
.
offsetX
,
params
.
offsetY
]
const
pointInGrid
=
this
.
barChart
.
convertFromPixel
({
seriesIndex
:
0
},
pointInPixel
)
const
yIndex
=
pointInGrid
[
1
]
...
...
@@ -154,7 +155,7 @@ export default {
name
,
dataIndex
:
yIndex
}
})
})
,
500
)
// 鼠标划入
// this.barChart.on('mouseup', data => {
// this.initPieData(data.name)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment