Merge pull request #5818 from dataease/pr@dev@refactor_panel
fix(仪表板): 修复辅助网格设计开关显示可能与主题不同步问题 #5665
This commit is contained in:
commit
c8e7aa2a8f
@ -328,6 +328,7 @@ export default {
|
||||
eventBus.$on('preview', this.preview)
|
||||
eventBus.$on('checkAndSave', this.checkAndSave)
|
||||
eventBus.$on('clearCanvas', this.clearCanvas)
|
||||
bus.$on('onSubjectChange', this.editPanelInit)
|
||||
this.scale = this.canvasStyleData.scale
|
||||
this.mobileLayoutInitStatus = this.mobileLayoutStatus
|
||||
this.showGridSwitch = this.canvasStyleData.aidedDesign.showGrid
|
||||
@ -339,6 +340,7 @@ export default {
|
||||
eventBus.$off('checkAndSave', this.checkAndSave)
|
||||
eventBus.$off('clearCanvas', this.clearCanvas)
|
||||
eventBus.$off('editPanelInitReady', this.editPanelInit)
|
||||
bus.$off('onSubjectChange', this.editPanelInit)
|
||||
clearInterval(this.timer)
|
||||
this.timer = null
|
||||
},
|
||||
|
||||
@ -168,6 +168,7 @@
|
||||
|
||||
<el-dropdown-item
|
||||
v-if="hasDataPermission('export',panelInfo.privileges)&&panelInfo.status==='publish'"
|
||||
:disabled="componentData.length===0"
|
||||
@click.native="saveToTemplate"
|
||||
>
|
||||
<svg-icon
|
||||
@ -190,6 +191,7 @@
|
||||
|
||||
<el-dropdown
|
||||
v-if="hasDataPermission('export',panelInfo.privileges)&&panelInfo.status==='publish'"
|
||||
:disabled="componentData.length===0"
|
||||
style="width: 100%"
|
||||
trigger="hover"
|
||||
placement="right-start"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user