提交 c4b5da23 authored 作者: junjun's avatar junjun

feat: 指标卡阈值设置

上级 df9a31bd
......@@ -174,7 +174,7 @@ export default {
colorThreshold(valueColor) {
if (this.chart.senior) {
const senior = JSON.parse(this.chart.senior)
if (senior.threshold.labelThreshold && senior.threshold.labelThreshold.length > 0) {
if (senior.threshold && senior.threshold.labelThreshold && senior.threshold.labelThreshold.length > 0) {
const value = this.chart.data.series[0].data[0]
for (let i = 0; i < senior.threshold.labelThreshold.length; i++) {
let flag = false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论