mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +08:00
Hide and show context information (#471)
* Hide and show context information * default value true * rename variable * rename variable
This commit is contained in:
parent
b45619fa74
commit
983d3642c3
@ -249,7 +249,8 @@ export default {
|
|||||||
theme: 'Theme Color',
|
theme: 'Theme Color',
|
||||||
tagsView: 'Open Tags-View',
|
tagsView: 'Open Tags-View',
|
||||||
fixedHeader: 'Fixed Header',
|
fixedHeader: 'Fixed Header',
|
||||||
sidebarLogo: 'Sidebar Logo'
|
sidebarLogo: 'Sidebar Logo',
|
||||||
|
showContextMenu: 'Show Context Information'
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
aboutMe: 'About Me',
|
aboutMe: 'About Me',
|
||||||
|
@ -224,7 +224,8 @@ export default {
|
|||||||
theme: 'Color del tema',
|
theme: 'Color del tema',
|
||||||
tagsView: 'Habilitar Tags-View',
|
tagsView: 'Habilitar Tags-View',
|
||||||
fixedHeader: 'Encabezado fijo',
|
fixedHeader: 'Encabezado fijo',
|
||||||
sidebarLogo: 'Logotipo de la barra lateral'
|
sidebarLogo: 'Logotipo de la barra lateral',
|
||||||
|
showContextMenu: 'Mostrar Menu de Contexto'
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
aboutMe: 'Sobre Mi',
|
aboutMe: 'Sobre Mi',
|
||||||
|
@ -13,6 +13,11 @@
|
|||||||
<el-switch v-model="tagsView" class="drawer-switch" />
|
<el-switch v-model="tagsView" class="drawer-switch" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="drawer-item">
|
||||||
|
<span>{{ $t('settings.showContextMenu') }}</span>
|
||||||
|
<el-switch v-model="showContextMenu" class="drawer-switch" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="drawer-item">
|
<div class="drawer-item">
|
||||||
<span>{{ $t('settings.fixedHeader') }}</span>
|
<span>{{ $t('settings.fixedHeader') }}</span>
|
||||||
<el-switch v-model="fixedHeader" class="drawer-switch" />
|
<el-switch v-model="fixedHeader" class="drawer-switch" />
|
||||||
@ -58,6 +63,17 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
showContextMenu: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.settings.showContextMenu
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
this.$store.dispatch('settings/changeSetting', {
|
||||||
|
key: 'showContextMenu',
|
||||||
|
value: val
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
sidebarLogo: {
|
sidebarLogo: {
|
||||||
get() {
|
get() {
|
||||||
return this.$store.state.settings.sidebarLogo
|
return this.$store.state.settings.sidebarLogo
|
||||||
|
@ -8,6 +8,7 @@ const state = {
|
|||||||
showSettings: showSettings,
|
showSettings: showSettings,
|
||||||
tagsView: tagsView,
|
tagsView: tagsView,
|
||||||
fixedHeader: fixedHeader,
|
fixedHeader: fixedHeader,
|
||||||
|
showContextMenu: true,
|
||||||
sidebarLogo: sidebarLogo
|
sidebarLogo: sidebarLogo
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,4 +32,3 @@ export default {
|
|||||||
mutations,
|
mutations,
|
||||||
actions
|
actions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,9 @@
|
|||||||
:container-uuid="browserUuid"
|
:container-uuid="browserUuid"
|
||||||
:panel-type="panelType"
|
:panel-type="panelType"
|
||||||
/>
|
/>
|
||||||
<el-header>
|
<el-header
|
||||||
|
v-if="ShowInfoContext"
|
||||||
|
>
|
||||||
<context-menu
|
<context-menu
|
||||||
:menu-parent-uuid="$route.meta.parentUuid"
|
:menu-parent-uuid="$route.meta.parentUuid"
|
||||||
:container-uuid="browserUuid"
|
:container-uuid="browserUuid"
|
||||||
@ -103,6 +105,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
ShowInfoContext() {
|
||||||
|
return this.$store.state.settings.ShowInfoContext
|
||||||
|
},
|
||||||
getterBrowser() {
|
getterBrowser() {
|
||||||
return this.$store.getters.getBrowser(this.browserUuid)
|
return this.$store.getters.getBrowser(this.browserUuid)
|
||||||
},
|
},
|
||||||
|
@ -5,7 +5,10 @@
|
|||||||
class="view-base"
|
class="view-base"
|
||||||
style="height: 84vh;"
|
style="height: 84vh;"
|
||||||
>
|
>
|
||||||
<el-header style="height: 39px;">
|
<el-header
|
||||||
|
v-if="ShowInfoContext"
|
||||||
|
style="height: 39px; background: white;"
|
||||||
|
>
|
||||||
<context-menu
|
<context-menu
|
||||||
:menu-parent-uuid="$route.meta.parentUuid"
|
:menu-parent-uuid="$route.meta.parentUuid"
|
||||||
:container-uuid="formUuid"
|
:container-uuid="formUuid"
|
||||||
@ -79,6 +82,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
ShowInfoContext() {
|
||||||
|
return this.$store.state.settings.ShowInfoContext
|
||||||
|
},
|
||||||
formTitle() {
|
formTitle() {
|
||||||
return this.formMetadata.name || this.$route.meta.title
|
return this.formMetadata.name || this.$route.meta.title
|
||||||
},
|
},
|
||||||
|
@ -5,7 +5,10 @@
|
|||||||
class="view-base"
|
class="view-base"
|
||||||
style="height: 84vh;"
|
style="height: 84vh;"
|
||||||
>
|
>
|
||||||
<el-header style="height: 39px;">
|
<el-header
|
||||||
|
v-if="ShowInfoContext"
|
||||||
|
style="height: 39px;"
|
||||||
|
>
|
||||||
<context-menu
|
<context-menu
|
||||||
:menu-parent-uuid="$route.meta.parentUuid"
|
:menu-parent-uuid="$route.meta.parentUuid"
|
||||||
:container-uuid="processUuid"
|
:container-uuid="processUuid"
|
||||||
@ -86,6 +89,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
ShowInfoContext() {
|
||||||
|
return this.$store.state.settings.ShowInfoContext
|
||||||
|
},
|
||||||
getterProcess() {
|
getterProcess() {
|
||||||
return this.$store.getters.getPanel(this.processUuid)
|
return this.$store.getters.getPanel(this.processUuid)
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="isLoading" key="report-viewer-loaded" style="min-height: inherit;">
|
<div v-if="isLoading" key="report-viewer-loaded" style="min-height: inherit;">
|
||||||
<context-menu
|
<context-menu
|
||||||
|
v-if="ShowInfoContext"
|
||||||
:container-uuid="reportResult.processUuid"
|
:container-uuid="reportResult.processUuid"
|
||||||
:panel-type="panelType"
|
:panel-type="panelType"
|
||||||
:is-report="true"
|
:is-report="true"
|
||||||
@ -112,6 +113,9 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
// TODO: Add get metadata from server to open report view from link
|
// TODO: Add get metadata from server to open report view from link
|
||||||
|
ShowInfoContext() {
|
||||||
|
return this.$store.state.settings.ShowInfoContext
|
||||||
|
},
|
||||||
getterProcess() {
|
getterProcess() {
|
||||||
return this.$store.getters.getProcessById(this.$route.params.processId)
|
return this.$store.getters.getProcessById(this.$route.params.processId)
|
||||||
},
|
},
|
||||||
|
@ -58,7 +58,10 @@
|
|||||||
<resize-observer @notify="handleResize" />
|
<resize-observer @notify="handleResize" />
|
||||||
<Split v-shortkey="['f8']" direction="vertical" @onDrag="onDrag" @shortkey.native="handleChangeShowedRecordNavigation(!isShowedRecordNavigation)">
|
<Split v-shortkey="['f8']" direction="vertical" @onDrag="onDrag" @shortkey.native="handleChangeShowedRecordNavigation(!isShowedRecordNavigation)">
|
||||||
<SplitArea :size="sizeAreaStyle" :style="splitAreaStyle">
|
<SplitArea :size="sizeAreaStyle" :style="splitAreaStyle">
|
||||||
<el-header :style="isWorkflowBarStatus ? 'height: 45px; background: #F5F7FA' : 'height: 40px'">
|
<el-header
|
||||||
|
v-if="ShowInfoContext"
|
||||||
|
:style="isWorkflowBarStatus ? 'height: 45px; background: #F5F7FA' : 'height: 40px'"
|
||||||
|
>
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-aside width="100%" style="width: 78vw;overflow: hidden;">
|
<el-aside width="100%" style="width: 78vw;overflow: hidden;">
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
@ -340,6 +343,9 @@ export default {
|
|||||||
next()
|
next()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
ShowInfoContext() {
|
||||||
|
return this.$store.state.settings.ShowInfoContext
|
||||||
|
},
|
||||||
defaultPorcentSplitPane() {
|
defaultPorcentSplitPane() {
|
||||||
if (this.isShowedRecordPanel) {
|
if (this.isShowedRecordPanel) {
|
||||||
if (this.isShowedRecordNavigation) {
|
if (this.isShowedRecordNavigation) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user