forked from github/dataease
fix(仪表板): 修复辅助网格开启按钮状态显示问题
This commit is contained in:
parent
d74cd5ba63
commit
36ad92d06b
@ -193,6 +193,7 @@ export default {
|
|||||||
])
|
])
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
eventBus.$on('editPanelInitReady', this.editPanelInit)
|
||||||
eventBus.$on('preview', this.preview)
|
eventBus.$on('preview', this.preview)
|
||||||
eventBus.$on('save', this.save)
|
eventBus.$on('save', this.save)
|
||||||
eventBus.$on('clearCanvas', this.clearCanvas)
|
eventBus.$on('clearCanvas', this.clearCanvas)
|
||||||
@ -205,10 +206,14 @@ export default {
|
|||||||
eventBus.$off('preview', this.preview)
|
eventBus.$off('preview', this.preview)
|
||||||
eventBus.$off('save', this.save)
|
eventBus.$off('save', this.save)
|
||||||
eventBus.$off('clearCanvas', this.clearCanvas)
|
eventBus.$off('clearCanvas', this.clearCanvas)
|
||||||
|
eventBus.$off('editPanelInitReady', this.editPanelInit)
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
this.timer = null
|
this.timer = null
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
editPanelInit(){
|
||||||
|
this.showGridSwitch = this.canvasStyleData.aidedDesign.showGrid
|
||||||
|
},
|
||||||
close() {
|
close() {
|
||||||
// 关闭页面清理缓存
|
// 关闭页面清理缓存
|
||||||
this.$store.commit('initCanvasBase')
|
this.$store.commit('initCanvasBase')
|
||||||
|
@ -429,6 +429,7 @@ import ChartStyleBatchSet from '@/views/chart/view/ChartStyleBatchSet'
|
|||||||
import Multiplexing from '@/views/panel/ViewSelect/multiplexing'
|
import Multiplexing from '@/views/panel/ViewSelect/multiplexing'
|
||||||
import { listenGlobalKeyDown } from '@/components/canvas/utils/shortcutKey'
|
import { listenGlobalKeyDown } from '@/components/canvas/utils/shortcutKey'
|
||||||
import { adaptCurThemeCommonStyle } from '@/components/canvas/utils/style'
|
import { adaptCurThemeCommonStyle } from '@/components/canvas/utils/style'
|
||||||
|
import eventBus from '@/components/canvas/utils/eventBus'
|
||||||
export default {
|
export default {
|
||||||
name: 'PanelEdit',
|
name: 'PanelEdit',
|
||||||
components: {
|
components: {
|
||||||
@ -794,6 +795,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
_this.$store.commit('refreshSaveStatus')
|
_this.$store.commit('refreshSaveStatus')
|
||||||
}
|
}
|
||||||
|
eventBus.$emit('editPanelInitReady')
|
||||||
}, 500)
|
}, 500)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user