diff --git a/src/components/echarts/rmsboxi.vue b/src/components/echarts/rmsboxi.vue index 3ec0a7b..428caaa 100644 --- a/src/components/echarts/rmsboxi.vue +++ b/src/components/echarts/rmsboxi.vue @@ -202,6 +202,15 @@ export default { this.boxoList.evtParamTm + "s"; }else { + console.log( this.boxoList.subName,"0000000000000000"); + if((this.boxoList.featureAmplitude * 100).toFixed(0)){ + this.boxoList.featureAmplitude= (this.boxoList.featureAmplitude * 100).toFixed(0) + } + for(var key in this.boxoList) { + if(this.boxoList[key]==null||!this.boxoList[key]){ + this.boxoList[key]='/' + } + } this.titles = "变电站名称:" + this.boxoList.subName + @@ -210,7 +219,7 @@ export default { " 发生时刻:" + this.boxoList.startTime + " 暂降(骤升)幅值:" + - (this.boxoList.featureAmplitude * 100).toFixed(0) + + this.boxoList.featureAmplitude+ "% 持续时间:" + this.boxoList.duration + "s"; diff --git a/src/components/echarts/shushiboxi.vue b/src/components/echarts/shushiboxi.vue index 60b1ecb..1d68f9a 100644 --- a/src/components/echarts/shushiboxi.vue +++ b/src/components/echarts/shushiboxi.vue @@ -96,7 +96,7 @@ export default { } }, mounted() { - // console.log(`123123`,this.boxoList,this.wp); + console.log(`123123`,this.boxoList,this.wp); this.zoom = 1 / document.body.style.zoom window.addEventListener('resize', () => { this.zoom = 1 / document.body.style.zoom @@ -142,6 +142,7 @@ export default { }, //根据后台查询的数据,清洗数据 initWaves() { + console.log(this.boxoList.systemType,"this.boxoList.systemType"); if (null != this.wp) { if (this.boxoList.systemType == 'pms') { this.titles = @@ -170,17 +171,25 @@ export default { this.boxoList.evtParamTm + 's' } else { + if((this.boxoList.featureAmplitude * 100).toFixed(0)){ + this.boxoList.featureAmplitude= (this.boxoList.featureAmplitude * 100).toFixed(0) + } + for(var key in this.boxoList) { + if(this.boxoList[key]==null||!this.boxoList[key]){ + this.boxoList[key]='/' + } + } this.titles = '变电站名称:' + - this.boxoList.subName + + this.boxoList.subName + ' 监测点名称:' + this.boxoList.lineName + ' 发生时刻:' + this.boxoList.startTime + ' 暂降(骤升)幅值:' + - (this.boxoList.featureAmplitude * 100).toFixed(0) + + this.boxoList.featureAmplitude + '% 持续时间:' + - this.boxoList.duration + + this.boxoList.duration + 's' } diff --git a/src/views/govern/device/control/tabs/components/waveFormAnalysis.vue b/src/views/govern/device/control/tabs/components/waveFormAnalysis.vue index 5951bff..a2b6601 100644 --- a/src/views/govern/device/control/tabs/components/waveFormAnalysis.vue +++ b/src/views/govern/device/control/tabs/components/waveFormAnalysis.vue @@ -5,8 +5,8 @@ @@ -17,18 +17,26 @@ - + - +