fix(仪表板): 修复一个 tab 下加入多个视图,公共链接打开后,饼图的图示里折叠切换按钮不可用 #3761

This commit is contained in:
wangjiahao 2022-11-30 15:15:20 +08:00
parent 8b9f5ff5be
commit 4c5141e79b

View File

@ -289,14 +289,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)