|
@@ -862,7 +862,7 @@ export default {
|
|
option.series[0].data.push(wd)
|
|
option.series[0].data.push(wd)
|
|
index++;
|
|
index++;
|
|
}
|
|
}
|
|
- console.log(option)
|
|
|
|
|
|
+
|
|
this.chart.setOption(option, true)
|
|
this.chart.setOption(option, true)
|
|
var _this = this
|
|
var _this = this
|
|
window.addEventListener("resize", function () {
|
|
window.addEventListener("resize", function () {
|
|
@@ -1006,7 +1006,6 @@ export default {
|
|
// });
|
|
// });
|
|
},
|
|
},
|
|
wsDraw(wsData) {
|
|
wsDraw(wsData) {
|
|
-
|
|
|
|
this.wsChart = echarts.init(document.getElementById('wscharts'))
|
|
this.wsChart = echarts.init(document.getElementById('wscharts'))
|
|
|
|
|
|
var option = {
|
|
var option = {
|
|
@@ -1104,6 +1103,7 @@ export default {
|
|
}
|
|
}
|
|
option.xAxis[0].data = wsData.times
|
|
option.xAxis[0].data = wsData.times
|
|
var index = 0;
|
|
var index = 0;
|
|
|
|
+
|
|
for (var key in wsData.wsCharts) {
|
|
for (var key in wsData.wsCharts) {
|
|
var keyName = '';
|
|
var keyName = '';
|
|
for (let thFormatKey in this.thFormat) {
|
|
for (let thFormatKey in this.thFormat) {
|
|
@@ -1112,7 +1112,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
option.legend.data.push(keyName)
|
|
option.legend.data.push(keyName)
|
|
- if (index > 3) {
|
|
|
|
|
|
+ if (index > 4) {
|
|
option.legend.selected[keyName] = false
|
|
option.legend.selected[keyName] = false
|
|
} else {
|
|
} else {
|
|
option.legend.selected[keyName] = true
|
|
option.legend.selected[keyName] = true
|
|
@@ -1156,7 +1156,6 @@ export default {
|
|
return alert("请选择所属设备")
|
|
return alert("请选择所属设备")
|
|
}
|
|
}
|
|
queryCharts(param).then((res) => {
|
|
queryCharts(param).then((res) => {
|
|
- console.log(res.data.data)
|
|
|
|
this.drawData = res.data.data
|
|
this.drawData = res.data.data
|
|
this.wsData.wsCharts = this.drawData.ws
|
|
this.wsData.wsCharts = this.drawData.ws
|
|
this.wsData.times = this.drawData.times
|
|
this.wsData.times = this.drawData.times
|