|
|
@@ -190,9 +190,8 @@
|
|
|
|
|
|
<van-cell v-show="point.pointDataSource==2||point.pointDataSource==3">
|
|
|
<template #title>
|
|
|
- <pre class="gray-text">边缘主机自动巡查结果:{{ point.exceptionChannelNum }}个通道存在{{point.pointDataSource == 2 ?'录像丢失':'视频质量'}}问题</pre>
|
|
|
- <a @click="viewDetails(point)"
|
|
|
- :class="{ 'link-color': point.pointDataSource == 2 || point.pointDataSource == 3 }">查看详情</a>
|
|
|
+ <pre class="gray-text">{{getMsg(point)}}</pre>
|
|
|
+ <a v-if="point.exceptionChannelNum != null" @click="viewDetails(point)" :class="{ 'link-color': point.pointDataSource == 2 || point.pointDataSource == 3 }">查看详情</a>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
<van-cell-group v-show="point.resValue">
|
|
|
@@ -376,6 +375,23 @@
|
|
|
this.showButton = true
|
|
|
}
|
|
|
},
|
|
|
+ getMsg(point){
|
|
|
+ let str='';
|
|
|
+ let num=point.exceptionChannelNum;
|
|
|
+ if (num == null){
|
|
|
+ return "智能运维自动巡查结果:没有巡检主机";
|
|
|
+ }
|
|
|
+ if ( num && num > 0 ){
|
|
|
+ return "智能运维自动巡查结果:"+point.exceptionChannelNum+"路通道存在异常";
|
|
|
+ }
|
|
|
+
|
|
|
+ if (num < 1){
|
|
|
+ return "智能运维自动巡查结果:正常";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ return str;
|
|
|
+ },
|
|
|
//长度校验
|
|
|
validator(val) {
|
|
|
let len = val.length
|