fix: 修复npm 折线图和下钻折线图,因名称判断错误导致的移入弹窗样式问题
This commit is contained in:
@@ -242,7 +242,7 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.echartsInit(this.mpackets)
|
this.echartsInit(this.mpackets, show)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (t.type === 'queries' && val === 'Queries/s') {
|
} else if (t.type === 'queries' && val === 'Queries/s') {
|
||||||
|
|||||||
@@ -539,7 +539,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.npmQuantity.forEach(d => {
|
this.npmQuantity.forEach(d => {
|
||||||
if (this.$t(d.name) === t.seriesName) {
|
const nameMs = this.$t(d.name) + '(ms)'
|
||||||
|
const namePrent = this.$t(d.name) + '(%)'
|
||||||
|
if (nameMs === t.seriesName) {
|
||||||
|
t.borderColor = chartColor3[d.positioning]
|
||||||
|
} else if (namePrent === t.seriesName) {
|
||||||
t.borderColor = chartColor3[d.positioning]
|
t.borderColor = chartColor3[d.positioning]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user