forked from github/dataease
fix(仪表板): 部分仪表板打开控制台有报错问题
This commit is contained in:
parent
d8d701bbf9
commit
15d7381a3b
@ -653,7 +653,12 @@ export default {
|
||||
},
|
||||
clearPanelLinkage(param) {
|
||||
if (param.viewId === 'all' || param.viewId === this.element.propValue.viewId) {
|
||||
this.$refs[this.element.propValue.id].reDrawView()
|
||||
try {
|
||||
this.$refs[this.element.propValue.id].reDrawView()
|
||||
} catch (e) {
|
||||
console.error('reDrawView-error:', this.element.propValue.id)
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
bindPluginEvent() {
|
||||
|
@ -57,6 +57,7 @@ import { reverseColor } from '../chart/common/common'
|
||||
import MapController from './map/MapController.vue'
|
||||
import { mapState } from 'vuex'
|
||||
import bus from '@/utils/bus'
|
||||
|
||||
export default {
|
||||
name: 'ChartComponent',
|
||||
components: {
|
||||
@ -180,16 +181,18 @@ export default {
|
||||
this.currentSeriesId = seriesId
|
||||
},
|
||||
reDrawView() {
|
||||
this.myChart.dispatchAction({
|
||||
type: 'unselect',
|
||||
seriesIndex: this.linkageActiveParam.seriesIndex,
|
||||
name: this.linkageActiveParam.name
|
||||
})
|
||||
this.myChart.dispatchAction({
|
||||
type: 'downplay',
|
||||
seriesIndex: this.linkageActiveParam.seriesIndex,
|
||||
name: this.linkageActiveParam.name
|
||||
})
|
||||
if (this.linkageActiveParam) {
|
||||
this.myChart.dispatchAction({
|
||||
type: 'unselect',
|
||||
seriesIndex: this.linkageActiveParam.seriesIndex,
|
||||
name: this.linkageActiveParam.name
|
||||
})
|
||||
this.myChart.dispatchAction({
|
||||
type: 'downplay',
|
||||
seriesIndex: this.linkageActiveParam.seriesIndex,
|
||||
name: this.linkageActiveParam.name
|
||||
})
|
||||
}
|
||||
this.linkageActiveParam = null
|
||||
},
|
||||
linkageActive() {
|
||||
|
Loading…
Reference in New Issue
Block a user