CN-591 fix: 修复图表刷新时间问题

This commit is contained in:
chenjinsong
2022-05-27 17:48:09 +08:00
parent 8fe7eaaec8
commit ebd2717be5
2 changed files with 5 additions and 1 deletions

View File

@@ -167,6 +167,10 @@ export default {
}
},
methods: {
reload () {
this.standaloneTimeRange.use = false
this.getChartData()
},
/* 参数 extraParams 额外请求参数 */
getChartData (url, extraParams = {}, chartTimeFilter, num) {
this.loading = true

View File

@@ -119,7 +119,7 @@ export default {
reload () {
this.copyDataList.forEach(item => {
if (this.$refs['chart' + item.id]) {
this.$refs['chart' + item.id].getChartData()
this.$refs['chart' + item.id].reload()
}
})
},