fix:singleStat 图表no data显示异常修复
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<span >{{formatThreshold(scope.row[item.prop],scope.row.unit)}}</span>
|
||||
</template>
|
||||
<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>
|
||||
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
|
||||
<template v-else>-</template>
|
||||
|
||||
Reference in New Issue
Block a user