only navigate to transaction list page when click pie chart label in desktop version

This commit is contained in:
MaysWind
2023-07-11 00:15:47 +08:00
parent 19fea4e761
commit 13c6d406cf
+12 -2
View File
@@ -227,9 +227,19 @@ export default {
},
methods: {
clickItem: function (e) {
if (this.enableClickItem && e.componentType === 'series' && e.seriesType ==='pie' && e.data && e.data.sourceItem) {
this.$emit('click', e.data.sourceItem);
if (!this.enableClickItem || e.componentType !== 'series' || e.seriesType !=='pie') {
return;
}
if (e.event && e.event.target && e.event.target.constructor && e.event.target.constructor.name === 'PiePiece2') {
return;
}
if (!e.data || !e.data.sourceItem) {
return;
}
this.$emit('click', e.data.sourceItem);
},
onLegendSelectChanged: function (e) {
this.selectedLegends = e.selected;