feat: 解决关闭编辑页面但是没有关闭左侧面板
This commit is contained in:
parent
12f2148030
commit
69f5a09cdc
@ -87,7 +87,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closePanelEdit() {
|
closePanelEdit() {
|
||||||
bus.$emit('PanelSwitchComponent', { name: 'PanelMain' })
|
this.$emit('close-left-panel')
|
||||||
|
this.$nextTick(() => {
|
||||||
|
bus.$emit('PanelSwitchComponent', { name: 'PanelMain' })
|
||||||
|
})
|
||||||
},
|
},
|
||||||
goFile() {
|
goFile() {
|
||||||
this.$refs.files.click()
|
this.$refs.files.click()
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
名称:{{ panelInfo.name || '测试仪表板' }}
|
名称:{{ panelInfo.name || '测试仪表板' }}
|
||||||
</span>
|
</span>
|
||||||
<!--横向工具栏-->
|
<!--横向工具栏-->
|
||||||
<Toolbar />
|
<Toolbar @close-left-panel="closeLeftPanel" />
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-header>
|
</el-header>
|
||||||
<de-container>
|
<de-container>
|
||||||
@ -44,10 +44,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div ref="leftPanel" :class="{show:show}" class="leftPanel-container">
|
<div ref="leftPanel" :class="{show:show}" class="leftPanel-container">
|
||||||
<div />
|
<div />
|
||||||
<div v-show="show" class="leftPanel">
|
<div v-if="show" class="leftPanel">
|
||||||
|
|
||||||
<div class="leftPanel-items">
|
<div class="leftPanel-items">
|
||||||
<view-select v-show=" showIndex===0" />
|
<view-select v-show="show && showIndex===0" />
|
||||||
<filter-group v-show="show && showIndex===1" />
|
<filter-group v-show="show && showIndex===1" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -349,6 +349,10 @@ export default {
|
|||||||
this.currentWidget = ApplicationContext.getService(serviceName)
|
this.currentWidget = ApplicationContext.getService(serviceName)
|
||||||
this.currentFilterCom = this.curComponent
|
this.currentFilterCom = this.curComponent
|
||||||
this.openFilterDiolog()
|
this.openFilterDiolog()
|
||||||
|
},
|
||||||
|
closeLeftPanel() {
|
||||||
|
this.show = false
|
||||||
|
this.beforeDestroy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<de-container v-loading="$store.getters.loadingMap[$store.getters.currentPath]" style="background-color: #f7f8fa">
|
<de-container v-loading="$store.getters.loadingMap[$store.getters.currentPath]">
|
||||||
<de-main-container>
|
<de-main-container>
|
||||||
<component :is="component" :param="param" />
|
<component :is="component" :param="param" />
|
||||||
</de-main-container>
|
</de-main-container>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user