|
@@ -366,8 +366,7 @@ export default {
|
|
|
data: this.y1Data,
|
|
|
},
|
|
|
{
|
|
|
- name: this.legend[1],
|
|
|
- data: this.y2Data,
|
|
|
+
|
|
|
},
|
|
|
],
|
|
|
});
|
|
@@ -397,8 +396,8 @@ export default {
|
|
|
],
|
|
|
series: [
|
|
|
{
|
|
|
- name: this.legend[0],
|
|
|
- data: this.y1Data,
|
|
|
+ // name: this.legend[0],
|
|
|
+ // data: this.y1Data,
|
|
|
},
|
|
|
{
|
|
|
name: this.legend[1],
|
|
@@ -446,14 +445,14 @@ export default {
|
|
|
// console.log(this.legend[0]);
|
|
|
this.myChart = this.$echarts.init(this.$refs.testLine);
|
|
|
this.myChart.setOption(this.option);
|
|
|
- this.websocket1 = new WebSocket(
|
|
|
+ let websocket1 = new WebSocket(
|
|
|
`ws://${this.websocketIP}/hbase/ws/belt/${this.id[0]}`
|
|
|
);
|
|
|
- this.initWebSocket(this.websocket1, this.legend[0], 1);
|
|
|
- this.websocket2 = new WebSocket(
|
|
|
+ this.initWebSocket(websocket1, this.legend[0], 1);
|
|
|
+ let websocket2 = new WebSocket(
|
|
|
`ws://${this.websocketIP}/hbase/ws/belt/${this.id[1]}`
|
|
|
);
|
|
|
- this.initWebSocket(this.websocket2, this.legend[1], 1);
|
|
|
+ this.initWebSocket(websocket2, this.legend[1], 1);
|
|
|
},
|
|
|
};
|
|
|
</script>
|