Merge pull request #3960 from dataease/pr@dev@fix_tab-switch

fix(仪表板): 修复一个 tab 下加入多个视图,公共链接打开后,饼图的图示里折叠切换按钮不可用 #3761
This commit is contained in:
xuwei-fit2cloud 2022-11-30 15:19:32 +08:00 committed by GitHub
commit a5d41c31c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,14 +293,18 @@ export default {
} }
}, },
elementMouseDown(e) { elementMouseDown(e) {
// private // // private
this.$store.commit('setClickComponentStatus', true) this.$store.commit('setClickComponentStatus', true)
if (this.config.component !== 'v-text' && this.config.component !== 'rect-shape' && this.config.component !== 'de-input-search' && this.config.component !== 'de-select-grid' && this.config.component !== 'de-number-range' && this.config.component !== 'de-date') { if (this.config.component !== 'v-text' && this.config.component !== 'rect-shape' && this.config.component !== 'de-input-search' && this.config.component !== 'de-select-grid' && this.config.component !== 'de-number-range' && this.config.component !== 'de-date') {
e.preventDefault() e.preventDefault()
} }
// //
e.stopPropagation() e.stopPropagation()
this.$store.commit('setCurComponent', { component: this.config, index: this.index }) const _this = this
setTimeout(() => {
_this.$store.commit('setCurComponent', { component: _this.config, index: _this.index })
}, 200)
}, },
showViewDetails(params) { showViewDetails(params) {
this.$refs.wrapperChild.openChartDetailsDialog(params) this.$refs.wrapperChild.openChartDetailsDialog(params)