mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
add the price query window to the rais menu (#549)
when opening the window you must hide the menu and the tag-views
This commit is contained in:
parent
89904a5d94
commit
640851f909
@ -21,14 +21,11 @@ export default {
|
||||
switch (this.metadata.fileName) {
|
||||
case 'PriceChecking':
|
||||
form = import('@/components/ADempiere/Form/PriceChecking')
|
||||
this.$store.dispatch('settings/changeSetting', {
|
||||
key: 'showNavar',
|
||||
value: true
|
||||
})
|
||||
this.$store.dispatch('settings/changeSetting', {
|
||||
key: 'showMenu',
|
||||
value: false
|
||||
})
|
||||
this.$store.dispatch('app/toggleSideBar', false)
|
||||
this.$store.dispatch('settings/changeSetting', {
|
||||
key: 'tagsView',
|
||||
value: false
|
||||
|
@ -106,6 +106,7 @@ export default {
|
||||
return this.$store.state.settings.showMenu
|
||||
},
|
||||
set(val) {
|
||||
this.$store.dispatch('app/toggleSideBar')
|
||||
this.$store.dispatch('settings/changeSetting', {
|
||||
key: 'showMenu',
|
||||
value: val
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div :class="classObj" class="app-wrapper">
|
||||
<div v-if="device==='mobile'&&sidebar.opened" class="drawer-bg" @click="handleClickOutside" />
|
||||
<sidebar v-show="showMenu" class="sidebar-container" />
|
||||
<div :class="{hasTagsView:needTagsView}" class="main-container">
|
||||
<div :class="{hasTagsView:needTagsView}" class="main-container" :style="showMenu ? '' : 'margin-left:0px'">
|
||||
<div :class="{'fixed-header':fixedHeader}">
|
||||
<navbar v-show="showNavar" />
|
||||
<tags-view v-if="needTagsView" />
|
||||
|
@ -68,13 +68,14 @@ const staticRoutes = [
|
||||
{
|
||||
path: '/PriceChecking',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
hidden: false,
|
||||
children: [
|
||||
{
|
||||
path: '/PriceChecking',
|
||||
component: () => import('@/views/ADempiere/Form'),
|
||||
name: 'PriceChecking',
|
||||
meta: {
|
||||
icon: 'shopping',
|
||||
title: 'PriceChecking',
|
||||
isIndex: true
|
||||
}
|
||||
@ -84,7 +85,7 @@ const staticRoutes = [
|
||||
{
|
||||
path: '/BarcodeReader',
|
||||
component: Layout,
|
||||
hidden: false,
|
||||
hidden: true,
|
||||
children: [
|
||||
{
|
||||
path: '/BarcodeReader',
|
||||
|
Loading…
x
Reference in New Issue
Block a user