修改治理测试用例

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

@@ -18,6 +18,7 @@ import * as echarts from 'echarts'
import { mainHeight } from '@/utils/layout'
import url from '@/assets/img/point.png'
const VITE_FLAG = import.meta.env.VITE_NAME == 'zl'
export default {
props: {
value: {
@@ -523,7 +524,7 @@ export default {
//把剩余的DIV先拼接好
for (var step = 1; step < waveDatas.length; step++) {
for (var step = waveDatas.length - 1; 0 < step && step < waveDatas.length; step--) {
var waveId = 'wave' + step
var newDivShunshi = $(` <div style="height:${this.vh};overflow: hidden;">
<div class='bx1' id='${waveId}'>
@@ -599,7 +600,7 @@ export default {
},
title: {
left: 'center',
text: title,
text: VITE_FLAG ? "电网侧-电压 " + title : title,
textStyle: {
fontSize: '0.8rem',
color: _this.DColor ? '#fff' : echartsColor.WordColor
@@ -827,6 +828,7 @@ export default {
},
//绘制剩余横向的波形图
drawPics(waveDataTemp, picHeight, step, show, myChartes1, title) {
let _this = this
step = step + 1
//新建瞬时DIV
@@ -886,8 +888,10 @@ export default {
unit = 'A'
}
// const echarts = require('echarts')
let waveIds = document.getElementById(waveId)
if (this.boxoList.systemType == 'ZL') {
if (VITE_FLAG) {
let str = []
str = waveId.split('e')
let str1 = Number(str[1])