修改测试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',
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
<!-- <el-button v-if="deviceType == '1'" type="primary" @click="handleDownLoadTemplate">
|
||||
模版下载
|
||||
</el-button> -->
|
||||
<el-button v-if="deviceType == '1'" type="primary" @click="handleImport">离线数据导入</el-button>
|
||||
<el-button v-if="deviceType == '1'" type="primary" @click="handleaddDevice">设备补召</el-button>
|
||||
<el-button v-if="deviceType == '1'" type="primary" @click="handleAnalysisList">解析列表</el-button>
|
||||
<el-button v-if="deviceType == '1'" type="primary" icon="el-icon-Connection" @click="handleImport">离线补召</el-button>
|
||||
<el-button v-if="deviceType == '1'" type="primary" icon="el-icon-Monitor" @click="handleaddDevice">在线补召</el-button>
|
||||
<el-button v-if="deviceType == '1'" type="primary" icon="el-icon-Tickets" @click="handleAnalysisList">补招日志</el-button>
|
||||
</template>
|
||||
<el-descriptions-item label="名称">
|
||||
{{ deviceData.name ? deviceData.name : '/' }}
|
||||
@@ -26,13 +26,13 @@
|
||||
<el-descriptions-item label="接入方式">
|
||||
{{ deviceData.devAccessMethod ? deviceData.devAccessMethod : '/' }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="识别码">
|
||||
<el-descriptions-item label="网络设备ID">
|
||||
{{ deviceData.ndid ? deviceData.ndid : '/' }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="型号">
|
||||
{{ echoName(deviceData.devModel, devModelOptions) }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="接入时间">
|
||||
<el-descriptions-item label="接入日期">
|
||||
{{ deviceData.time ? deviceData.time : '/' }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
|
||||
@@ -91,7 +91,7 @@ const tableStore: any = new TableStore({
|
||||
row.loading = false
|
||||
if (res != undefined) {
|
||||
boxoList.value = row
|
||||
boxoList.value.systemType = 'WX'
|
||||
// boxoList.value.systemType = 'WX'
|
||||
wp.value = res.data
|
||||
view.value = false
|
||||
view2.value = true
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
@click="openGroup"
|
||||
:loading="getGroupLoading"
|
||||
>
|
||||
设备模版分组
|
||||
模版数据分组
|
||||
</el-button>
|
||||
</template>
|
||||
<el-descriptions-item label="名称">
|
||||
@@ -24,13 +24,13 @@
|
||||
<el-descriptions-item label="接入方式">
|
||||
{{ deviceData.devAccessMethod }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="识别码">
|
||||
<el-descriptions-item label="网络设备ID">
|
||||
{{ deviceData.ndid }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="型号">
|
||||
{{ echoName(deviceData.devModel, devModelOptions) }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="接入时间">
|
||||
<el-descriptions-item label="接入日期">
|
||||
{{ deviceData.time }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="应用程序版本号">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<el-descriptions-item label="名称">
|
||||
{{ popupData.deviceData.name }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="识别码">
|
||||
<el-descriptions-item label="网络设备ID">
|
||||
{{ popupData.deviceData.ndid }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<vxe-column type="checkbox" width="60"></vxe-column>
|
||||
<vxe-column field="devName" title="设备名称"></vxe-column>
|
||||
<vxe-column field="devMac" title="设备MAC"></vxe-column>
|
||||
<vxe-column field="devNdId" title="网络识别码"></vxe-column>
|
||||
<vxe-column field="devNdId" title="网络设备ID"></vxe-column>
|
||||
<vxe-column field="lineName" title="线路号"></vxe-column>
|
||||
<vxe-column field="startTime" title="开始时间"></vxe-column>
|
||||
<vxe-column field="endTime" title="结束时间"></vxe-column>
|
||||
|
||||
Reference in New Issue
Block a user