From f056aa3eb1315543e4399ef625d4afefc7010b7a Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Thu, 1 Aug 2024 10:55:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=80=81=E4=BA=8B=E4=BB=B6-=E6=B3=A2?= =?UTF-8?q?=E5=BD=A2=E8=A7=A3=E6=9E=90=E6=8E=A5=E5=8F=A3=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echarts/rmsboxi.vue | 11 ++- src/components/echarts/shushiboxi.vue | 17 +++- .../tabs/components/waveFormAnalysis.vue | 82 +++++++++++-------- .../govern/device/control/tabs/event.vue | 26 +++--- 4 files changed, 85 insertions(+), 51 deletions(-) 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 @@ - + - +