Merge pull request #7877 from ulleo/dev-v2

fix(图表): 指标卡>高级>阈值设置,禁用后指标卡的数值颜色依然显示阈值设置中的颜色
This commit is contained in:
ulleo 2024-01-29 14:48:56 +08:00 committed by GitHub
commit 4a5f3219cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,7 +90,11 @@ const thresholdColor = computed(() => {
return color
}
const value = result.value
if (view.value.senior && view.value.senior.threshold?.labelThreshold?.length > 0) {
if (
view.value.senior &&
view.value.senior.threshold?.enable &&
view.value.senior.threshold?.labelThreshold?.length > 0
) {
const senior = view.value.senior
for (let i = 0; i < senior.threshold.labelThreshold.length; i++) {
let flag = false