diff --git a/src/components/v-echars/index.vue b/src/components/v-echars/index.vue index 3be21bf..0dabc83 100644 --- a/src/components/v-echars/index.vue +++ b/src/components/v-echars/index.vue @@ -35,6 +35,11 @@ export default { this.myChart.setOption(val); } this.myChart.off('click'); //解绑点击事件 + // this.myChart.on('mouseover', (params) => { + // if(params.componentType === 'markPoint') { + // console.log('hover'); + // } + // }) this.myChart.on('click', (params) => { if(params.componentSubType === 'bar') { let obj = { @@ -51,12 +56,13 @@ export default { this.$emit("getData", o); } if(params.componentType === 'markPoint') { + params.event.event.stopPropagation(); let o = { key: params.data.name, - value: params.value, - mark: params.componentType + offsetX: params.event.offsetX, + offsetY: params.event.offsetY, } - this.$emit("getData", o); + this.$emit("clickMark", o); } }); // this.myChart.off("click"); diff --git a/src/views/BrandInsight/titsopo/index.vue b/src/views/BrandInsight/titsopo/index.vue index dbb4262..e924699 100644 --- a/src/views/BrandInsight/titsopo/index.vue +++ b/src/views/BrandInsight/titsopo/index.vue @@ -15,7 +15,18 @@
- + +
+
+
+
+
+ + 关闭 + +
@@ -23,6 +34,7 @@