CN-282 fix:优化panel 刷新

This commit is contained in:
zhangyu
2022-01-27 14:17:29 +08:00
parent 195d0cd46e
commit ed347576b6
2 changed files with 9 additions and 1 deletions

View File

@@ -156,7 +156,10 @@ export default {
// methods
dateTimeRangeChange (s, e, v) {
this.timeFilter = { startTime: s, endTime: e, dateRangeValue: v }
this.chartList = [...this.chartList]
// this.chartList = [...this.chartList]
this.$nextTick(() => {
this.$refs.panelChartList.reload()
})
},
reloadCharts () {
this.chartList.forEach(chart => {

View File

@@ -110,6 +110,11 @@ export default {
this.stepWidth = Math.floor(dom.offsetWidth / 12)
}
},
reload () {
this.copyDataList.forEach(item => {
this.$refs['chart' + item.id].getChartData()
})
},
showFullscreen (show, chartInfo) {
this.fullscreen.chartInfo = chartInfo
this.fullscreen.visible = show