1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +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:
Elsio Sanchez 2020-11-28 17:48:47 -04:00 committed by GitHub
parent 89904a5d94
commit 640851f909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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" />

View File

@ -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',