fix:singleStat 图表no data显示异常修复

This commit is contained in:
wangwenrui
2020-06-28 18:48:03 +08:00
parent f07747a46a
commit 42f6f3bd2b
2 changed files with 3 additions and 2 deletions

View File

@@ -395,11 +395,12 @@ export default {
this.isError = false;
this.errorContent = '';
}
if(seriesItem){
if(seriesItem||seriesItem == 0){ //0 为false
this.noData=false;
}else{
this.noData=true;
}
if(area==='showFullScreen'){//全屏按时间查询
this.data = chartItem;
this.unit = chartDataFormat.getUnit(this.data.unit);