fix: 修复dns 下钻折线图 tab选择样式问题

This commit is contained in:
@changcode
2022-12-15 14:12:09 +08:00
parent df820295fe
commit fe72d25834

View File

@@ -279,14 +279,14 @@ export default {
})
},
echartsInit (echartsData, show) {
if (this.lineTab) {
this.handleActiveBar()
echartsData = echartsData.filter(t => t.show === true && t.invertTab === false)
} else {
echartsData = echartsData.filter(t => t.show === true)
}
const _this = this
this.$nextTick(() => {
if (this.lineTab) {
this.handleActiveBar()
echartsData = echartsData.filter(t => t.show === true && t.invertTab === false)
} else {
echartsData = echartsData.filter(t => t.show === true)
}
const _this = this
if (echartsData.length > 0) {
const dom = document.getElementById('dnsLineChart')
!this.myChart && (this.myChart = echarts.init(dom))