Commit de10ab30 by 胡悦

修复客户总数

1 parent cdd190e5
......@@ -236,11 +236,11 @@ export default {
this.flag = true
})
},
chartAction() {
chartAction(lineData) {
this.canvas.dispatchAction({
type: 'showTip',
seriesIndex: 0,
dataIndex: this.lineData.length - 1
dataIndex: lineData.length - 1
})
},
draw(lineData, queryType) {
......@@ -348,15 +348,12 @@ export default {
}
this.canvas.setOption(options)
this.chartAction(lineData)
this.canvas.on('globalout', () => {
this.chartAction(lineData)
})
window.addEventListener('resize', () => {
this.canvas.resize()
})
// 移除图表
this.canvas.on('globalout', () => {
this.chartAction()
this.chartAction(lineData)
})
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!