fix:singleStat 图表no data显示异常修复
This commit is contained in:
@@ -395,11 +395,12 @@ export default {
|
|||||||
this.isError = false;
|
this.isError = false;
|
||||||
this.errorContent = '';
|
this.errorContent = '';
|
||||||
}
|
}
|
||||||
if(seriesItem){
|
if(seriesItem||seriesItem == 0){ //0 为false
|
||||||
this.noData=false;
|
this.noData=false;
|
||||||
}else{
|
}else{
|
||||||
this.noData=true;
|
this.noData=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(area==='showFullScreen'){//全屏按时间查询
|
if(area==='showFullScreen'){//全屏按时间查询
|
||||||
this.data = chartItem;
|
this.data = chartItem;
|
||||||
this.unit = chartDataFormat.getUnit(this.data.unit);
|
this.unit = chartDataFormat.getUnit(this.data.unit);
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
<span >{{formatThreshold(scope.row[item.prop],scope.row.unit)}}</span>
|
<span >{{formatThreshold(scope.row[item.prop],scope.row.unit)}}</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="item.prop == 'receivers'">
|
<template v-else-if="item.prop == 'receivers'">
|
||||||
<el-tag effect="dark" v-if="user.userName" :key="index" size="mini" v-for="(user, index) in scope.row[item.prop]" class="alert-rule-tag">{{user.userName}}</el-tag>
|
<el-tag effect="dark" v-if="user.userName" :key="index" size="mini" v-for="(user, index) in scope.row[item.prop]" class="alert-rule-tag">{{user.userName}} </el-tag>
|
||||||
</template>
|
</template>
|
||||||
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
|
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
|
||||||
<template v-else>-</template>
|
<template v-else>-</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user