修改治理测试用例

This commit is contained in:
GGJ
2025-01-06 21:01:49 +08:00
parent 439a129589
commit 51782b09c2
10 changed files with 166 additions and 68 deletions

View File

@@ -26,6 +26,7 @@ import { mainHeight } from '@/utils/layout'
// url2: ("@/assets/dw.png"),
import url from '@/assets/img/point.png';
import url2 from '@/assets/img/dw.png';
const VITE_FLAG = import.meta.env.VITE_NAME == 'zl'
export default {
props: {
value: {
@@ -190,38 +191,39 @@ export default {
//根据后台查询的数据,清洗数据
initWaves() {
if (null != this.wp) {
if (this.boxoList.systemType == "pms") {
if (this.boxoList.systemType == 'pms') {
this.titles =
"变电站名称:" +
'变电站名称:' +
this.boxoList.powerStationName +
" 监测点名称:" +
' 监测点名称:' +
this.boxoList.measurementPointName +
" 发生时刻:" +
' 发生时刻:' +
this.boxoList.startTime +
" 暂降(骤升)幅值:" +
' 暂降(骤升)幅值:' +
(this.boxoList.featureAmplitude * 100).toFixed(0) +
"% 持续时间:" +
'% 持续时间:' +
this.boxoList.duration +
"s";
} else if (this.boxoList.systemType == "ZL") {
's'
} else if (this.boxoList.systemType == 'ZL') {
this.titles =
// "变电站名称:" +
// this.boxoList.equipmentName +
" 监测点名称:" +
this.boxoList.equipmentName +
" 发生时刻:" +
' 监测点名称:' +
this.boxoList.lineName +
' 发生时刻:' +
this.boxoList.startTime +
" 暂降(骤升)幅值:" +
' 暂降(骤升)幅值:' +
this.boxoList.evtParamVVaDepth +
" 持续时间:" +
' 持续时间:' +
this.boxoList.evtParamTm +
"s";
} else if (this.boxoList.systemType == 'WX') {
's'
}
else if (this.boxoList.systemType == 'WX') {
let featureAmplitude = this.boxoList.featureAmplitude + '' ? this.boxoList.featureAmplitude.toFixed(2) : '/'
if (String(this.boxoList.featureAmplitude).split('.')[1] == '00') {
this.boxoList.featureAmplitude = String(this.boxoList.featureAmplitude).split('.')[0]
}
this.titles =
' 监测点名称:' +
@@ -231,21 +233,21 @@ export default {
' 暂降(骤升)幅值:' +
(featureAmplitude) +
'% 持续时间:' +
(this.boxoList.persistTime ? this.boxoList.persistTime.toFixed(2) : '-') +
(this.boxoList.persistTime || this.boxoList.evtParamTm || '-') +
's'
} else {
this.titles =
"变电站名称:" +
'变电站名称:' +
this.boxoList.subName +
" 监测点名称:" +
' 监测点名称:' +
this.boxoList.lineName +
" 发生时刻:" +
' 发生时刻:' +
this.boxoList.startTime +
" 暂降(骤升)幅值:" +
' 暂降(骤升)幅值:' +
(this.boxoList.featureAmplitude * 100).toFixed(0) +
"% 持续时间:" +
'% 持续时间:' +
this.boxoList.duration +
"s";
's'
}
// this.eventValue = this.boxoList.eventValue;
@@ -848,7 +850,7 @@ export default {
unit = "A";
}
//把剩余的DIV先拼接好
for (var step = 1; step < waveDatas.length; step++) {
for (var step = waveDatas.length - 1; 0 < step && step < waveDatas.length; step--) {
var rmsId = "rms" + step;
var newDivRms = $(
` <div style="height:${this.vh
@@ -923,7 +925,7 @@ export default {
},
title: {
left: "center",
text: title,
text: VITE_FLAG ? "电网侧-电压 " + title : title,
subtitle: {
text: "电压",
align: "left",
@@ -1265,17 +1267,18 @@ export default {
var myChartes = echarts.init(document.getElementById(rmsId));
//debugger
if (this.boxoList.systemType == "ZL") {
if (VITE_FLAG) {
let str = []
str = rmsId.split('s')
let str1 = Number(str[1])
var titlename = ''
this.wp.channelNames.forEach((element, i) => {
if (i == 4 || i == 7 || i == 10) {
let s = []
let s1 = ''
s = element.split('A')
if (str1 == 1 && i == 4) {
let s = []
let s1 = ''
s = element.split('A')
if (s[0] == 'LI') {
s1 = '电网侧-电流'
} else {
@@ -1285,9 +1288,7 @@ export default {
titlename = s1 + ' ' + title
}
if (str1 == 2 && i == 7) {
let s = []
let s1 = ''
s = element.split('A')
if (s[0] == 'SU') {
s1 = '负载侧-电压'
} else {
@@ -1297,9 +1298,7 @@ export default {
titlename = s1 + ' ' + title
}
if (str1 == 3 && i == 10) {
let s = []
let s1 = ''
s = element.split('A')
if (s[0] == 'SI') {
s1 = '负载侧-电流'