Merge branch 'dev' of github.com:dataease/dataease into dev

This commit is contained in:
taojinlong 2022-07-01 18:11:15 +08:00
commit 27c4247e9a
3 changed files with 4 additions and 3 deletions

View File

@ -185,8 +185,9 @@ export default {
return this.$store.state.panel.mainActiveName return this.$store.state.panel.mainActiveName
}, },
showUnpublishedArea() { showUnpublishedArea() {
// return this.panelInfo.status === 'unpublished' if (this.showPosition === 'edit') {
if (this.panelInfo && this.panelInfo.showType === 'view') { return false
} else if (this.panelInfo && this.panelInfo.showType === 'view') {
return false return false
} else if ((this.mainActiveName === 'PanelMain' && this.activeTab === 'PanelList') || this.showPosition.includes('multiplexing')) { } else if ((this.mainActiveName === 'PanelMain' && this.activeTab === 'PanelList') || this.showPosition.includes('multiplexing')) {
return this.panelInfo.status === 'unpublished' && !hasDataPermission('manage', this.panelInfo.privileges) return this.panelInfo.status === 'unpublished' && !hasDataPermission('manage', this.panelInfo.privileges)

View File

@ -372,7 +372,6 @@ export default {
}, },
clearCanvas() { clearCanvas() {
this.$store.commit('setComponentData', []) this.$store.commit('setComponentData', [])
this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE_STRING)
this.$store.commit('recordSnapshot', 'clearCanvas') this.$store.commit('recordSnapshot', 'clearCanvas')
this.$store.commit('setInEditorStatus', false) this.$store.commit('setInEditorStatus', false)
}, },

View File

@ -269,6 +269,7 @@
:show-type="canvasStyleData.selfAdaption?'full':'width'" :show-type="canvasStyleData.selfAdaption?'full':'width'"
:canvas-style-data="canvasStyleData" :canvas-style-data="canvasStyleData"
:component-data="componentData" :component-data="componentData"
show-position="edit"
/> />
</fullscreen> </fullscreen>
<input <input