Commit 66f3b11f authored by Jenny's avatar Jenny

Merge branch 'develop' of 106.15.103.105:lihuizhen/ec-report-refactor into develop

parents 3b8cb5d5 d8fd2aac
......@@ -39,7 +39,7 @@ export default {
devicePixelRatio: canvasDpr
})
canvas.setChart(chart)
const { dataList: { categories, series } } = this.elementData
const { dataList: { categories, series, preview, images } } = this.elementData
const options = {
...this.elementInfo.option,
tooltip: {},
......@@ -51,7 +51,17 @@ export default {
}
chart.setOption(options)
chart.on('click', event => {
this.handleEchartsClick(event)
// 特殊处理,如果preview为true,代表点击显示图片
if(preview) {
uni.previewImage({
current: event.dataIndex,
urls:images,
indicator: 'number',
loop: true
})
} else {
this.handleEchartsClick(event)
}
})
return chart
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment