Commit 77e67c21 by chenwq

折线图-默认和移除

1 parent d1aabe1b
...@@ -124,25 +124,21 @@ export default { ...@@ -124,25 +124,21 @@ export default {
// 鼠标划入 // 鼠标划入
this[this.domId].on('mouseover', data => { this[this.domId].on('mouseover', data => {
this.moveAttr.seriesIndex = data.dataIndex this.moveAttr.dataIndex = data.dataIndex
this.getRankList(this.moveAttr.seriesIndex, this.rankFlag + 'List') this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List')
}) })
// 鼠标划出 // 移除图表
this[this.domId].on('mouseout', () => { this[this.domId].on('globalout', () => {
console.log('0000000000') this.chartAction()
setTimeout(() => {
this.chartAction()
}, 1000)
}) })
}, },
chartAction(type) { chartAction(type) {
console.log(this.moveAttr, '???/cwq')
this[this.domId].dispatchAction({ this[this.domId].dispatchAction({
type: type || 'showTip', type: type || 'showTip',
seriesIndex: this.moveAttr.seriesIndex, seriesIndex: +this.moveAttr.seriesIndex,
dataIndex: this.moveAttr.dataIndex dataIndex: +this.moveAttr.dataIndex
}) })
}, },
...@@ -169,7 +165,7 @@ export default { ...@@ -169,7 +165,7 @@ export default {
handleRankChange(value) { handleRankChange(value) {
this.rankFlag = value this.rankFlag = value
this.getRankList(this.moveAttr.seriesIndex, this.rankFlag + 'List') this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List')
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!