NEZ-3230 fix:dashboard chart tooltip点击其它图表时未自动关闭

This commit is contained in:
zyh
2023-10-13 14:38:51 +08:00
parent c34e896619
commit 74215c9c66
9 changed files with 9 additions and 9 deletions

View File

@@ -338,7 +338,7 @@ export default {
}
},
chartMousedown (e) {
if (this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') {
if ((this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') && this.tooltip.dataLinkShow) {
e.stopPropagation()
}
},

View File

@@ -445,7 +445,7 @@ export default {
}
},
chartMousedown (e) {
if (this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') {
if ((this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') && this.tooltip.dataLinkShow) {
e.stopPropagation()
}
},

View File

@@ -434,7 +434,7 @@ export default {
}
},
chartMousedown (e) {
if (this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') {
if ((this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') && this.tooltip.dataLinkShow) {
e.stopPropagation()
}
},

View File

@@ -489,7 +489,7 @@ export default {
}
},
chartMousedown (e) {
if (this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') {
if ((this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') && this.tooltip.dataLinkShow) {
e.stopPropagation()
}
},

View File

@@ -351,7 +351,7 @@ export default {
}
},
chartMousedown (e) {
if (this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') {
if ((this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') && this.tooltip.dataLinkShow) {
e.stopPropagation()
}
},

View File

@@ -472,7 +472,7 @@ export default {
}
},
chartMousedown (e) {
if (this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') {
if ((this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') && this.tooltip.dataLinkShow) {
e.stopPropagation()
}
},

View File

@@ -459,7 +459,7 @@ export default {
}
},
chartMousedown (e) {
if (this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') {
if ((this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') && this.tooltip.dataLinkShow) {
e.stopPropagation()
}
},

View File

@@ -541,7 +541,7 @@ export default {
}
},
chartMousedown (e) {
if (this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') {
if ((this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') && this.tooltip.dataLinkShow) {
e.stopPropagation()
}
},

View File

@@ -524,7 +524,7 @@ export default {
}
},
chartMousedown (e) {
if (this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') {
if ((this.dataLink.length || this.chartInfo.datasource === 'metrics' || this.chartInfo.datasource === 'logs') && this.tooltip.dataLinkShow) {
e.stopPropagation()
}
},