提交
This commit is contained in:
parent
36f58ddab8
commit
e7d2c83f52
|
|
@ -247,8 +247,10 @@ export default {
|
||||||
if (item.end_time) {
|
if (item.end_time) {
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
}
|
}
|
||||||
this.chartData.xAxisData.push(new Date().toLocaleString().replaceAll('/', '-'))
|
if (item.loss) {
|
||||||
this.chartData.seriesData.push((item.loss ? item.loss : 0))
|
this.chartData.xAxisData.push(new Date().toLocaleString().replaceAll('/', '-'))
|
||||||
|
this.chartData.seriesData.push(item.loss)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.myChart.setOption({
|
this.myChart.setOption({
|
||||||
|
|
@ -271,7 +273,7 @@ export default {
|
||||||
title: {
|
title: {
|
||||||
left: 'center',
|
left: 'center',
|
||||||
text: 'LOSS',
|
text: 'LOSS',
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: '#ffffff' // 可选:字体粗细
|
color: '#ffffff' // 可选:字体粗细
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user