Merge pull request #7044 from dataease/pr@dev@perf_filter_select_first

perf: 下拉文本首项作用范围超出仪表板
This commit is contained in:
fit2cloud-chenyw 2023-12-06 16:31:20 +08:00 committed by GitHub
commit 0476ea1cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -464,12 +464,14 @@ export default {
bus.$off('trigger-filter-loaded', this.triggerFilterLoaded)
},
methods: {
triggerFilterLoaded({ canvasIdStr, p }) {
canvasIdStr.includes(this.canvasId) || this.filterLoaded(p, canvasIdStr)
triggerFilterLoaded({ canvasIdStr, panelId, p }) {
if (this.panelInfo.id === panelId && !canvasIdStr.includes(this.canvasId)) {
this.filterLoaded(p, canvasIdStr)
}
},
filterLoaded(p, canvasIdStr = '') {
buildAfterFilterLoaded(this.filterMap, p)
bus.$emit('trigger-filter-loaded', { canvasIdStr: canvasIdStr + this.canvasId, p })
bus.$emit('trigger-filter-loaded', { canvasIdStr: (canvasIdStr + this.canvasId), panelId: this.panelInfo.id, p })
},
getWrapperChildRefs() {
return this.$refs['viewWrapperChild']