fix(定时报告): echarts视图截图不完整

This commit is contained in:
fit2cloud-chenyw 2022-10-28 14:37:23 +08:00
parent f9f5e3a2e5
commit 88c5f6993f

View File

@ -47,6 +47,9 @@
</div>
</div>
<div
:class="loading ? 'symbol-map-loading' : 'symbol-map-loaded'"
/>
</div>
</template>
@ -167,7 +170,8 @@ export default {
borderRadius: '0px',
mapCenter: null,
linkageActiveParam: null,
buttonTextColor: null
buttonTextColor: null,
loading: true
}
},
@ -222,6 +226,7 @@ export default {
}
},
preDraw() {
this.loading = true
// domecharts
// echartdom,idechart id
const that = this
@ -253,6 +258,10 @@ export default {
that.$refs.viewTrack.trackButtonClick()
}
})
this.myChart.off('finished')
this.myChart.on('finished', () => {
this.loading = false
})
})
},
loadThemeStyle() {