fix: explore graph showAllData使用emit传递数据

This commit is contained in:
zyh
2024-04-26 17:54:16 +08:00
parent 0219704e8b
commit 30506c2960
3 changed files with 15 additions and 2 deletions

View File

@@ -18,6 +18,7 @@
@chartIsNoData="chartIsNoData"
:from="from"
:globalVariables="globalVariables"
@loadMore="loadMore"
></chart-time-series>
<chart-doughnut
:ref="'chart' + chartInfo.id"
@@ -416,6 +417,9 @@ export default {
},
refreshLogs (params) {
this.$emit('refreshLogs', params)
},
loadMore () {
this.$emit('loadMore')
}
},
mounted () {

View File

@@ -662,8 +662,9 @@ export default {
u.redraw(false, true)
},
showMore () {
this.showAllData = true
this.initChart()
// this.showAllData = true
// this.initChart()
this.$emit('loadMore')
},
themeChange (theme) {
this.theme = theme

View File

@@ -239,6 +239,7 @@
:is-fullscreen="false"
:panelLock="true"
:showAllData="showAllData"
@loadMore="loadMore"
:isFullscreen="false"
:globalVariables="[]"
:from="'explore'"
@@ -385,6 +386,7 @@
:is-fullscreen="false"
:panelLock="true"
:showAllData="showAllData"
@loadMore="loadMore"
:isFullscreen="false"
:globalVariables="[]"
:from="'explore'"
@@ -3808,6 +3810,12 @@ export default {
this.scrollbarWrap.removeEventListener('scroll', this.onScroll)
},
methods: {
loadMore () {
this.showAllData = true
this.$nextTick(() => {
this.$refs.exploreChart.$children[0].initChart()
})
},
changeStack () {
this.isStack = !this.isStack
this.$refs.exploreChart.$children[0].changeStack()