|
|
@ -16,7 +16,7 @@ export default defineComponent({ |
|
|
|
myCharts: {}, |
|
|
|
carOfInLists: [], |
|
|
|
carOfOutLists: [], |
|
|
|
time: null |
|
|
|
time: null, |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
@ -83,14 +83,14 @@ export default defineComponent({ |
|
|
|
setInterval(() => { |
|
|
|
// 获取数据 |
|
|
|
this.getMbpsByTime(); |
|
|
|
}, 3000); |
|
|
|
}, 1800000); |
|
|
|
// 绘制图表 |
|
|
|
this.getOptions(); |
|
|
|
}, |
|
|
|
|
|
|
|
unmounted() { |
|
|
|
clearInterval(this.time) |
|
|
|
this.time = null |
|
|
|
clearInterval(this.time); |
|
|
|
this.time = null; |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
@ -122,9 +122,9 @@ export default defineComponent({ |
|
|
|
const { weightOfIns, weightOfOuts, timeArray } = this; |
|
|
|
|
|
|
|
// 基于准备好的dom,初始化echarts实例 |
|
|
|
let throughput = document.getElementById('throughput') |
|
|
|
throughput.removeAttribute('_echarts_instance_') |
|
|
|
let myChart1 = echarts.init(throughput) |
|
|
|
let throughput = document.getElementById("throughput"); |
|
|
|
throughput.removeAttribute("_echarts_instance_"); |
|
|
|
let myChart1 = echarts.init(throughput); |
|
|
|
|
|
|
|
myChart1.setOption({ |
|
|
|
tooltip: { |
|
|
|