|
@@ -139,7 +139,10 @@
|
|
|
endTime: this.times?.[1]
|
|
|
}).then(res=>{
|
|
|
this.collectData = res.data
|
|
|
- this.drawChat(res.data.lineList, res.data.onLineList, this.times)
|
|
|
+ this.$echarts.init(this.$refs.chart).dispose()
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.drawChat(res.data.lineList, res.data.onLineList, this.times)
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
gotopage(name,pageName,pageCode,type){
|
|
@@ -162,9 +165,9 @@
|
|
|
this.$echarts.init(this.$refs.chart).setOption({
|
|
|
grid: {
|
|
|
left: 30,
|
|
|
- right: 10,
|
|
|
- top: 40,
|
|
|
- bottom: 50,
|
|
|
+ right: 30,
|
|
|
+ top: 30,
|
|
|
+ bottom: 60,
|
|
|
},
|
|
|
tooltip: {
|
|
|
trigger: 'axis'
|