CN-282 fix:优化panel 刷新
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user