fix: explore graph showAllData使用emit传递数据
This commit is contained in:
@@ -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 () {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user