fix: 修复图表block刷新按钮无效的问题

This commit is contained in:
chenjinsong
2022-04-28 22:51:13 +08:00
parent ec829e64b3
commit 364c9a4458
6 changed files with 18 additions and 17 deletions

View File

@@ -266,12 +266,14 @@ export default {
this.loading = false
})
} else if (this.isGroup || this.isTabs) {
this.$refs.chart.$refs.chart.reload()
this.$refs.chart && this.$refs.chart.$refs.chart && this.$refs.chart.$refs.chart.reload()
} else if (this.isBlock) {
if (!this.chartInfo.firstShow) {
this.chartInfo.firstShow = true
} else {
this.$refs.chart.$refs.chart.reload()
if (this.$refs.chart && this.$refs.chart.$refs.chart) {
this.$refs.chart.$refs.chart.reload()
}
}
}
} catch (e) {
@@ -400,7 +402,7 @@ export default {
const dateRangeValue = 60
const { startTime, endTime } = getNowTime(dateRangeValue)
const chartTimeFilter = ref({ startTime, endTime, dateRangeValue })
const table = ref('')
const table = ref({})
if (isBasicTable(props.chartInfo.type)) {
table.value = {
pageSize: chartTableDefaultPageSize,