Merge pull request #5818 from dataease/pr@dev@refactor_panel

fix(仪表板): 修复辅助网格设计开关显示可能与主题不同步问题 #5665
This commit is contained in:
王嘉豪 2023-08-01 16:28:37 +08:00 committed by GitHub
commit c8e7aa2a8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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
},

View File

@ -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"