Commit f9eb9296 authored by 莫坚培's avatar 莫坚培

fix: 处理数据为0时的显示

parent f50eb6d0
......@@ -1054,7 +1054,7 @@ function loopRenderBarchart(poolData, resData, resCode) {
return
}
let resValue = JSON.parse(resData[`${poolData.dataPoolMapIndex}-${poolData.name}`])
let resValue = JSON.parse(resData[key])
if (!resValue) {
return
......@@ -1158,7 +1158,7 @@ function loopRenderLinechart(poolData, resData, resCode) {
return
}
let resValue = JSON.parse(resData[`${poolData.dataPoolMapIndex}-${poolData.name}`])
let resValue = JSON.parse(resData[key])
if (!resValue) {
return
......@@ -1274,7 +1274,7 @@ function loopRenderDashboardchart(poolData, resData, resCode) {
return
}
let resValue = JSON.parse(resData[`${poolData.dataPoolMapIndex}-${poolData.name}`])
let resValue = JSON.parse(resData[key])
let variableInfo = poolData.option.Variable
if (resValue) {
......@@ -1568,7 +1568,7 @@ function loopRenderDatatextblock(poolData, resData, label) {
let valueInfo = JSON.parse(resData[Object.keys(resData)[0]])
let resDataValue = valueInfo[poolData.CheckData.name]
if (!resDataValue) {
if (resDataValue === undefined) {
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment