forked from github/dataease
fix(仪表板): 修复下架有权限的仪表板,编辑预览时提示已下架问题
This commit is contained in:
parent
38d832448f
commit
6f7dd7dd7a
@ -185,8 +185,9 @@ export default {
|
||||
return this.$store.state.panel.mainActiveName
|
||||
},
|
||||
showUnpublishedArea() {
|
||||
// return this.panelInfo.status === 'unpublished'
|
||||
if (this.panelInfo && this.panelInfo.showType === 'view') {
|
||||
if (this.showPosition === 'edit') {
|
||||
return false
|
||||
} else if (this.panelInfo && this.panelInfo.showType === 'view') {
|
||||
return false
|
||||
} else if ((this.mainActiveName === 'PanelMain' && this.activeTab === 'PanelList') || this.showPosition.includes('multiplexing')) {
|
||||
return this.panelInfo.status === 'unpublished' && !hasDataPermission('manage', this.panelInfo.privileges)
|
||||
|
@ -269,6 +269,7 @@
|
||||
:show-type="canvasStyleData.selfAdaption?'full':'width'"
|
||||
:canvas-style-data="canvasStyleData"
|
||||
:component-data="componentData"
|
||||
show-position="edit"
|
||||
/>
|
||||
</fullscreen>
|
||||
<input
|
||||
|
Loading…
Reference in New Issue
Block a user