guanqb
2022-11-10 5ef9819ba15a270ea44b345ee5360a53301d78ff
首页设备echarts提示文字及位置
1 files modified
11 ■■■■■ changed files
src/views/home/components/rightContainer.vue 11 ●●●●● patch | view | raw | blame | history
src/views/home/components/rightContainer.vue
@@ -244,6 +244,12 @@
                equipmentmyChart.dispatchAction({
                    type: 'highlight', seriesIndex: 0, dataIndex: curIndex
                })
                equipmentmyChart.dispatchAction({
                    type: "showTip",
                    seriesIndex: 0,
                    dataIndex: curIndex,
                    position: ['5%', '5%'],
                })
            }, 1000)
            equipmentmyChart.on('mouseover', function (param) {
                clearInterval(timer)
@@ -270,6 +276,11 @@
                    equipmentmyChart.dispatchAction({
                        type: 'highlight', seriesIndex: 0, dataIndex: curIndex
                    })
                    equipmentmyChart.dispatchAction({
                        type: "showTip",
                        seriesIndex: 0,
                        dataIndex: curIndex
                    })
                }, 1000)
            })
        },