fix: tab选项卡折线图,数据为空时去除移入点击效果

This commit is contained in:
@changcode
2022-11-22 17:58:15 +08:00
parent bf008fe944
commit ae4ce44eff
3 changed files with 9 additions and 0 deletions

View File

@@ -197,6 +197,7 @@ export default {
this.showError = false
if (this.isNoData) {
this.lineTab = ''
this.mpackets = [
{ analysis: {}, name: 'network.total', class: 'total', show: true, invertTab: true, positioning: 0, data: [], unitType: '' },
{ analysis: {}, name: 'network.inbound', class: 'inbound', show: true, invertTab: true, positioning: 1, data: [], unitType: '' },
@@ -519,12 +520,14 @@ export default {
})
},
activeChange (item, index) {
if (this.isNoData) return
this.lineTab = item.class
this.legendSelectChange(item, index, 'active')
this.showMarkLine = !item.invertTab
this.init(this.metric, this.showMarkLine, 'active')
},
mouseenter (item) {
if (this.isNoData) return
this.mousemoveCursor = item.class
this.handleActiveBar(item.class)
},