修改测试bug
This commit is contained in:
@@ -5,14 +5,8 @@
|
||||
<div class="bx" id="wave"></div>
|
||||
</div>
|
||||
</div>
|
||||
<el-button
|
||||
style="position: absolute; right: 10px; top: 0px; z-index: 20000"
|
||||
type="primary"
|
||||
link
|
||||
icon="el-icon-Download"
|
||||
title="生成图片"
|
||||
@click="download"
|
||||
>
|
||||
<el-button style="position: absolute; right: 10px; top: 0px; z-index: 20000" type="primary" link
|
||||
icon="el-icon-Download" title="生成图片" @click="download">
|
||||
下载
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -80,8 +74,8 @@ export default {
|
||||
|
||||
if (this.flag == 1) {
|
||||
this.vh = mainHeight(165).height
|
||||
} else {
|
||||
this.vh = mainHeight(165,2).height
|
||||
} else {
|
||||
this.vh = mainHeight(165, 2).height
|
||||
}
|
||||
this.vw = '100%'
|
||||
},
|
||||
@@ -97,7 +91,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
|
||||
@@ -172,17 +166,17 @@ export default {
|
||||
's'
|
||||
}
|
||||
else if (this.boxoList.systemType == 'WX') {
|
||||
console.log("🚀 ~ initWaves ~ this.boxoList:", this.boxoList)
|
||||
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+
|
||||
this.boxoList.lineId +
|
||||
' 发生时刻:' +
|
||||
this.boxoList.startTime +
|
||||
' 暂降(骤升)幅值:' +
|
||||
this.boxoList.featureAmplitude==null ? '/' : this.boxoList.featureAmplitude.toFixed(2) +
|
||||
' 持续时间:' +
|
||||
this.boxoList.persistTime==null ? '/' : this.boxoList.persistTime +
|
||||
's'
|
||||
} else {
|
||||
this.titles =
|
||||
@@ -211,12 +205,12 @@ export default {
|
||||
for (var i = 0; i < picCounts; i++) {
|
||||
this.fliteWaveData(this.wp, i)
|
||||
this.waveDatas.push({
|
||||
instantF :this.instantF,
|
||||
instantS :this.instantS,
|
||||
shunshiF :this.shunshiF,
|
||||
shunshiS :this.shunshiS,
|
||||
title :this.title,
|
||||
unit :this.unit,
|
||||
instantF: this.instantF,
|
||||
instantS: this.instantS,
|
||||
shunshiF: this.shunshiF,
|
||||
shunshiS: this.shunshiS,
|
||||
title: this.title,
|
||||
unit: this.unit,
|
||||
|
||||
})
|
||||
|
||||
@@ -398,7 +392,7 @@ export default {
|
||||
}
|
||||
|
||||
|
||||
return this.waveData(instantF, instantS, shunshiF, shunshiS, title, unit)
|
||||
return this.waveData(instantF, instantS, shunshiF, shunshiS, title, unit)
|
||||
},
|
||||
//开始画图
|
||||
initWave(waveDatas, time, type, severity, isOpen) {
|
||||
@@ -547,10 +541,10 @@ export default {
|
||||
|
||||
let _this = this
|
||||
var myChartes = echarts.init(wave)
|
||||
let echartsColor = {WordColor:"#000",thread:"#000000",FigureColor:["#07CCCA ","#00BFF5","#FFBF00","#77DA63","#D5FF6B","#Ff6600","#FF9100","#5B6E96","#66FFCC","#B3B3B3","#FF00FF","#CC00FF","#FF9999"]}
|
||||
let echartsColor = { WordColor: "#000", thread: "#000000", FigureColor: ["#07CCCA ", "#00BFF5", "#FFBF00", "#77DA63", "#D5FF6B", "#Ff6600", "#FF9100", "#5B6E96", "#66FFCC", "#B3B3B3", "#FF00FF", "#CC00FF", "#FF9999"] }
|
||||
setTimeout(() => {
|
||||
wave.style.width ='100%';
|
||||
wave.style.height =_this.vh;
|
||||
wave.style.width = '100%';
|
||||
wave.style.height = _this.vh;
|
||||
}, 0);
|
||||
var option = {
|
||||
tooltip: {
|
||||
@@ -593,7 +587,7 @@ export default {
|
||||
},
|
||||
title: {
|
||||
left: 'center',
|
||||
text: title,
|
||||
text: '电网侧-电压 ' + title,
|
||||
textStyle: {
|
||||
fontSize: '0.8rem',
|
||||
color: _this.DColor ? '#fff' : echartsColor.WordColor
|
||||
@@ -910,7 +904,7 @@ export default {
|
||||
})
|
||||
}
|
||||
var myChartes = echarts.init(waveIds)
|
||||
let echartsColor = {WordColor:"#000",thread:"#000000",FigureColor:["#07CCCA ","#00BFF5","#FFBF00","#77DA63","#D5FF6B","#Ff6600","#FF9100","#5B6E96","#66FFCC","#B3B3B3","#FF00FF","#CC00FF","#FF9999"]}
|
||||
let echartsColor = { WordColor: "#000", thread: "#000000", FigureColor: ["#07CCCA ", "#00BFF5", "#FFBF00", "#77DA63", "#D5FF6B", "#Ff6600", "#FF9100", "#5B6E96", "#66FFCC", "#B3B3B3", "#FF00FF", "#CC00FF", "#FF9999"] }
|
||||
var option = {
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
|
||||
Reference in New Issue
Block a user