修改测试问题

This commit is contained in:
GGJ
2024-10-15 15:31:36 +08:00
parent a05cc2deab
commit 223e698c9b
9 changed files with 1720 additions and 1812 deletions

View File

@@ -21,6 +21,7 @@
import html2canvas from 'html2canvas'
import $ from 'jquery'
import * as echarts from 'echarts'
import { mainHeight } from '@/utils/layout'
import url from '@/assets/img/point.png'
export default {
@@ -96,7 +97,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,7 +143,6 @@ export default {
},
//根据后台查询的数据,清洗数据
initWaves() {
console.log(this.boxoList.systemType,"this.boxoList.systemType");
if (null != this.wp) {
if (this.boxoList.systemType == 'pms') {
this.titles =
@@ -170,26 +170,32 @@ export default {
' 持续时间:' +
this.boxoList.evtParamTm +
's'
}
else if (this.boxoList.systemType == 'WX') {
this.titles =
// "变电站名称:" +
// this.boxoList.equipmentName +
' 监测点名称:' +
this.boxoList.equipmentName +
' 发生时刻:' +
this.boxoList.startTime +
' 暂降(骤升)幅值:' +
this.boxoList.featureAmplitude==null?'/':this.boxoList.featureAmplitude.toFixed(2) +
' 持续时间:' +
this.boxoList.persistTime==null? '/':this.boxoList.persistTime+
'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 +
(this.boxoList.featureAmplitude * 100).toFixed(0) +
'% 持续时间:' +
this.boxoList.duration +
this.boxoList.duration +
's'
}
@@ -511,9 +517,7 @@ export default {
for (var step = 1; step < waveDatas.length; step++) {
var waveId = 'wave' + step
var newDivShunshi = $(` <div style="height:${this.vh};overflow: hidden;">
<div class='bx1' id='${waveId}' style="zoom:${this.zoom};transform:scale(${
1 / this.zoom
});transform-origin:0 0;">
<div class='bx1' id='${waveId}'>
</div>
</div>`)
newDivShunshi.insertAfter($('#shushi'))
@@ -589,7 +593,7 @@ export default {
},
title: {
left: 'center',
text: '电网侧-电压 ' + title,
text: title,
textStyle: {
fontSize: '0.8rem',
color: _this.DColor ? '#fff' : echartsColor.WordColor